Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009169/0.0009169, allocations: 85.95 kB / 22.99 MB, free: 1.508 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009642/0.0009642, allocations: 172 kB / 26.4 MB, free: 8.152 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9166/0.9166, allocations: 158.6 MB / 188.3 MB, free: 2.824 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 3.938 kB / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.154e-05, allocations: 10.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.008827/0.008848, allocations: 11.31 MB / 263.6 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005474/0.01432, allocations: 3.157 MB / 266.7 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.01562, allocations: 43.81 kB / 266.8 MB, free: 8.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.01707, allocations: 0.6206 MB / 267.4 MB, free: 8.023 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.01876, allocations: 0.7597 MB / 268.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007484/0.01951, allocations: 407.4 kB / 268.6 MB, free: 6.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.02202, allocations: 2.334 MB / 270.9 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008734/0.02289, allocations: 0.6029 MB / 271.5 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001641/0.02453, allocations: 1.321 MB / 272.8 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000864/0.0254, allocations: 0.7128 MB / 273.5 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002477/0.02564, allocations: 212 kB / 273.7 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.02606, allocations: 247.9 kB / 274 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.02633, allocations: 442.3 kB / 274.4 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006896/0.02702, allocations: 0.6937 MB / 275.1 MB, free: 252 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.02872, allocations: 1.389 MB / 276.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.02873, allocations: 0 / 276.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02873, allocations: 0 / 276.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.02875, allocations: 0 / 276.5 MB, free: 14.85 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002627/0.03137, allocations: 2.158 MB / 278.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.03141, allocations: 12.03 kB / 278.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005595/0.03197, allocations: 391.6 kB / 279.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.03315, allocations: 0.944 MB / 280 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.284e-05/0.03321, allocations: 119.5 kB / 280.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.03336, allocations: 156.3 kB / 280.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.03455, allocations: 1.201 MB / 281.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.03459, allocations: 3.953 kB / 281.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.009e-05/0.03467, allocations: 68 kB / 281.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.03469, allocations: 40 kB / 281.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005408/0.03524, allocations: 442 kB / 282 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005361/0.0406, allocations: 6.476 MB / 288.5 MB, free: 2.289 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.04093, allocations: 237.4 kB / 288.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.04107, allocations: 113.1 kB / 288.8 MB, free: 1.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.04109, allocations: 12.5 kB / 288.8 MB, free: 1.918 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.04134, allocations: 259.3 kB / 289.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.923e-06/0.04134, allocations: 4 kB / 289.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001429/0.04277, allocations: 1.005 MB / 290.1 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003569/0.04312, allocations: 166.7 kB / 290.3 MB, free: 384 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007899/0.04391, allocations: 1.047 MB / 291.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.04394, allocations: 37.7 kB / 291.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.04439, allocations: 0.9695 MB / 292.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.04451, allocations: 210.2 kB / 292.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.04469, allocations: 240.3 kB / 292.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.04482, allocations: 0.5237 MB / 293.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.04495, allocations: 124.2 kB / 293.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.04545, allocations: 1.056 MB / 294.5 MB, free: 11.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007048/0.04616, allocations: 1.124 MB / 295.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.04617, allocations: 8 kB / 295.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009764/0.04714, allocations: 0.9799 MB / 296.6 MB, free: 9.207 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003198/0.04746, allocations: 37.7 kB / 296.6 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.04748, allocations: 20 kB / 296.6 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.04763, allocations: 63.91 kB / 296.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/0.04807, allocations: 271.5 kB / 297 MB, free: 8.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.04949, allocations: 3.457 MB / 300.4 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005207/0.05001, allocations: 67.89 kB / 300.5 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.05006, allocations: 48 kB / 300.5 MB, free: 5.012 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002731/0.05033, allocations: 256 kB / 300.8 MB, free: 4.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.05044, allocations: 139.2 kB / 300.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004451/0.05089, allocations: 396.6 kB / 301.3 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.05089, allocations: 4 kB / 301.3 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.0509, allocations: 4 kB / 301.3 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.0509, allocations: 3.938 kB / 301.3 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.05238, allocations: 1.313 MB / 302.6 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.05238, allocations: 4 kB / 302.6 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.05262, allocations: 103.8 kB / 302.7 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.867e-05/0.05272, allocations: 43.81 kB / 302.8 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.05275, allocations: 20 kB / 302.8 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.05414, allocations: 3.422 MB / 306.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.05415, allocations: 11.94 kB / 306.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005867/0.05473, allocations: 0.7668 MB / 307 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.05494, allocations: 159.2 kB / 307.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.966e-05/0.05502, allocations: 19.94 kB / 307.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.05527, allocations: 27.98 kB / 307.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.05535, allocations: 63.81 kB / 307.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.05536, allocations: 15.94 kB / 307.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004229/0.05578, allocations: 0.5713 MB / 307.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05578, allocations: 0 / 307.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007308/0.05652, allocations: 300 kB / 308.1 MB, free: 12.92 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002037/0.05672, allocations: 135 kB / 308.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007793/0.0575, allocations: 0.8685 MB / 309.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.0575, allocations: 384 / 309.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.05781, allocations: 499.7 kB / 309.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.05865, allocations: 311.2 kB / 309.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003294/0.06194, allocations: 2.395 MB / 312.3 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.06214, allocations: 236.2 kB / 312.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004325/0.06257, allocations: 154.1 kB / 312.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005131/0.06308, allocations: 370 kB / 313.1 MB, free: 7.762 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.06308, allocations: 0 / 313.1 MB, free: 7.762 MB / 298.7 MB Notification: Performance of Templates: time 0.02234/0.08542, allocations: 15.84 MB / 328.9 MB, free: 7.941 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2762247710488737]