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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001461/0.001461, allocations: 179.2 kB / 8.477 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.127/1.127, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 81.94 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.671e-06/5.691e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06421/0.06423, allocations: 47.58 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.2871, allocations: 94.02 MB / 456.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.2874, allocations: 80.92 kB / 456.6 MB, free: 8.086 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1113/0.3987, allocations: 44.07 MB / 0.489 GB, free: 10.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.467e-05/0.3988, allocations: 32 kB / 0.489 GB, free: 10.29 MB / 346.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.002557/0.4014, allocations: 1.639 MB / 0.4906 GB, free: 8.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.4014, allocations: 8.531 kB / 0.4906 GB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009149/0.4023, allocations: 289.4 kB / 0.4909 GB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002188/0.4045, allocations: 1.212 MB / 0.4921 GB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/0.4046, allocations: 52 kB / 0.4921 GB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.4048, allocations: 99.89 kB / 0.4922 GB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00163/0.4064, allocations: 0.8692 MB / 0.4931 GB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002035/0.4085, allocations: 1.221 MB / 0.4943 GB, free: 4.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/0.4085, allocations: 7.906 kB / 0.4943 GB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.473e-05/0.4086, allocations: 0 / 0.4943 GB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.51e-05/0.4087, allocations: 40 kB / 0.4943 GB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007504/0.4162, allocations: 6.132 MB / 0.5003 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.4167, allocations: 314.9 kB / 0.5006 GB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006842/0.4174, allocations: 399.4 kB / 0.501 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.331e-05/0.4174, allocations: 16.66 kB / 0.501 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.4175, allocations: 39.22 kB / 0.501 GB, free: 13.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.504e-06/0.4175, allocations: 0 / 0.501 GB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.002891/0.4204, allocations: 1.661 MB / 0.5027 GB, free: 11.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.4204, allocations: 111.5 kB / 0.5028 GB, free: 11.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.4216, allocations: 0.8975 MB / 0.5036 GB, free: 10.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.4216, allocations: 29.64 kB / 0.5037 GB, free: 10.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003439/0.422, allocations: 0.6878 MB / 0.5043 GB, free: 9.988 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.4222, allocations: 252.3 kB / 0.5046 GB, free: 9.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.4222, allocations: 4 kB / 0.5046 GB, free: 9.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4223, allocations: 349.9 kB / 0.5049 GB, free: 9.387 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003937/0.4227, allocations: 222.6 kB / 0.5051 GB, free: 9.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006083/0.4233, allocations: 0.6697 MB / 0.5058 GB, free: 8.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005196/0.4239, allocations: 346.9 kB / 0.5061 GB, free: 7.941 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.4239, allocations: 8 kB / 0.5061 GB, free: 7.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001821/0.4257, allocations: 1.064 MB / 0.5072 GB, free: 6.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.4257, allocations: 4 kB / 0.5072 GB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4258, allocations: 20 kB / 0.5072 GB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003806/0.4261, allocations: 110.5 kB / 0.5073 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009522/0.4271, allocations: 271.5 kB / 0.5076 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003055/0.4302, allocations: 4.037 MB / 0.5115 GB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000849/0.431, allocations: 47.94 kB / 0.5115 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.863e-05/0.4311, allocations: 55.98 kB / 0.5116 GB, free: 1.957 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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.0001895/0.4313, allocations: 156.4 kB / 0.5117 GB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.4315, allocations: 122.5 kB / 0.5119 GB, free: 1.676 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.4329, allocations: 0.71 MB / 0.5126 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.4329, allocations: 15.91 kB / 0.5126 GB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4329, allocations: 3.984 kB / 0.5126 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.4329, allocations: 3.938 kB / 0.5126 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.4361, allocations: 2.015 MB / 0.5145 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4361, allocations: 4 kB / 0.5145 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000643/0.4368, allocations: 135.8 kB / 0.5147 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003406/0.4371, allocations: 114.6 kB / 0.5148 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.4372, allocations: 4 kB / 0.5148 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003274/0.4405, allocations: 4.15 MB / 0.5188 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.4405, allocations: 4 kB / 0.5188 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001791/0.4423, allocations: 1.358 MB / 0.5202 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003905/0.4427, allocations: 263.4 kB / 0.5204 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.4429, allocations: 16.05 kB / 0.5204 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.4435, allocations: 39.97 kB / 0.5205 GB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.4436, allocations: 48.34 kB / 0.5205 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.4437, allocations: 20 kB / 0.5205 GB, free: 8.148 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008819/0.4446, allocations: 0.6673 MB / 0.5212 GB, free: 7.477 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001148/0.4457, allocations: 308 kB / 0.5215 GB, free: 7.176 MB / 378.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.0004862/0.4462, allocations: 326.6 kB / 0.5218 GB, free: 6.855 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.4477, allocations: 0.9707 MB / 0.5227 GB, free: 5.855 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4477, allocations: 4 kB / 0.5228 GB, free: 5.852 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007682/0.4485, allocations: 0.5944 MB / 0.5233 GB, free: 5.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.4498, allocations: 296.7 kB / 0.5236 GB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.4545, allocations: 2.277 MB / 0.5258 GB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/0.4555, allocations: 1.348 MB / 0.5272 GB, free: 1.195 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4556, allocations: 3.938 kB / 0.5272 GB, free: 1.191 MB / 378.7 MB Notification: Performance of Templates: time 0.02695/0.4825, allocations: 15.22 MB / 0.542 GB, free: 1.957 MB / 394.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