Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002086/0.002086, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.831e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01433/0.01436, allocations: 10.25 MB / 282.5 MB, free: 7.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006601/0.02096, allocations: 3.09 MB / 285.6 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.02205, allocations: 43.81 kB / 285.6 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.02373, allocations: 0.6245 MB / 286.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.02554, allocations: 0.7558 MB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009344/0.02648, allocations: 403.4 kB / 287.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002816/0.0293, allocations: 2.342 MB / 289.7 MB, free: 232 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1145/0.1438, allocations: 0.6069 MB / 290.3 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.1461, allocations: 1.308 MB / 291.6 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009217/0.147, allocations: 0.6561 MB / 292.3 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002781/0.1473, allocations: 216.1 kB / 292.5 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004669/0.1477, allocations: 256.1 kB / 292.7 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000283/0.148, allocations: 437.5 kB / 293.2 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006951/0.1487, allocations: 0.6971 MB / 293.9 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00282/0.1515, allocations: 2.678 MB / 296.5 MB, free: 16.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1515, allocations: 2.125 kB / 296.5 MB, free: 16.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1515, allocations: 0 / 296.5 MB, free: 16.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.562e-05/0.1516, allocations: 1.625 kB / 296.5 MB, free: 16.06 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003309/0.1549, allocations: 2.03 MB / 298.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1549, allocations: 13.95 kB / 298.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009407/0.1559, allocations: 388.2 kB / 299 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/0.1574, allocations: 1.002 MB / 300 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.33e-05/0.1575, allocations: 113.8 kB / 300.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002102/0.1577, allocations: 161.5 kB / 300.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.16, allocations: 1.586 MB / 301.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.941e-05/0.16, allocations: 17.7 kB / 301.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.1602, allocations: 71.25 kB / 301.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.345e-05/0.1602, allocations: 38.69 kB / 302 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.1619, allocations: 0.9612 MB / 302.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005974/0.1679, allocations: 5.809 MB / 308.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000688/0.1686, allocations: 381.3 kB / 309.1 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.1689, allocations: 203.5 kB / 309.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.169, allocations: 8.188 kB / 309.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004444/0.1694, allocations: 328.1 kB / 309.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.1694, allocations: 0 / 309.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002905/0.1723, allocations: 1.559 MB / 311.2 MB, free: 7.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1724, allocations: 167.6 kB / 311.3 MB, free: 7.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.1735, allocations: 1.111 MB / 312.5 MB, free: 6.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.1736, allocations: 36.89 kB / 312.5 MB, free: 6.391 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.174, allocations: 0.9035 MB / 313.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.56e-05/0.1741, allocations: 210.5 kB / 313.6 MB, free: 5.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.1743, allocations: 221.5 kB / 313.8 MB, free: 5.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.1744, allocations: 344.2 kB / 314.2 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003985/0.1748, allocations: 264.5 kB / 314.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.1753, allocations: 0.9291 MB / 315.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009679/0.1763, allocations: 1.121 MB / 316.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.1763, allocations: 8 kB / 316.5 MB, free: 2.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001599/0.1779, allocations: 1.248 MB / 317.7 MB, free: 1.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.1779, allocations: 46.47 kB / 317.8 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.178, allocations: 16 kB / 317.8 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.1782, allocations: 65.7 kB / 317.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.1789, allocations: 272.3 kB / 318.1 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.1808, allocations: 2.519 MB / 320.6 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009536/0.1818, allocations: 63.94 kB / 320.7 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.949e-05/0.1819, allocations: 60.16 kB / 320.7 MB, free: 14.3 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006257/0.1825, allocations: 365.5 kB / 321.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.1827, allocations: 143.2 kB / 321.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.1839, allocations: 0.5296 MB / 321.8 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1839, allocations: 8 kB / 321.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1839, allocations: 3.094 kB / 321.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.1839, allocations: 11.92 kB / 321.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.1867, allocations: 1.536 MB / 323.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.1867, allocations: 4.094 kB / 323.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.1871, allocations: 106.7 kB / 323.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.1873, allocations: 49.64 kB / 323.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.1874, allocations: 19.98 kB / 323.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/0.1898, allocations: 2.49 MB / 326 MB, free: 8.809 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.1898, allocations: 7.984 kB / 326 MB, free: 8.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.1915, allocations: 0.9245 MB / 326.9 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004378/0.1919, allocations: 159.2 kB / 327.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.1921, allocations: 16 kB / 327.1 MB, free: 7.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.1926, allocations: 31.97 kB / 327.1 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.1927, allocations: 55.33 kB / 327.2 MB, free: 7.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.1927, allocations: 26.39 kB / 327.2 MB, free: 7.547 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.1939, allocations: 0.7161 MB / 327.9 MB, free: 6.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1939, allocations: 0 / 327.9 MB, free: 6.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001235/0.1951, allocations: 300 kB / 328.2 MB, free: 6.531 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000239/0.1954, allocations: 133.4 kB / 328.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.197, allocations: 0.9316 MB / 329.3 MB, free: 5.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.197, allocations: 0 / 329.3 MB, free: 5.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007534/0.1978, allocations: 465.6 kB / 329.7 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.1992, allocations: 318.9 kB / 330.1 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004604/0.2038, allocations: 2.453 MB / 332.5 MB, free: 2.223 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007653/0.2046, allocations: 0.5922 MB / 333.1 MB, free: 1.594 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005831/0.2051, allocations: 150.1 kB / 333.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/0.2053, allocations: 80.5 kB / 333.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2053, allocations: 0 / 333.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of Templates: time 0.02911/0.2344, allocations: 14.38 MB / 347.7 MB, free: 3.32 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.1373961720382795]