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.001903/0.001903, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.00192/0.00192, allocations: 153.1 kB / 24.27 MB, free: 168 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.563/1.563, allocations: 173.3 MB / 200.8 MB, free: 9.324 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.313e-06/1.313e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.558e-05/2.689e-05, allocations: 6.25 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01747/0.0175, allocations: 11.98 MB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006653/0.02415, allocations: 3.226 MB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.02517, allocations: 39.88 kB / 282.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.02695, allocations: 0.6438 MB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001873/0.02883, allocations: 0.8141 MB / 284 MB, free: 5.941 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007776/0.0296, allocations: 411.4 kB / 284.4 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00303/0.03263, allocations: 2.513 MB / 286.9 MB, free: 3.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.03369, allocations: 0.6031 MB / 287.6 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.03569, allocations: 1.407 MB / 289 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.03687, allocations: 0.7712 MB / 289.7 MB, free: 184 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1097/0.1466, allocations: 227.6 kB / 290 MB, free: 19.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.1477, allocations: 268.7 kB / 290.2 MB, free: 19.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003174/0.148, allocations: 469.5 kB / 290.7 MB, free: 19.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008711/0.1488, allocations: 0.7469 MB / 291.4 MB, free: 19.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003918/0.1528, allocations: 2.851 MB / 294.3 MB, free: 18.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.1528, allocations: 1.406 kB / 294.3 MB, free: 18.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1528, allocations: 1.219 kB / 294.3 MB, free: 18.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.746e-05/0.1528, allocations: 1.406 kB / 294.3 MB, free: 18.91 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.004515/0.1574, allocations: 2.405 MB / 296.7 MB, free: 17.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1574, allocations: 10.61 kB / 296.7 MB, free: 17.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.1585, allocations: 417.3 kB / 297.1 MB, free: 17.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.1606, allocations: 1.1 MB / 298.2 MB, free: 17.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.03e-05/0.1607, allocations: 116.2 kB / 298.3 MB, free: 17.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002161/0.1609, allocations: 159.3 kB / 298.5 MB, free: 17.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/0.1634, allocations: 1.727 MB / 300.2 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-05/0.1635, allocations: 9.688 kB / 300.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.1636, allocations: 66.28 kB / 300.3 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.1636, allocations: 42.22 kB / 300.3 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/0.1655, allocations: 1.005 MB / 301.3 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007791/0.1733, allocations: 7.421 MB / 308.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.1746, allocations: 0.5836 MB / 309.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007527/0.1753, allocations: 427.5 kB / 309.7 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.1754, allocations: 11 kB / 309.7 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.1754, allocations: 46.08 kB / 309.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.923e-06/0.1754, allocations: 0 / 309.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.004081/0.1795, allocations: 2.121 MB / 311.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1795, allocations: 114.3 kB / 312 MB, free: 9.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.181, allocations: 1.492 MB / 313.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.181, allocations: 37.11 kB / 313.6 MB, free: 8.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.1814, allocations: 1.007 MB / 314.6 MB, free: 7.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1816, allocations: 292.6 kB / 314.8 MB, free: 7.676 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.1818, allocations: 253.8 kB / 315.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.182, allocations: 0.5573 MB / 315.7 MB, free: 6.988 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.1824, allocations: 270.3 kB / 315.9 MB, free: 6.867 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006638/0.1831, allocations: 1.004 MB / 316.9 MB, free: 5.785 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.1842, allocations: 1.3 MB / 318.2 MB, free: 4.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1842, allocations: 4 kB / 318.2 MB, free: 4.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001851/0.1861, allocations: 1.289 MB / 319.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1861, allocations: 12 kB / 319.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.1861, allocations: 16 kB / 319.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006567/0.1868, allocations: 178.3 kB / 319.7 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007367/0.1875, allocations: 247 kB / 320 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004408/0.1919, allocations: 5.906 MB / 325.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.193, allocations: 47.94 kB / 325.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.351e-05/0.1931, allocations: 59.98 kB / 326 MB, free: 12.29 MB / 282.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.0007134/0.1938, allocations: 401.6 kB / 326.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.194, allocations: 156 kB / 326.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.1958, allocations: 0.7919 MB / 327.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.1958, allocations: 8 kB / 327.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1958, allocations: 0 / 327.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.1958, allocations: 6.047 kB / 327.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004499/0.2003, allocations: 2.436 MB / 329.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.2003, allocations: 4.406 kB / 329.8 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005794/0.2009, allocations: 129.8 kB / 329.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007663/0.2017, allocations: 193.3 kB / 330.1 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.833e-05/0.2017, allocations: 19.98 kB / 330.1 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005832/0.2076, allocations: 6.025 MB / 336.1 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/0.2076, allocations: 15.58 kB / 336.1 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.2101, allocations: 1.366 MB / 337.5 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005104/0.2106, allocations: 190.8 kB / 337.7 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.2108, allocations: 31.92 kB / 337.7 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005783/0.2114, allocations: 27.98 kB / 337.7 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.2115, allocations: 71.7 kB / 337.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.2116, allocations: 20 kB / 337.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001479/0.213, allocations: 0.8973 MB / 338.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.213, allocations: 3.375 kB / 338.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001363/0.2144, allocations: 328 kB / 339.1 MB, free: 14.71 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.0002214/0.2146, allocations: 142.5 kB / 339.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.2167, allocations: 1.311 MB / 340.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2167, allocations: 0 / 340.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.2179, allocations: 0.8526 MB / 341.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.2195, allocations: 344.8 kB / 341.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005326/0.2248, allocations: 2.853 MB / 344.5 MB, free: 9.105 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007852/0.2256, allocations: 0.6375 MB / 345.2 MB, free: 8.426 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006291/0.2262, allocations: 154.8 kB / 345.3 MB, free: 8.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.2264, allocations: 88.48 kB / 345.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2264, allocations: 0 / 345.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of Templates: time 0.03494/0.2614, allocations: 17.33 MB / 362.7 MB, free: 7.172 MB / 314.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 -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","/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.292479183990508]