Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001384/0.001384, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.506/1.506, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008168/0.0008169, allocations: 74.67 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.584e-05, allocations: 0 / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08006/0.08011, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.386, allocations: 94.75 MB / 464.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.3863, allocations: 81.95 kB / 464.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1154/0.5017, allocations: 44.72 MB / 0.4976 GB, free: 3.004 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5017, allocations: 4 kB / 0.4976 GB, free: 3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.698e-05/0.5018, allocations: 32 kB / 0.4977 GB, free: 2.969 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002421/0.5042, allocations: 1.601 MB / 0.4992 GB, free: 1.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.5043, allocations: 8.031 kB / 0.4992 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008139/0.5051, allocations: 289.8 kB / 0.4995 GB, free: 1.023 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.5073, allocations: 1.204 MB / 0.5007 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-05/0.5074, allocations: 119.1 kB / 0.5008 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/0.5076, allocations: 155.9 kB / 0.501 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.5099, allocations: 1.43 MB / 0.5023 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/0.51, allocations: 11.84 kB / 0.5024 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.5101, allocations: 72 kB / 0.5024 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.5102, allocations: 36 kB / 0.5025 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.5119, allocations: 0.9636 MB / 0.5034 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007658/0.5195, allocations: 6.411 MB / 0.5097 GB, free: 6.191 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.5208, allocations: 0.5686 MB / 0.5102 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007581/0.5216, allocations: 419 kB / 0.5106 GB, free: 5.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.5216, allocations: 12.55 kB / 0.5106 GB, free: 5.184 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.5217, allocations: 39.08 kB / 0.5107 GB, free: 5.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.5217, allocations: 4 kB / 0.5107 GB, free: 5.133 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.003274/0.525, allocations: 1.788 MB / 0.5124 GB, free: 3.281 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.525, allocations: 115.6 kB / 0.5125 GB, free: 3.145 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/0.5265, allocations: 1.09 MB / 0.5136 GB, free: 2.043 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.565e-05/0.5266, allocations: 41.7 kB / 0.5136 GB, free: 1.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006281/0.5272, allocations: 0.8569 MB / 0.5145 GB, free: 1.129 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.5275, allocations: 264.3 kB / 0.5147 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.5275, allocations: 24 kB / 0.5147 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.5277, allocations: 353.9 kB / 0.5151 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.5281, allocations: 246.6 kB / 0.5153 GB, free: 260 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006951/0.5288, allocations: 0.7033 MB / 0.516 GB, free: 15.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000589/0.5294, allocations: 377.8 kB / 0.5164 GB, free: 14.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.5294, allocations: 4 kB / 0.5164 GB, free: 14.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001965/0.5314, allocations: 1.212 MB / 0.5176 GB, free: 13.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.5314, allocations: 8 kB / 0.5176 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.5314, allocations: 24.03 kB / 0.5176 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004026/0.5318, allocations: 114.5 kB / 0.5177 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/0.5327, allocations: 263.6 kB / 0.5179 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/0.5361, allocations: 4.223 MB / 0.5221 GB, free: 8.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.5372, allocations: 59.97 kB / 0.5221 GB, free: 8.637 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-05/0.5373, allocations: 52 kB / 0.5222 GB, free: 8.586 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002127/0.5375, allocations: 184.6 kB / 0.5223 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.5377, allocations: 142.2 kB / 0.5225 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.5393, allocations: 0.7896 MB / 0.5233 GB, free: 7.438 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.5393, allocations: 8 kB / 0.5233 GB, free: 7.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5393, allocations: 0 / 0.5233 GB, free: 7.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.5393, allocations: 3.984 kB / 0.5233 GB, free: 7.426 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.5433, allocations: 2.264 MB / 0.5255 GB, free: 5.047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.5434, allocations: 4.062 kB / 0.5255 GB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.544, allocations: 135.8 kB / 0.5256 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003733/0.5444, allocations: 110.5 kB / 0.5257 GB, free: 4.793 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.5444, allocations: 23.94 kB / 0.5257 GB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/0.548, allocations: 4.321 MB / 0.53 GB, free: 52 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.874e-06/0.5481, allocations: 4 kB / 0.53 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2016/0.7497, allocations: 1.435 MB / 0.5314 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007093/0.7504, allocations: 279.8 kB / 0.5316 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.7506, allocations: 19.8 kB / 0.5317 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000648/0.7513, allocations: 43.91 kB / 0.5317 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.7514, allocations: 67.48 kB / 0.5318 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.7515, allocations: 23.16 kB / 0.5318 GB, free: 105.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001386/0.7529, allocations: 0.8152 MB / 0.5326 GB, free: 105.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7529, allocations: 0 / 0.5326 GB, free: 105.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001412/0.7543, allocations: 377.8 kB / 0.5329 GB, free: 105.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005583/0.7549, allocations: 369.8 kB / 0.5333 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.7564, allocations: 1.057 MB / 0.5343 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7564, allocations: 1.922 kB / 0.5343 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.7572, allocations: 0.6754 MB / 0.535 GB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.7587, allocations: 343.3 kB / 0.5353 GB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004262/0.7629, allocations: 2.309 MB / 0.5376 GB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008295/0.7638, allocations: 1.249 MB / 0.5388 GB, free: 103.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007866/0.7646, allocations: 182.5 kB / 0.539 GB, free: 103.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.7648, allocations: 89.88 kB / 0.539 GB, free: 103.4 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7648, allocations: 0 / 0.539 GB, free: 103.4 MB / 410.7 MB Notification: Performance of Templates: time 0.03456/0.7994, allocations: 19.62 MB / 0.5582 GB, free: 102.1 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches