Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001332/0.001332, allocations: 182.4 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.4 MB / 224.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007087/0.0007086, allocations: 93.95 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000306/0.000306, allocations: 12 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1872, allocations: 47.57 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3082, allocations: 119.2 MB / 496.2 MB, free: 9.277 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.3085, allocations: 87.95 kB / 496.3 MB, free: 9.191 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3251/0.6336, allocations: 80.26 MB / 0.5631 GB, free: 55.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6337, allocations: 0 / 0.5631 GB, free: 55.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002719/0.634, allocations: 95.86 kB / 0.5632 GB, free: 55.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.008635/0.6426, allocations: 3.803 MB / 0.5669 GB, free: 51.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.6427, allocations: 19.91 kB / 0.5669 GB, free: 51.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00277/0.6454, allocations: 0.6363 MB / 0.5675 GB, free: 51.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005186/0.6506, allocations: 2.801 MB / 0.5702 GB, free: 48.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.6508, allocations: 259.3 kB / 0.5705 GB, free: 48.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005347/0.6513, allocations: 340.3 kB / 0.5708 GB, free: 47.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006261/0.6576, allocations: 4.426 MB / 0.5751 GB, free: 43.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-05/0.6577, allocations: 7.875 kB / 0.5751 GB, free: 43.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002984/0.658, allocations: 152 kB / 0.5753 GB, free: 42.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.6581, allocations: 158.8 kB / 0.5754 GB, free: 42.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005148/0.6633, allocations: 3.525 MB / 0.5789 GB, free: 39.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02043/0.6838, allocations: 14.6 MB / 0.5931 GB, free: 24.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003736/0.6875, allocations: 5.373 MB / 0.5984 GB, free: 18.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.6892, allocations: 1.291 MB / 0.5997 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005955/0.6952, allocations: 3.873 MB / 0.6034 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.6952, allocations: 47.88 kB / 0.6035 GB, free: 12.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 3.407e-06/0.6952, allocations: 0 / 0.6035 GB, free: 12.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.008324/0.7036, allocations: 5.526 MB / 0.6089 GB, free: 7.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.7036, allocations: 68.72 kB / 0.6089 GB, free: 7.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.7064, allocations: 2.087 MB / 0.611 GB, free: 4.973 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001869/0.7066, allocations: 45.7 kB / 0.611 GB, free: 4.922 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007769/0.7074, allocations: 1.657 MB / 0.6126 GB, free: 3.246 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.7077, allocations: 465.4 kB / 0.6131 GB, free: 2.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.7078, allocations: 36 kB / 0.6131 GB, free: 2.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.7079, allocations: 389.8 kB / 0.6135 GB, free: 2.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.7089, allocations: 0.7223 MB / 0.6142 GB, free: 1.641 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.7101, allocations: 1.335 MB / 0.6155 GB, free: 28 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/0.713, allocations: 2.209 MB / 0.6177 GB, free: 13.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.713, allocations: 12 kB / 0.6177 GB, free: 13.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00442/0.7174, allocations: 2.505 MB / 0.6201 GB, free: 10.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.7175, allocations: 12 kB / 0.6201 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/0.7175, allocations: 20 kB / 0.6201 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00041/0.7179, allocations: 146.9 kB / 0.6203 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.7197, allocations: 463.3 kB / 0.6207 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.7223, allocations: 3.083 MB / 0.6237 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.724, allocations: 115.8 kB / 0.6239 GB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.7242, allocations: 84.09 kB / 0.6239 GB, free: 6.805 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002057/0.7263, allocations: 1.048 MB / 0.625 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/0.7268, allocations: 217.2 kB / 0.6252 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00384/0.7306, allocations: 2.204 MB / 0.6273 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.7307, allocations: 12 kB / 0.6273 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.7307, allocations: 4 kB / 0.6273 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.7307, allocations: 7.984 kB / 0.6273 GB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/0.7398, allocations: 5.196 MB / 0.6324 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.7399, allocations: 0 / 0.6324 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009985/0.7409, allocations: 235.6 kB / 0.6326 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006855/0.7416, allocations: 267.5 kB / 0.6329 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.549e-05/0.7417, allocations: 39.92 kB / 0.6329 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00623/0.7479, allocations: 7.127 MB / 0.6399 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.748, allocations: 7.938 kB / 0.6399 GB, free: 5.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004858/0.7528, allocations: 3.218 MB / 0.643 GB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.7539, allocations: 466.2 kB / 0.6435 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004224/0.7544, allocations: 31.94 kB / 0.6435 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.7555, allocations: 87.89 kB / 0.6436 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.7557, allocations: 88.81 kB / 0.6437 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.303e-05/0.7558, allocations: 36 kB / 0.6437 GB, free: 1.664 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00253/0.7584, allocations: 1.42 MB / 0.6451 GB, free: 232 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7584, allocations: 384 / 0.6451 GB, free: 232 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.1743/0.9327, allocations: 0.6095 MB / 0.6457 GB, free: 86.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008123/0.9335, allocations: 454.3 kB / 0.6461 GB, free: 86.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.9364, allocations: 2.089 MB / 0.6482 GB, free: 85.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.9364, allocations: 6.531 kB / 0.6482 GB, free: 85.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.938, allocations: 1.387 MB / 0.6495 GB, free: 85.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/0.9411, allocations: 0.5278 MB / 0.6501 GB, free: 85.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009026/0.9501, allocations: 7.354 MB / 0.6572 GB, free: 82.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/0.9519, allocations: 2.413 MB / 0.6596 GB, free: 81.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001715/0.9537, allocations: 0.4987 MB / 0.6601 GB, free: 81.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.9541, allocations: 153.1 kB / 0.6602 GB, free: 81.28 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.9541, allocations: 3.938 kB / 0.6602 GB, free: 81.28 MB / 410.7 MB Notification: Performance of Templates: time 0.04937/1.004, allocations: 30.57 MB / 0.6901 GB, free: 79.36 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches