Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 181.4 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.001016/0.001016, allocations: 82.62 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.0003692, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.3997, allocations: 47.57 MB / 375.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.5541, allocations: 98.34 MB / 474.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004707/0.5546, allocations: 87.95 kB / 474.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07896/0.6336, allocations: 27.6 MB / 0.4901 GB, free: 2.438 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6336, allocations: 0 / 0.4901 GB, free: 2.438 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.493e-05/0.6337, allocations: 28 kB / 0.4901 GB, free: 2.41 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002414/0.6362, allocations: 1.312 MB / 0.4914 GB, free: 1.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.6362, allocations: 15.97 kB / 0.4914 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006052/0.6368, allocations: 190.2 kB / 0.4916 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3063/0.9431, allocations: 0.8458 MB / 0.4924 GB, free: 95.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.9433, allocations: 73.34 kB / 0.4925 GB, free: 95.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006497/0.944, allocations: 100.4 kB / 0.4926 GB, free: 95.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00361/0.9476, allocations: 0.9364 MB / 0.4935 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.923e-05/0.9477, allocations: 4.156 kB / 0.4935 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.9479, allocations: 40.06 kB / 0.4935 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-05/0.9479, allocations: 24.44 kB / 0.4936 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.9499, allocations: 0.6232 MB / 0.4942 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.957, allocations: 4.155 MB / 0.4982 GB, free: 93.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.9581, allocations: 391.9 kB / 0.4986 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.9581, allocations: 4.062 kB / 0.4986 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.9582, allocations: 35.41 kB / 0.4986 GB, free: 93.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.226e-06/0.9582, allocations: 0.9844 kB / 0.4986 GB, free: 93.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002853/0.961, allocations: 1.299 MB / 0.4999 GB, free: 93.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.9611, allocations: 80.98 kB / 0.5 GB, free: 93.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.9623, allocations: 0.7538 MB / 0.5007 GB, free: 92.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.9624, allocations: 32.64 kB / 0.5008 GB, free: 92.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000428/0.9628, allocations: 0.6052 MB / 0.5013 GB, free: 92.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.9629, allocations: 145.6 kB / 0.5015 GB, free: 92.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.963, allocations: 14.83 kB / 0.5015 GB, free: 92.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.9631, allocations: 343.4 kB / 0.5018 GB, free: 92.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.9634, allocations: 162.7 kB / 0.502 GB, free: 92.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.9639, allocations: 477.8 kB / 0.5024 GB, free: 91.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004792/0.9644, allocations: 235.2 kB / 0.5027 GB, free: 91.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.9644, allocations: 3.5 kB / 0.5027 GB, free: 91.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001407/0.9658, allocations: 0.7357 MB / 0.5034 GB, free: 91.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0011/0.9669, allocations: 4.096 MB / 0.5074 GB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.587e-05/0.967, allocations: 10.56 kB / 0.5074 GB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/0.9672, allocations: 39.34 kB / 0.5074 GB, free: 87.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006498/0.9679, allocations: 170.5 kB / 0.5076 GB, free: 87.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009875/0.9689, allocations: 1.3 MB / 0.5089 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007191/0.9696, allocations: 33.28 kB / 0.5089 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/0.9697, allocations: 34.91 kB / 0.5089 GB, free: 86.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.9697, allocations: 2.969 kB / 0.5089 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009687/0.9707, allocations: 0.6151 MB / 0.5095 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.9707, allocations: 13.3 kB / 0.5095 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001013/0.9708, allocations: 36.92 kB / 0.5096 GB, free: 86.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/0.9713, allocations: 174.2 kB / 0.5097 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007757/0.9721, allocations: 1.291 MB / 0.511 GB, free: 84.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/0.9727, allocations: 36.36 kB / 0.511 GB, free: 84.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.33e-05/0.9728, allocations: 40.91 kB / 0.5111 GB, free: 84.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006411/0.9734, allocations: 338.7 kB / 0.5114 GB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.9736, allocations: 93.19 kB / 0.5115 GB, free: 84.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007727/0.9744, allocations: 423.5 kB / 0.5119 GB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.9744, allocations: 13.36 kB / 0.5119 GB, free: 84.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.9744, allocations: 0 / 0.5119 GB, free: 84.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.9744, allocations: 3.75 kB / 0.5119 GB, free: 84.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.9765, allocations: 1.328 MB / 0.5132 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.9765, allocations: 0 / 0.5132 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.9769, allocations: 81.12 kB / 0.5133 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.801e-05/0.977, allocations: 24.16 kB / 0.5133 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.977, allocations: 11.97 kB / 0.5133 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007643/0.9778, allocations: 1.271 MB / 0.5146 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9778, allocations: 3.906 kB / 0.5146 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009698/0.9788, allocations: 0.788 MB / 0.5153 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/0.9791, allocations: 199 kB / 0.5155 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.9792, allocations: 19.77 kB / 0.5155 GB, free: 81.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003588/0.9796, allocations: 15.59 kB / 0.5156 GB, free: 81.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.881e-05/0.9797, allocations: 26.67 kB / 0.5156 GB, free: 81.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.9797, allocations: 15.47 kB / 0.5156 GB, free: 81.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006774/0.9804, allocations: 0.5804 MB / 0.5162 GB, free: 81.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9804, allocations: 0 / 0.5162 GB, free: 81.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001395/0.9818, allocations: 382.2 kB / 0.5165 GB, free: 81.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004876/0.9823, allocations: 309.3 kB / 0.5168 GB, free: 81.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.9838, allocations: 0.9664 MB / 0.5178 GB, free: 80.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.9838, allocations: 192 / 0.5178 GB, free: 80.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.9842, allocations: 285 kB / 0.518 GB, free: 80.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.9852, allocations: 227.8 kB / 0.5183 GB, free: 80.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.9882, allocations: 2.209 MB / 0.5204 GB, free: 79.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.9888, allocations: 1.042 MB / 0.5214 GB, free: 78.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005495/0.9893, allocations: 130.7 kB / 0.5216 GB, free: 78.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.9895, allocations: 60.5 kB / 0.5216 GB, free: 78.46 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.9895, allocations: 0 / 0.5216 GB, free: 78.46 MB / 378.7 MB Notification: Performance of Templates: time 0.02346/1.013, allocations: 11.59 MB / 0.5329 GB, free: 77.62 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches