Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001352/0.001352, allocations: 73.98 kB / 22.21 MB, free: 2.297 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.00101/0.00101, allocations: 165.1 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9453/0.9453, allocations: 177.2 MB / 206.1 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.482e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009235/0.00926, allocations: 11.36 MB / 285.6 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005348/0.01461, allocations: 3.197 MB / 288.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.01586, allocations: 39.88 kB / 288.8 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.01738, allocations: 0.6244 MB / 289.4 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001908/0.01929, allocations: 0.7675 MB / 290.2 MB, free: 4.352 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008742/0.02016, allocations: 399.4 kB / 290.6 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002629/0.02279, allocations: 2.342 MB / 292.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009174/0.02371, allocations: 0.6029 MB / 293.5 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.02545, allocations: 1.325 MB / 294.9 MB, free: 15.62 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008211/0.02627, allocations: 0.7126 MB / 295.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.02648, allocations: 212 kB / 295.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.02681, allocations: 251.9 kB / 296 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.02706, allocations: 438.3 kB / 296.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.02767, allocations: 0.6937 MB / 297.1 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001464/0.02914, allocations: 1.389 MB / 298.5 MB, free: 11.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.02914, allocations: 4 kB / 298.5 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.02914, allocations: 0 / 298.5 MB, free: 11.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.217e-05/0.02916, allocations: 0 / 298.5 MB, free: 11.93 MB / 282.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.002273/0.03144, allocations: 2.158 MB / 300.7 MB, free: 9.719 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.03148, allocations: 12.03 kB / 300.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005679/0.03205, allocations: 387.6 kB / 301.1 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.03308, allocations: 0.9401 MB / 302 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.816e-05/0.03315, allocations: 115.5 kB / 302.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.03329, allocations: 168.2 kB / 302.3 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.03444, allocations: 1.197 MB / 303.5 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/0.03448, allocations: 7.984 kB / 303.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.57e-05/0.03455, allocations: 64 kB / 303.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/0.03458, allocations: 40 kB / 303.6 MB, free: 6.648 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005517/0.03513, allocations: 446.1 kB / 304 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005093/0.04022, allocations: 6.469 MB / 310.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.04056, allocations: 249.4 kB / 310.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.0407, allocations: 109.1 kB / 310.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.04073, allocations: 12.5 kB / 310.9 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.04097, allocations: 267.2 kB / 311.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.514e-06/0.04098, allocations: 0 / 311.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00151/0.04249, allocations: 1.009 MB / 312.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.04255, allocations: 162.7 kB / 312.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.04331, allocations: 1.047 MB / 313.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.04334, allocations: 37.7 kB / 313.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004813/0.04382, allocations: 0.9733 MB / 314.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.04394, allocations: 214.2 kB / 314.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.04413, allocations: 228.3 kB / 314.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000444/0.04457, allocations: 0.5237 MB / 315.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.0447, allocations: 124.2 kB / 315.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.04524, allocations: 1.056 MB / 316.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007319/0.04597, allocations: 1.124 MB / 317.6 MB, free: 7.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.04598, allocations: 4 kB / 317.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009593/0.04694, allocations: 0.9796 MB / 318.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.04698, allocations: 46.58 kB / 318.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.047, allocations: 16 kB / 318.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/0.04716, allocations: 71.33 kB / 318.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004434/0.04761, allocations: 267.5 kB / 319 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.04941, allocations: 3.449 MB / 322.4 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/0.04988, allocations: 67.94 kB / 322.5 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.04992, allocations: 52.12 kB / 322.6 MB, free: 2.098 MB / 298.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.0002623/0.05018, allocations: 252 kB / 322.8 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.05029, allocations: 139.2 kB / 322.9 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.05073, allocations: 400.5 kB / 323.3 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.05073, allocations: 4 kB / 323.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.05074, allocations: 0 / 323.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.05074, allocations: 7.922 kB / 323.3 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.05205, allocations: 1.309 MB / 324.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.05206, allocations: 4 kB / 324.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.05229, allocations: 108.3 kB / 324.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001002/0.05239, allocations: 43.36 kB / 324.8 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.05241, allocations: 12 kB / 324.8 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.05372, allocations: 3.426 MB / 328.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.05372, allocations: 7.938 kB / 328.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009188/0.05464, allocations: 0.7632 MB / 329 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.05486, allocations: 163.2 kB / 329.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.05494, allocations: 32.05 kB / 329.2 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.05518, allocations: 23.98 kB / 329.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.864e-05/0.05526, allocations: 51.86 kB / 329.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.05528, allocations: 19.94 kB / 329.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004287/0.05571, allocations: 0.5712 MB / 329.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.05571, allocations: 0 / 329.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007814/0.05649, allocations: 304 kB / 330.2 MB, free: 10.01 MB / 314.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.0002081/0.0567, allocations: 139 kB / 330.3 MB, free: 9.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007571/0.05746, allocations: 0.8718 MB / 331.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.05746, allocations: 4 kB / 331.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.05776, allocations: 489.6 kB / 331.7 MB, free: 8.422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008346/0.05859, allocations: 317.9 kB / 332 MB, free: 8.121 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.06148, allocations: 2.389 MB / 334.4 MB, free: 5.621 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.06164, allocations: 232.2 kB / 334.6 MB, free: 5.367 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003596/0.062, allocations: 154.1 kB / 334.7 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004627/0.06246, allocations: 370 kB / 335.1 MB, free: 4.852 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/0.06247, allocations: 3.938 kB / 335.1 MB, free: 4.848 MB / 314.7 MB Notification: Performance of Templates: time 0.02376/0.08622, allocations: 15.89 MB / 351 MB, free: 5.238 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.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.375374196562916]