Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 145.7 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9879/0.9879, allocations: 173.4 MB / 201.5 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 268.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.526e-05/1.648e-05, allocations: 9.344 kB / 268.5 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009822/0.009838, allocations: 11.78 MB / 280.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005697/0.01553, allocations: 3.355 MB / 283.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008365/0.01637, allocations: 43.88 kB / 283.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.01771, allocations: 0.6554 MB / 284.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001473/0.01918, allocations: 0.8256 MB / 285.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.01982, allocations: 407.4 kB / 285.6 MB, free: 8.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002121/0.02194, allocations: 2.505 MB / 288.1 MB, free: 6.121 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007996/0.02274, allocations: 0.6305 MB / 288.7 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.02452, allocations: 1.419 MB / 290.1 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000831/0.02535, allocations: 0.779 MB / 290.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.02557, allocations: 224 kB / 291.1 MB, free: 2.996 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003682/0.02594, allocations: 264 kB / 291.4 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.02619, allocations: 466.2 kB / 291.9 MB, free: 2.281 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005875/0.02677, allocations: 0.7326 MB / 292.6 MB, free: 1.547 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.02816, allocations: 1.487 MB / 294.1 MB, free: 56 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.02816, allocations: 4 kB / 294.1 MB, free: 52 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.02816, allocations: 0 / 294.1 MB, free: 52 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.02818, allocations: 0 / 294.1 MB, free: 52 kB / 266.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.002436/0.03062, allocations: 2.069 MB / 296.1 MB, free: 13.94 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.03066, allocations: 15.97 kB / 296.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006487/0.03131, allocations: 344.6 kB / 296.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.03271, allocations: 0.793 MB / 297.3 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/0.03278, allocations: 111.5 kB / 297.4 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.03293, allocations: 164.3 kB / 297.6 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.03419, allocations: 1.175 MB / 298.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.085e-05/0.03423, allocations: 7.938 kB / 298.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.03431, allocations: 67.98 kB / 298.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.77e-05/0.03433, allocations: 40 kB / 298.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005849/0.03492, allocations: 394.8 kB / 299.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/0.03986, allocations: 4.707 MB / 303.9 MB, free: 5.723 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006411/0.0405, allocations: 367.8 kB / 304.3 MB, free: 5.355 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003744/0.04088, allocations: 254.5 kB / 304.5 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.04092, allocations: 16.66 kB / 304.6 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.04094, allocations: 39.22 kB / 304.6 MB, free: 5.039 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 4.158e-06/0.04095, allocations: 0 / 304.6 MB, free: 5.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.002081/0.04303, allocations: 1.227 MB / 305.8 MB, free: 3.781 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.04308, allocations: 111.5 kB / 305.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008478/0.04393, allocations: 1.009 MB / 306.9 MB, free: 2.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.04396, allocations: 41.7 kB / 307 MB, free: 2.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.0443, allocations: 0.7275 MB / 307.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.04444, allocations: 273.7 kB / 308 MB, free: 1.574 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.04463, allocations: 206.7 kB / 308.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.04475, allocations: 353.8 kB / 308.5 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.04489, allocations: 98.56 kB / 308.6 MB, free: 0.918 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.04528, allocations: 0.6168 MB / 309.2 MB, free: 76 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.04594, allocations: 0.7796 MB / 310 MB, free: 15.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.04594, allocations: 4 kB / 310 MB, free: 15.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001048/0.04699, allocations: 0.7539 MB / 310.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.04701, allocations: 16.03 kB / 310.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.04703, allocations: 19.98 kB / 310.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003874/0.04742, allocations: 154.2 kB / 311 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005884/0.04801, allocations: 275.5 kB / 311.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.05004, allocations: 3.783 MB / 315 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.0505, allocations: 51.88 kB / 315.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.05055, allocations: 47.94 kB / 315.1 MB, free: 9.707 MB / 298.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.05079, allocations: 193.3 kB / 315.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.0509, allocations: 99.89 kB / 315.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006055/0.05151, allocations: 472.4 kB / 315.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.05151, allocations: 11.94 kB / 315.9 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.05152, allocations: 4 kB / 315.9 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.05152, allocations: 3.984 kB / 315.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.0531, allocations: 1.215 MB / 317.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/0.0531, allocations: 4 kB / 317.1 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.05348, allocations: 139.8 kB / 317.2 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003704/0.05385, allocations: 174.3 kB / 317.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.05388, allocations: 23.88 kB / 317.4 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.05595, allocations: 3.837 MB / 321.3 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.05596, allocations: 4 kB / 321.3 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007877/0.05675, allocations: 0.7381 MB / 322 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.05698, allocations: 127.1 kB / 322.1 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.108e-05/0.05707, allocations: 20 kB / 322.2 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.05737, allocations: 27.98 kB / 322.2 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.05747, allocations: 72.27 kB / 322.3 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.0575, allocations: 20 kB / 322.3 MB, free: 2.102 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004254/0.05793, allocations: 469.9 kB / 322.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.05793, allocations: 0 / 322.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008475/0.05877, allocations: 328 kB / 323.1 MB, free: 1.316 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001845/0.05896, allocations: 116.2 kB / 323.2 MB, free: 1.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008175/0.05978, allocations: 0.8194 MB / 324 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.463e-05/0.0598, allocations: 17.81 kB / 324 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.06024, allocations: 0.5564 MB / 324.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.0613, allocations: 341.9 kB / 324.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.06479, allocations: 2.565 MB / 327.5 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.06498, allocations: 245 kB / 327.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004651/0.06545, allocations: 154.8 kB / 327.8 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005928/0.06604, allocations: 349.1 kB / 328.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.06604, allocations: 0 / 328.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of Templates: time 0.02758/0.09362, allocations: 18.77 MB / 347 MB, free: 9.516 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.3004877767525613]