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.001711/0.001711, allocations: 71.22 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002092/0.002092, allocations: 158.8 kB / 24.5 MB, free: 3.715 MB / 14.72 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 1.475/1.475, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001591/0.001591, allocations: 51.11 kB / 325.6 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.0965, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01285/0.1094, allocations: 10.57 MB / 389.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006216/0.1156, allocations: 3.144 MB / 392.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.1166, allocations: 39.88 kB / 392.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.1181, allocations: 0.6362 MB / 393.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.1198, allocations: 0.7911 MB / 394.1 MB, free: 420 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007655/0.1206, allocations: 399.5 kB / 394.5 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002656/0.1232, allocations: 2.417 MB / 396.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009464/0.1242, allocations: 0.6031 MB / 397.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.1254, allocations: 0.9301 MB / 398.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.1265, allocations: 0.855 MB / 399.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002706/0.1267, allocations: 232 kB / 399.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004446/0.1272, allocations: 268 kB / 399.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003746/0.1276, allocations: 462.3 kB / 400.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009101/0.1285, allocations: 0.8634 MB / 401.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002821/0.1313, allocations: 2.864 MB / 404 MB, free: 6.465 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1313, allocations: 0 / 404 MB, free: 6.465 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1313, allocations: 0 / 404 MB, free: 6.465 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.1313, allocations: 0 / 404 MB, free: 6.465 MB / 366.1 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.003644/0.135, allocations: 2.137 MB / 406.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.135, allocations: 12.03 kB / 406.1 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009265/0.1359, allocations: 295.5 kB / 406.4 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.1378, allocations: 1.051 MB / 407.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.565e-05/0.1379, allocations: 115.5 kB / 407.6 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.1382, allocations: 163.8 kB / 407.7 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.1408, allocations: 1.608 MB / 409.3 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.314e-05/0.1408, allocations: 7.938 kB / 409.3 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.1409, allocations: 64 kB / 409.4 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.141, allocations: 43.94 kB / 409.4 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002056/0.143, allocations: 1.037 MB / 410.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007672/0.1507, allocations: 5.416 MB / 415.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.1522, allocations: 0.571 MB / 416.5 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009164/0.1532, allocations: 421.8 kB / 416.9 MB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.1532, allocations: 8.656 kB / 416.9 MB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.1532, allocations: 43.16 kB / 416.9 MB, free: 9.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.1532, allocations: 0 / 416.9 MB, free: 9.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.004824/0.1581, allocations: 2.173 MB / 419.1 MB, free: 6.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.1581, allocations: 111.5 kB / 419.2 MB, free: 6.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.1597, allocations: 1.18 MB / 420.4 MB, free: 5.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.1598, allocations: 41.7 kB / 420.4 MB, free: 5.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006766/0.1604, allocations: 0.8857 MB / 421.3 MB, free: 4.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.1607, allocations: 269.7 kB / 421.6 MB, free: 4.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.1609, allocations: 202.8 kB / 421.8 MB, free: 4.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1611, allocations: 353.9 kB / 422.1 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.1617, allocations: 286.5 kB / 422.4 MB, free: 3.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009763/0.1627, allocations: 0.781 MB / 423.2 MB, free: 2.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.1643, allocations: 1.092 MB / 424.3 MB, free: 1.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.1643, allocations: 8 kB / 424.3 MB, free: 1.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002369/0.1667, allocations: 1.253 MB / 425.5 MB, free: 15.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.1667, allocations: 12 kB / 425.5 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.1667, allocations: 16 kB / 425.6 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004944/0.1672, allocations: 130.5 kB / 425.7 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008494/0.1681, allocations: 259.6 kB / 425.9 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003938/0.172, allocations: 4.244 MB / 430.2 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/0.1728, allocations: 56.12 kB / 430.2 MB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-05/0.1729, allocations: 56 kB / 430.3 MB, free: 10.77 MB / 398.1 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.0006994/0.1736, allocations: 357.3 kB / 430.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002303/0.1738, allocations: 135.2 kB / 430.8 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.1757, allocations: 0.8126 MB / 431.6 MB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.1757, allocations: 8 kB / 431.6 MB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1757, allocations: 0 / 431.6 MB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-06/0.1757, allocations: 7.984 kB / 431.6 MB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.1795, allocations: 1.953 MB / 433.6 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.1795, allocations: 4.609 kB / 433.6 MB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006236/0.1801, allocations: 135.8 kB / 433.7 MB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004871/0.1806, allocations: 130.5 kB / 433.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.1807, allocations: 19.98 kB / 433.8 MB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004607/0.1853, allocations: 4.401 MB / 438.2 MB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.1853, allocations: 4 kB / 438.2 MB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.1879, allocations: 1.292 MB / 439.5 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.1884, allocations: 195 kB / 439.7 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.1885, allocations: 16 kB / 439.7 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005872/0.1891, allocations: 39.97 kB / 439.8 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.1892, allocations: 68.27 kB / 439.9 MB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.1893, allocations: 27.98 kB / 439.9 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.1904, allocations: 0.7685 MB / 440.6 MB, free: 15.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1904, allocations: 0 / 440.6 MB, free: 15.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001188/0.1916, allocations: 335.9 kB / 441 MB, free: 15.58 MB / 414.1 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.0002355/0.1919, allocations: 135.1 kB / 441.1 MB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.1938, allocations: 1.066 MB / 442.2 MB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.1938, allocations: 8.047 kB / 442.2 MB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.1949, allocations: 0.6909 MB / 442.9 MB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.1966, allocations: 342.5 kB / 443.2 MB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005262/0.2019, allocations: 2.939 MB / 446.1 MB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/0.2026, allocations: 0.6298 MB / 446.8 MB, free: 9.586 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005862/0.2032, allocations: 158.8 kB / 446.9 MB, free: 9.426 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.2034, allocations: 88.48 kB / 447 MB, free: 9.34 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2034, allocations: 0 / 447 MB, free: 9.34 MB / 414.1 MB Notification: Performance of Templates: time 0.03225/0.2356, allocations: 17.39 MB / 464.4 MB, free: 8.203 MB / 430.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.258719718083739]