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.00193/0.00193, allocations: 103.5 kB / 20.97 MB, free: 3.449 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.001979/0.001979, allocations: 160.8 kB / 24.27 MB, free: 148 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.585/1.585, allocations: 177 MB / 204.5 MB, free: 5.621 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.303e-06/1.303e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.507e-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.01606/0.01609, allocations: 11.63 MB / 283.8 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007045/0.02313, allocations: 3.203 MB / 287 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.02456, allocations: 39.81 kB / 287.1 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.02642, allocations: 0.6206 MB / 287.7 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002099/0.02852, allocations: 0.7636 MB / 288.5 MB, free: 1.473 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008582/0.02938, allocations: 407.4 kB / 288.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1258/0.1552, allocations: 2.327 MB / 291.2 MB, free: 16.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.1563, allocations: 0.6049 MB / 291.8 MB, free: 16.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.1585, allocations: 1.323 MB / 293.1 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001203/0.1597, allocations: 0.7147 MB / 293.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003263/0.1601, allocations: 217.6 kB / 294 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005212/0.1606, allocations: 255.4 kB / 294.3 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003233/0.1609, allocations: 443.2 kB / 294.7 MB, free: 16.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008319/0.1617, allocations: 0.7018 MB / 295.4 MB, free: 16.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003236/0.165, allocations: 2.696 MB / 298.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.165, allocations: 0 / 298.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.165, allocations: 1.406 kB / 298.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.518e-05/0.165, allocations: 1.281 kB / 298.1 MB, free: 15.93 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.003897/0.1689, allocations: 2.313 MB / 300.4 MB, free: 14.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.169, allocations: 14.05 kB / 300.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.17, allocations: 389.1 kB / 300.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.1717, allocations: 1.017 MB / 301.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.1718, allocations: 118 kB / 302 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002252/0.172, allocations: 159.5 kB / 302.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.1745, allocations: 1.728 MB / 303.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.554e-05/0.1746, allocations: 8.172 kB / 303.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.1747, allocations: 66.56 kB / 303.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.861e-05/0.1748, allocations: 40.47 kB / 304 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.1764, allocations: 0.9377 MB / 304.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007865/0.1843, allocations: 7.886 MB / 312.8 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.185, allocations: 385 kB / 313.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.1853, allocations: 201.5 kB / 313.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.1854, allocations: 11.69 kB / 313.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004928/0.1859, allocations: 347.8 kB / 313.7 MB, free: 5.617 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.274e-06/0.1859, allocations: 0 / 313.7 MB, free: 5.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.003355/0.1892, allocations: 1.545 MB / 315.3 MB, free: 4.441 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1893, allocations: 166.5 kB / 315.4 MB, free: 4.246 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.1907, allocations: 1.442 MB / 316.9 MB, free: 2.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.1907, allocations: 37.7 kB / 316.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005394/0.1913, allocations: 1.024 MB / 317.9 MB, free: 1.719 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1914, allocations: 226.4 kB / 318.1 MB, free: 1.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.1916, allocations: 272.4 kB / 318.4 MB, free: 1.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1918, allocations: 0.5551 MB / 319 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.1921, allocations: 252.2 kB / 319.2 MB, free: 420 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.1933, allocations: 1.214 MB / 320.4 MB, free: 14.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/0.1955, allocations: 1.39 MB / 321.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.1955, allocations: 4 kB / 321.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002443/0.1979, allocations: 1.249 MB / 323.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.603e-05/0.198, allocations: 45.69 kB / 323.1 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/0.198, allocations: 20 kB / 323.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003086/0.1983, allocations: 74.45 kB / 323.2 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008274/0.1992, allocations: 270.1 kB / 323.5 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00312/0.2023, allocations: 3.564 MB / 327 MB, free: 7.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.2036, allocations: 68.19 kB / 327.1 MB, free: 7.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.2038, allocations: 63.98 kB / 327.2 MB, free: 7.66 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.0008602/0.2046, allocations: 410.5 kB / 327.6 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003701/0.205, allocations: 135.2 kB / 327.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.2066, allocations: 0.5344 MB / 328.2 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.2066, allocations: 4 kB / 328.2 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.2066, allocations: 4 kB / 328.2 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.2066, allocations: 7.922 kB / 328.2 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004237/0.2108, allocations: 2.026 MB / 330.3 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.2108, allocations: 7.625 kB / 330.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000438/0.2113, allocations: 98.7 kB / 330.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.2115, allocations: 55.73 kB / 330.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.725e-05/0.2115, allocations: 23.98 kB / 330.4 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/0.2147, allocations: 3.531 MB / 334 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.2147, allocations: 12.23 kB / 334 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.2166, allocations: 1.01 MB / 335 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009795/0.2176, allocations: 159.1 kB / 335.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003578/0.218, allocations: 16 kB / 335.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000699/0.2187, allocations: 27.98 kB / 335.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.2188, allocations: 67.06 kB / 335.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.2189, allocations: 20 kB / 335.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001676/0.2205, allocations: 0.841 MB / 336.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2205, allocations: 0 / 336.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001651/0.2222, allocations: 300 kB / 336.4 MB, free: 14.02 MB / 298.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.0003429/0.2225, allocations: 138.7 kB / 336.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.2247, allocations: 1.117 MB / 337.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.2247, allocations: 0 / 337.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008136/0.2255, allocations: 0.56 MB / 338.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.2274, allocations: 314.9 kB / 338.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005585/0.2329, allocations: 2.508 MB / 341 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.234, allocations: 0.5922 MB / 341.6 MB, free: 8.688 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006672/0.2347, allocations: 154.1 kB / 341.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.2349, allocations: 76.5 kB / 341.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2349, allocations: 3.469 kB / 341.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of Templates: time 0.0329/0.2678, allocations: 14.42 MB / 356.3 MB, free: 10.38 MB / 314.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] 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.260594027000479]