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.001474/0.001474, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.001476/0.001476, allocations: 149.1 kB / 24.26 MB, free: 156 kB / 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 1.444/1.444, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.457e-05, allocations: 2.312 kB / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01449/0.01451, allocations: 10.57 MB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00647/0.02098, allocations: 3.109 MB / 281 MB, free: 8.949 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.02225, allocations: 43.81 kB / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.02421, allocations: 0.6477 MB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.0265, allocations: 0.814 MB / 282.5 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008691/0.02737, allocations: 407.5 kB / 282.9 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.03066, allocations: 2.505 MB / 285.4 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.03179, allocations: 0.607 MB / 286 MB, free: 3.859 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.03425, allocations: 1.395 MB / 287.4 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.03535, allocations: 0.7126 MB / 288.1 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003267/0.03568, allocations: 232 kB / 288.4 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005174/0.03619, allocations: 267.9 kB / 288.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004413/0.03663, allocations: 470.2 kB / 289.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.03769, allocations: 0.7327 MB / 289.8 MB, free: 64 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1188/0.1564, allocations: 2.832 MB / 292.6 MB, free: 19.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1565, allocations: 0 / 292.6 MB, free: 19.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1565, allocations: 0 / 292.6 MB, free: 19.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.191e-05/0.1565, allocations: 4.5 kB / 292.7 MB, free: 19.29 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004025/0.1605, allocations: 2.112 MB / 294.8 MB, free: 18.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1606, allocations: 11.86 kB / 294.8 MB, free: 18.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.1617, allocations: 415.9 kB / 295.2 MB, free: 18.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.1635, allocations: 1.093 MB / 296.3 MB, free: 17.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.409e-05/0.1636, allocations: 115.6 kB / 296.4 MB, free: 17.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.1638, allocations: 158.8 kB / 296.5 MB, free: 17.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.1664, allocations: 1.611 MB / 298.2 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.226e-05/0.1665, allocations: 8.172 kB / 298.2 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.1666, allocations: 69 kB / 298.2 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.764e-05/0.1666, allocations: 38.81 kB / 298.3 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.1686, allocations: 1.043 MB / 299.3 MB, free: 17.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006705/0.1753, allocations: 5.5 MB / 304.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.1768, allocations: 0.5688 MB / 305.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008955/0.1777, allocations: 434.7 kB / 305.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.931e-05/0.1777, allocations: 19.41 kB / 305.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1777, allocations: 42.78 kB / 305.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.1777, allocations: 5.25 kB / 305.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.004655/0.1824, allocations: 2.174 MB / 308 MB, free: 12.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.1824, allocations: 120.5 kB / 308.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.1837, allocations: 1.169 MB / 309.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.1837, allocations: 33.7 kB / 309.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003531/0.1841, allocations: 0.8905 MB / 310.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.1842, allocations: 262.7 kB / 310.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/0.1844, allocations: 206.6 kB / 310.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.1845, allocations: 349.7 kB / 311.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.185, allocations: 286.1 kB / 311.3 MB, free: 9.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/0.1856, allocations: 0.7893 MB / 312.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.1868, allocations: 1.081 MB / 313.2 MB, free: 7.996 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.1868, allocations: 3.5 kB / 313.2 MB, free: 7.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00207/0.1889, allocations: 1.315 MB / 314.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.1889, allocations: 10.94 kB / 314.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1889, allocations: 13.38 kB / 314.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007601/0.1897, allocations: 191.2 kB / 314.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007713/0.1905, allocations: 254.9 kB / 315 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/0.193, allocations: 4.251 MB / 319.2 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009411/0.194, allocations: 59.11 kB / 319.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.194, allocations: 60 kB / 319.3 MB, free: 2.789 MB / 266.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.0004927/0.1945, allocations: 351.5 kB / 319.7 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.1947, allocations: 155.2 kB / 319.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.1962, allocations: 0.822 MB / 320.7 MB, free: 1.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1962, allocations: 9.219 kB / 320.7 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1963, allocations: 0 / 320.7 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1963, allocations: 7.484 kB / 320.7 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.1996, allocations: 1.961 MB / 322.6 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.1996, allocations: 7.938 kB / 322.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000626/0.2002, allocations: 131.6 kB / 322.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008952/0.2011, allocations: 211 kB / 323 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/0.2012, allocations: 20 kB / 323 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005015/0.2062, allocations: 4.398 MB / 327.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/0.2062, allocations: 7.938 kB / 327.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002766/0.209, allocations: 1.301 MB / 328.7 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005109/0.2095, allocations: 191.1 kB / 328.9 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.2096, allocations: 23.92 kB / 328.9 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000645/0.2103, allocations: 35.97 kB / 329 MB, free: 8.805 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.2104, allocations: 68.64 kB / 329 MB, free: 8.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.605e-05/0.2105, allocations: 24 kB / 329 MB, free: 8.719 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001356/0.2118, allocations: 0.7685 MB / 329.8 MB, free: 7.945 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2118, allocations: 0 / 329.8 MB, free: 7.945 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001413/0.2132, allocations: 324 kB / 330.1 MB, free: 7.629 MB / 282.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.0002476/0.2135, allocations: 139.4 kB / 330.3 MB, free: 7.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.2156, allocations: 1.088 MB / 331.4 MB, free: 6.426 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.2156, allocations: 5.875 kB / 331.4 MB, free: 6.422 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.2167, allocations: 0.6844 MB / 332 MB, free: 5.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.2183, allocations: 352.9 kB / 332.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/0.2238, allocations: 2.827 MB / 335.2 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/0.2246, allocations: 0.6336 MB / 335.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006195/0.2252, allocations: 162.8 kB / 336 MB, free: 1.656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.2254, allocations: 88.48 kB / 336.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2254, allocations: 0 / 336.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of Templates: time 0.03287/0.2583, allocations: 17.28 MB / 353.4 MB, free: 0.6133 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.23436619003769]