Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0009667/0.0009667, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.0008746/0.0008746, allocations: 167.1 kB / 25.61 MB, free: 8.598 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.8586/0.8586, allocations: 177.1 MB / 206.1 MB, free: 4.48 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_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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 3.938 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.637e-05/2.783e-05, allocations: 3.25 kB / 274.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009453/0.009481, allocations: 11.73 MB / 285.9 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005813/0.01529, allocations: 3.25 MB / 289.2 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.01656, allocations: 43.81 kB / 289.2 MB, free: 5.312 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.01799, allocations: 0.6477 MB / 289.9 MB, free: 4.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.01947, allocations: 0.8178 MB / 290.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006666/0.02013, allocations: 407.5 kB / 291.1 MB, free: 3.438 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.0223, allocations: 2.509 MB / 293.6 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007627/0.02307, allocations: 0.607 MB / 294.2 MB, free: 268 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.02463, allocations: 1.419 MB / 295.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007785/0.02541, allocations: 0.7712 MB / 296.4 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002217/0.02563, allocations: 224 kB / 296.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003283/0.02596, allocations: 268 kB / 296.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.02619, allocations: 466.2 kB / 297.3 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000605/0.02679, allocations: 0.7365 MB / 298.1 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.02816, allocations: 1.483 MB / 299.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.02817, allocations: 0 / 299.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.02817, allocations: 0 / 299.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.02819, allocations: 3.938 kB / 299.6 MB, free: 10.9 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002307/0.0305, allocations: 2.25 MB / 301.8 MB, free: 8.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.03054, allocations: 11.98 kB / 301.8 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006253/0.03116, allocations: 423.5 kB / 302.2 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.03222, allocations: 1.003 MB / 303.2 MB, free: 7.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/0.03228, allocations: 115.5 kB / 303.4 MB, free: 7.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.03243, allocations: 164.3 kB / 303.5 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.03357, allocations: 1.175 MB / 304.7 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/0.03362, allocations: 15.88 kB / 304.7 MB, free: 5.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.03369, allocations: 64 kB / 304.8 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.03372, allocations: 36 kB / 304.8 MB, free: 5.457 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005822/0.0343, allocations: 454.7 kB / 305.2 MB, free: 5.004 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006222/0.04052, allocations: 5.958 MB / 311.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/0.04133, allocations: 391.9 kB / 311.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.04179, allocations: 269.4 kB / 311.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.04184, allocations: 16.64 kB / 311.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.04187, allocations: 46.03 kB / 311.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.876e-06/0.04187, allocations: 3.938 kB / 311.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.002747/0.04462, allocations: 1.333 MB / 313.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.04468, allocations: 111.5 kB / 313.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.04579, allocations: 1.106 MB / 314.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.04583, allocations: 33.7 kB / 314.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006259/0.04646, allocations: 0.9664 MB / 315.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.04665, allocations: 269.7 kB / 315.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.0469, allocations: 220.4 kB / 315.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.04708, allocations: 0.5198 MB / 316.5 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.04727, allocations: 110.5 kB / 316.6 MB, free: 9.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.04785, allocations: 0.8179 MB / 317.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000902/0.04875, allocations: 0.9637 MB / 318.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.04876, allocations: 4 kB / 318.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001446/0.05021, allocations: 0.9444 MB / 319.3 MB, free: 5.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.05024, allocations: 12.62 kB / 319.3 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.05026, allocations: 20 kB / 319.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.0507, allocations: 139 kB / 319.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.05133, allocations: 251.6 kB / 319.7 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00325/0.05458, allocations: 5.537 MB / 325.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000825/0.05541, allocations: 56.17 kB / 325.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-05/0.05547, allocations: 44 kB / 325.3 MB, free: 15.5 MB / 314.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.0004101/0.05588, allocations: 244 kB / 325.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.05609, allocations: 155.2 kB / 325.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009025/0.05699, allocations: 0.5513 MB / 326.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.057, allocations: 8 kB / 326.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.057, allocations: 0 / 326.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.05701, allocations: 3.984 kB / 326.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.05944, allocations: 1.584 MB / 327.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.05944, allocations: 4 kB / 327.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.05986, allocations: 128.3 kB / 328 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004477/0.06031, allocations: 150.9 kB / 328.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.06035, allocations: 31.86 kB / 328.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003019/0.06337, allocations: 5.604 MB / 333.8 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.06338, allocations: 4 kB / 333.8 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.06471, allocations: 0.9682 MB / 334.8 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004095/0.06512, allocations: 187.1 kB / 335 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.06524, allocations: 20.12 kB / 335 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.06566, allocations: 35.98 kB / 335 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.06578, allocations: 68.41 kB / 335.1 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.06582, allocations: 16 kB / 335.1 MB, free: 5.168 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006521/0.06647, allocations: 0.6197 MB / 335.7 MB, free: 4.543 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.06647, allocations: 0 / 335.7 MB, free: 4.543 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001211/0.06768, allocations: 328 kB / 336 MB, free: 4.223 MB / 314.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.0002412/0.06792, allocations: 139 kB / 336.2 MB, free: 4.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.06909, allocations: 1.002 MB / 337.2 MB, free: 3.023 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.06909, allocations: 4 kB / 337.2 MB, free: 3.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006045/0.0697, allocations: 0.729 MB / 337.9 MB, free: 2.238 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.07093, allocations: 349.1 kB / 338.2 MB, free: 1.906 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/0.0755, allocations: 2.682 MB / 340.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.07576, allocations: 253 kB / 341.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005601/0.07632, allocations: 162.8 kB / 341.3 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006515/0.07698, allocations: 398 kB / 341.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of SimCode: time 1.633e-06/0.07698, allocations: 0 / 341.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of Templates: time 0.1458/0.2228, allocations: 19.12 MB / 360.8 MB, free: 65.53 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.4877131548710167]