Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 230.2 MB / 254.5 MB, free: 15.42 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 71.88 kB / 373.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1036, allocations: 53.33 MB / 427.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01438/0.118, allocations: 11.81 MB / 439 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006616/0.1246, allocations: 3.258 MB / 442.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.1262, allocations: 35.94 kB / 442.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.1281, allocations: 0.6792 MB / 442.9 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.1303, allocations: 0.7289 MB / 443.7 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000936/0.1313, allocations: 395.5 kB / 444.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.1342, allocations: 2.251 MB / 446.3 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.1352, allocations: 0.6494 MB / 447 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2015/0.3367, allocations: 0.8456 MB / 447.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.3382, allocations: 0.911 MB / 448.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004408/0.3387, allocations: 216.5 kB / 448.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00055/0.3392, allocations: 255.6 kB / 449.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.3395, allocations: 432.9 kB / 449.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008967/0.3404, allocations: 1.021 MB / 450.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003307/0.3437, allocations: 2.685 MB / 453.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3437, allocations: 2.844 kB / 453.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3437, allocations: 0 / 453.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.3438, allocations: 0 / 453.3 MB, free: 10.46 MB / 366.1 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.00402/0.3478, allocations: 2.115 MB / 455.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3478, allocations: 9.875 kB / 455.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008259/0.3486, allocations: 266.2 kB / 455.7 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.3503, allocations: 1.051 MB / 456.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-05/0.3504, allocations: 118.3 kB / 456.9 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.3506, allocations: 156.8 kB / 457 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.3533, allocations: 1.491 MB / 458.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-05/0.3533, allocations: 11.66 kB / 458.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.3535, allocations: 63.38 kB / 458.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.3535, allocations: 37.88 kB / 458.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.3555, allocations: 0.9774 MB / 459.6 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.3668, allocations: 6.53 MB / 466.1 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.3678, allocations: 373 kB / 466.5 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005385/0.3683, allocations: 203.2 kB / 466.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.807e-05/0.3684, allocations: 11.88 kB / 466.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006475/0.369, allocations: 277.7 kB / 467 MB, free: 3.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.116e-06/0.369, allocations: 0 / 467 MB, free: 3.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.004807/0.3738, allocations: 1.785 MB / 468.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.3739, allocations: 165.1 kB / 468.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/0.3765, allocations: 1.277 MB / 470.2 MB, free: 1.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.549e-05/0.3766, allocations: 36.45 kB / 470.2 MB, free: 1.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008073/0.3774, allocations: 0.8944 MB / 471.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.3776, allocations: 217.2 kB / 471.3 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003791/0.3779, allocations: 224.2 kB / 471.6 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.106e-05/0.378, allocations: 351.4 kB / 471.9 MB, free: 400 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006561/0.3787, allocations: 234 kB / 472.1 MB, free: 324 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.38, allocations: 0.808 MB / 472.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00234/0.3824, allocations: 1.121 MB / 474.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.917e-05/0.3824, allocations: 6.781 kB / 474.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002981/0.3854, allocations: 1.164 MB / 475.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.476e-05/0.3854, allocations: 49.7 kB / 475.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.913e-05/0.3855, allocations: 19.28 kB / 475.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.3858, allocations: 66.33 kB / 475.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3869, allocations: 263.9 kB / 475.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002957/0.3899, allocations: 2.776 MB / 478.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.3912, allocations: 71.33 kB / 478.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.3912, allocations: 59.22 kB / 478.5 MB, free: 11.16 MB / 382.1 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.0007245/0.392, allocations: 360.1 kB / 478.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.3923, allocations: 140.1 kB / 479 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.3934, allocations: 0.5555 MB / 479.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3934, allocations: 7.719 kB / 479.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3934, allocations: 1.625 kB / 479.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3934, allocations: 3.328 kB / 479.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003384/0.3968, allocations: 1.869 MB / 481.4 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.119e-05/0.3968, allocations: 5.312 kB / 481.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004274/0.3973, allocations: 99.02 kB / 481.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001576/0.3974, allocations: 49.55 kB / 481.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.3975, allocations: 20.22 kB / 481.6 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/0.3996, allocations: 2.739 MB / 484.4 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.3996, allocations: 8.969 kB / 484.4 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.4013, allocations: 0.927 MB / 485.3 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006461/0.4019, allocations: 271.7 kB / 485.6 MB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003211/0.4022, allocations: 11.81 kB / 485.6 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.403, allocations: 37.38 kB / 485.6 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.4031, allocations: 52.06 kB / 485.7 MB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.4031, allocations: 22.12 kB / 485.7 MB, free: 5.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001555/0.4047, allocations: 0.844 MB / 486.5 MB, free: 5.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4047, allocations: 0 / 486.5 MB, free: 5.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001426/0.4061, allocations: 309.5 kB / 486.8 MB, free: 5.34 MB / 382.1 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.0002595/0.4064, allocations: 134.7 kB / 487 MB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.408, allocations: 0.8949 MB / 487.8 MB, free: 4.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.4081, allocations: 9.109 kB / 487.9 MB, free: 4.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007302/0.4088, allocations: 457.1 kB / 488.3 MB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.4105, allocations: 339.1 kB / 488.6 MB, free: 4.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.4152, allocations: 2.561 MB / 491.2 MB, free: 2.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009574/0.4161, allocations: 1.174 MB / 492.4 MB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006965/0.4168, allocations: 170 kB / 492.5 MB, free: 1.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.4171, allocations: 84.22 kB / 492.6 MB, free: 1.609 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4171, allocations: 0 / 492.6 MB, free: 1.609 MB / 382.1 MB Notification: Performance of Templates: time 0.03146/0.4485, allocations: 15.49 MB / 0.4962 GB, free: 5.355 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.288596865721047]