Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001049/0.001049, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000899/0.000899, allocations: 98.25 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.876e-06/8.977e-06, allocations: 4 kB / 343.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.07952, allocations: 51.47 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.252/0.3316, allocations: 96 MB / 490.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3319, allocations: 80.58 kB / 490.7 MB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1208/0.4527, allocations: 44.12 MB / 0.5223 GB, free: 6.504 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001468/0.4529, allocations: 36 kB / 0.5223 GB, free: 6.469 MB / 394.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.00423/0.4571, allocations: 1.638 MB / 0.5239 GB, free: 4.781 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.4572, allocations: 8.031 kB / 0.5239 GB, free: 4.773 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.4588, allocations: 293.4 kB / 0.5242 GB, free: 4.484 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/0.462, allocations: 1.212 MB / 0.5254 GB, free: 3.215 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.927e-05/0.4621, allocations: 48 kB / 0.5254 GB, free: 3.168 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003804/0.4624, allocations: 103.9 kB / 0.5255 GB, free: 3.066 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002246/0.4647, allocations: 0.8653 MB / 0.5264 GB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.4671, allocations: 1.217 MB / 0.5276 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.4672, allocations: 15.84 kB / 0.5276 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.4673, allocations: 4 kB / 0.5276 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.228e-05/0.4673, allocations: 36 kB / 0.5276 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009074/0.4764, allocations: 6.138 MB / 0.5336 GB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.477, allocations: 311 kB / 0.5339 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007059/0.4777, allocations: 403.3 kB / 0.5343 GB, free: 9.734 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.4777, allocations: 12.8 kB / 0.5343 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.4778, allocations: 43.22 kB / 0.5344 GB, free: 9.672 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.815e-06/0.4778, allocations: 0 / 0.5344 GB, free: 9.672 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.003173/0.481, allocations: 1.661 MB / 0.536 GB, free: 7.953 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.481, allocations: 111.5 kB / 0.5361 GB, free: 7.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.4825, allocations: 0.9013 MB / 0.537 GB, free: 6.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.4825, allocations: 29.7 kB / 0.537 GB, free: 6.875 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.4829, allocations: 0.6878 MB / 0.5377 GB, free: 6.176 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.4831, allocations: 248.3 kB / 0.5379 GB, free: 5.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.4832, allocations: 3.938 kB / 0.5379 GB, free: 5.926 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4833, allocations: 353.9 kB / 0.5382 GB, free: 5.574 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004165/0.4837, allocations: 222.6 kB / 0.5384 GB, free: 5.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006522/0.4844, allocations: 0.6736 MB / 0.5391 GB, free: 4.473 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005694/0.485, allocations: 342.9 kB / 0.5394 GB, free: 4.137 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.485, allocations: 4 kB / 0.5394 GB, free: 4.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002189/0.4872, allocations: 1.068 MB / 0.5405 GB, free: 3.051 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4872, allocations: 6.344 kB / 0.5405 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.4872, allocations: 16 kB / 0.5405 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.4877, allocations: 114.8 kB / 0.5406 GB, free: 2.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009752/0.4887, allocations: 271.5 kB / 0.5409 GB, free: 2.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003446/0.4921, allocations: 4.04 MB / 0.5448 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.4934, allocations: 47.94 kB / 0.5449 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/0.4936, allocations: 52 kB / 0.5449 GB, free: 14.16 MB / 426.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.0003076/0.4939, allocations: 148.5 kB / 0.5451 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.4942, allocations: 126.6 kB / 0.5452 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.4958, allocations: 0.7139 MB / 0.5459 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4959, allocations: 11.91 kB / 0.5459 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4959, allocations: 0 / 0.5459 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4959, allocations: 3.984 kB / 0.5459 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003802/0.4997, allocations: 2.011 MB / 0.5479 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.4997, allocations: 4 kB / 0.5479 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006699/0.5004, allocations: 132.2 kB / 0.548 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.5008, allocations: 122.4 kB / 0.5481 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/0.5009, allocations: 8 kB / 0.5481 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003653/0.5046, allocations: 4.142 MB / 0.5521 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.5046, allocations: 7.938 kB / 0.5522 GB, free: 6.246 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002215/0.5068, allocations: 1.354 MB / 0.5535 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006577/0.5075, allocations: 259.5 kB / 0.5537 GB, free: 4.473 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003218/0.5078, allocations: 15.92 kB / 0.5537 GB, free: 4.457 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000744/0.5086, allocations: 35.97 kB / 0.5538 GB, free: 4.422 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.5087, allocations: 52.34 kB / 0.5538 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.5088, allocations: 27.92 kB / 0.5539 GB, free: 4.344 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001102/0.5099, allocations: 0.6556 MB / 0.5545 GB, free: 3.684 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001374/0.5112, allocations: 315.9 kB / 0.5548 GB, free: 3.375 MB / 426.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.0005123/0.5118, allocations: 335 kB / 0.5551 GB, free: 3.051 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.5134, allocations: 0.9714 MB / 0.5561 GB, free: 2.051 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.5134, allocations: 4.125 kB / 0.5561 GB, free: 2.047 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008221/0.5142, allocations: 0.5927 MB / 0.5566 GB, free: 1.422 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/0.516, allocations: 285.9 kB / 0.5569 GB, free: 1.152 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005502/0.5215, allocations: 2.289 MB / 0.5592 GB, free: 14.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.5226, allocations: 1.341 MB / 0.5605 GB, free: 13.4 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5226, allocations: 0 / 0.5605 GB, free: 13.4 MB / 442.7 MB Notification: Performance of Templates: time 0.1432/0.6659, allocations: 15.22 MB / 0.5753 GB, free: 148.9 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches