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.00101/0.00101, allocations: 75.75 kB / 21.69 MB, free: 2.859 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.0009644/0.0009644, allocations: 166.1 kB / 24.99 MB, free: 9.297 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.9765/0.9765, allocations: 177.1 MB / 205.3 MB, free: 5.625 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: 0 / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.913e-05/2.059e-05, allocations: 2.312 kB / 273.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009898/0.009918, allocations: 12.03 MB / 285.1 MB, free: 5.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00591/0.01583, allocations: 3.261 MB / 288.4 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.01716, allocations: 43.81 kB / 288.4 MB, free: 2.418 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.01855, allocations: 0.6477 MB / 289.1 MB, free: 1.766 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001321/0.01987, allocations: 0.814 MB / 289.9 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006168/0.02048, allocations: 407.4 kB / 290.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1195/0.14, allocations: 2.501 MB / 292.8 MB, free: 16.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.1412, allocations: 0.6058 MB / 293.4 MB, free: 16.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.1433, allocations: 1.413 MB / 294.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.1446, allocations: 0.7688 MB / 295.6 MB, free: 16.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004436/0.145, allocations: 230.5 kB / 295.8 MB, free: 16.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004978/0.1455, allocations: 272.1 kB / 296 MB, free: 16.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.1458, allocations: 468 kB / 296.5 MB, free: 16.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.1468, allocations: 0.7433 MB / 297.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.1488, allocations: 1.495 MB / 298.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1488, allocations: 0 / 298.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1488, allocations: 3.906 kB / 298.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.83e-05/0.1489, allocations: 0.9062 kB / 298.7 MB, free: 15.47 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.00314/0.152, allocations: 2.243 MB / 301 MB, free: 14.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.152, allocations: 9.781 kB / 301 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008601/0.1529, allocations: 415.5 kB / 301.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.1544, allocations: 1.061 MB / 302.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.1545, allocations: 113.3 kB / 302.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.1546, allocations: 161.6 kB / 302.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.1563, allocations: 1.268 MB / 304 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.113e-05/0.1564, allocations: 13.86 kB / 304 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.347e-05/0.1564, allocations: 65.06 kB / 304.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.292e-05/0.1565, allocations: 38.69 kB / 304.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1575, allocations: 0.5707 MB / 304.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004608/0.1621, allocations: 5.91 MB / 310.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007396/0.1629, allocations: 429.2 kB / 311 MB, free: 8.074 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.1633, allocations: 307.1 kB / 311.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.1634, allocations: 11.41 kB / 311.3 MB, free: 8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.1634, allocations: 41.27 kB / 311.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 4.729e-06/0.1634, allocations: 0 / 311.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.00244/0.1659, allocations: 1.656 MB / 313 MB, free: 7.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.1659, allocations: 109.1 kB / 313.1 MB, free: 7.004 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009387/0.1668, allocations: 1.139 MB / 314.3 MB, free: 6.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/0.1669, allocations: 41.02 kB / 314.3 MB, free: 6.309 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003502/0.1672, allocations: 0.9414 MB / 315.2 MB, free: 5.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.1673, allocations: 274.8 kB / 315.5 MB, free: 5.102 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1675, allocations: 208.5 kB / 315.7 MB, free: 4.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.1676, allocations: 0.516 MB / 316.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.1678, allocations: 142.5 kB / 316.4 MB, free: 4.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003559/0.1681, allocations: 0.8441 MB / 317.2 MB, free: 3.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.1688, allocations: 1.015 MB / 318.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.1688, allocations: 4 kB / 318.2 MB, free: 1.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001142/0.1699, allocations: 1.027 MB / 319.3 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.17, allocations: 12 kB / 319.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.17, allocations: 16 kB / 319.3 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000402/0.1704, allocations: 143.6 kB / 319.4 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004475/0.1708, allocations: 249.1 kB / 319.7 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.1736, allocations: 5.626 MB / 325.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006314/0.1742, allocations: 52.09 kB / 325.4 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/0.1743, allocations: 60 kB / 325.4 MB, free: 10.43 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.0003563/0.1746, allocations: 229.1 kB / 325.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.1748, allocations: 151.2 kB / 325.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008242/0.1756, allocations: 0.6039 MB / 326.4 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1756, allocations: 8 kB / 326.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1756, allocations: 0 / 326.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1756, allocations: 3.984 kB / 326.4 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.1779, allocations: 1.833 MB / 328.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.1779, allocations: 12 kB / 328.2 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.1782, allocations: 125.5 kB / 328.4 MB, free: 7.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003765/0.1786, allocations: 150.9 kB / 328.5 MB, free: 7.246 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.1786, allocations: 16 kB / 328.5 MB, free: 7.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.1814, allocations: 5.691 MB / 334.2 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.1814, allocations: 11.94 kB / 334.2 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.1825, allocations: 1.025 MB / 335.3 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.1829, allocations: 191 kB / 335.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.532e-05/0.183, allocations: 19.94 kB / 335.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.1833, allocations: 31.97 kB / 335.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1834, allocations: 71.61 kB / 335.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.1834, allocations: 20 kB / 335.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006949/0.1841, allocations: 0.6785 MB / 336.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1841, allocations: 4 kB / 336.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001007/0.1851, allocations: 327.9 kB / 336.6 MB, free: 14.77 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.0002642/0.1854, allocations: 131.6 kB / 336.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.1866, allocations: 1.057 MB / 337.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1866, allocations: 4 kB / 337.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.1871, allocations: 0.754 MB / 338.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009768/0.1881, allocations: 351.2 kB / 338.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.192, allocations: 2.698 MB / 341.6 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.1922, allocations: 249 kB / 341.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.1927, allocations: 158.8 kB / 342 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.1928, allocations: 84.48 kB / 342.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of SimCode: time 2.615e-06/0.1928, allocations: 0 / 342.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of Templates: time 0.02421/0.217, allocations: 17.39 MB / 359.4 MB, free: 8.129 MB / 314.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.4249629450496286]