Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001408/0.001408, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001464/0.001464, allocations: 149.4 kB / 24.26 MB, free: 184 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.566/1.566, allocations: 173.4 MB / 200.8 MB, free: 9.309 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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.834e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01094/0.01097, allocations: 7.279 MB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00541/0.01638, allocations: 2.509 MB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.01743, allocations: 27.88 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.01962, allocations: 0.5401 MB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001819/0.02144, allocations: 0.5233 MB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008062/0.02225, allocations: 263.6 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002405/0.02465, allocations: 1.564 MB / 280 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008798/0.02553, allocations: 375.3 kB / 280.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.02725, allocations: 0.8729 MB / 281.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009647/0.02822, allocations: 458.6 kB / 281.7 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002823/0.0285, allocations: 140 kB / 281.9 MB, free: 8.105 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004753/0.02898, allocations: 176 kB / 282 MB, free: 7.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003209/0.0293, allocations: 298.8 kB / 282.3 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008257/0.03012, allocations: 462.9 kB / 282.8 MB, free: 7.188 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.03244, allocations: 1.764 MB / 284.5 MB, free: 5.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.03244, allocations: 0 / 284.5 MB, free: 5.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.03244, allocations: 0 / 284.5 MB, free: 5.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.01e-05/0.03248, allocations: 0 / 284.5 MB, free: 5.418 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003084/0.03557, allocations: 1.431 MB / 286 MB, free: 3.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.0356, allocations: 8.031 kB / 286 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008201/0.03642, allocations: 272 kB / 286.2 MB, free: 3.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.03781, allocations: 0.7204 MB / 287 MB, free: 2.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.277e-05/0.0379, allocations: 74 kB / 287 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.03806, allocations: 96 kB / 287.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.03999, allocations: 1.047 MB / 288.2 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.04002, allocations: 3.953 kB / 288.2 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-05/0.04012, allocations: 48 kB / 288.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.727e-05/0.04015, allocations: 24 kB / 288.2 MB, free: 1.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.04159, allocations: 0.6442 MB / 288.9 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1143/0.1559, allocations: 3.426 MB / 292.3 MB, free: 30.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.1565, allocations: 358.4 kB / 292.7 MB, free: 30.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005681/0.1571, allocations: 261.3 kB / 292.9 MB, free: 30.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.1571, allocations: 10.69 kB / 292.9 MB, free: 30.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.1572, allocations: 37.98 kB / 293 MB, free: 30.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.013e-06/0.1572, allocations: 0 / 293 MB, free: 30.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002681/0.1598, allocations: 1.34 MB / 294.3 MB, free: 30.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.1599, allocations: 82.39 kB / 294.4 MB, free: 29.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009235/0.1608, allocations: 0.7796 MB / 295.2 MB, free: 29.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1608, allocations: 35.89 kB / 295.2 MB, free: 29.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.1611, allocations: 0.5903 MB / 295.8 MB, free: 29.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.337e-05/0.1612, allocations: 168 kB / 296 MB, free: 29.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.1613, allocations: 139.2 kB / 296.1 MB, free: 28.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1614, allocations: 390.4 kB / 296.5 MB, free: 28.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.1618, allocations: 176.9 kB / 296.6 MB, free: 28.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.1622, allocations: 497.6 kB / 297.1 MB, free: 28.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007785/0.163, allocations: 0.6785 MB / 297.8 MB, free: 27.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-06/0.163, allocations: 4.312 kB / 297.8 MB, free: 27.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001286/0.1643, allocations: 0.8133 MB / 298.6 MB, free: 27.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.1643, allocations: 9.25 kB / 298.6 MB, free: 27.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.1643, allocations: 9.156 kB / 298.6 MB, free: 27.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.1646, allocations: 88.3 kB / 298.7 MB, free: 27.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005151/0.1651, allocations: 154.5 kB / 298.9 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/0.1668, allocations: 2.892 MB / 301.8 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/0.1673, allocations: 38.91 kB / 301.8 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.1674, allocations: 40.08 kB / 301.9 MB, free: 24.35 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003073/0.1677, allocations: 263.7 kB / 302.1 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.1678, allocations: 95.67 kB / 302.2 MB, free: 24.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009702/0.1688, allocations: 0.4988 MB / 302.7 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1688, allocations: 4.562 kB / 302.7 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1688, allocations: 3.125 kB / 302.7 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1688, allocations: 2.156 kB / 302.7 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.1708, allocations: 1.228 MB / 303.9 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1708, allocations: 2.219 kB / 303.9 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.1711, allocations: 79.11 kB / 304 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002202/0.1713, allocations: 74.03 kB / 304.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1714, allocations: 12.81 kB / 304.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.173, allocations: 2.866 MB / 307 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.173, allocations: 1.812 kB / 307 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.1742, allocations: 0.817 MB / 307.8 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.1745, allocations: 117.2 kB / 307.9 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.708e-05/0.1746, allocations: 14.19 kB / 307.9 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.175, allocations: 29.88 kB / 307.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.732e-05/0.1751, allocations: 41.22 kB / 308 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.1751, allocations: 18.38 kB / 308 MB, free: 19.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006402/0.1758, allocations: 0.5202 MB / 308.5 MB, free: 19.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1758, allocations: 0.9375 kB / 308.5 MB, free: 19.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009151/0.1767, allocations: 208.4 kB / 308.7 MB, free: 19.54 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0001961/0.1769, allocations: 124.5 kB / 308.9 MB, free: 19.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.1779, allocations: 0.6871 MB / 309.5 MB, free: 19.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1779, allocations: 3.594 kB / 309.5 MB, free: 19.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005201/0.1784, allocations: 438.9 kB / 310 MB, free: 18.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.1794, allocations: 212.4 kB / 310.2 MB, free: 18.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.1815, allocations: 1.681 MB / 311.9 MB, free: 17.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.1818, allocations: 426.2 kB / 312.3 MB, free: 17.31 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002895/0.1821, allocations: 99 kB / 312.4 MB, free: 17.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.1822, allocations: 60.33 kB / 312.4 MB, free: 17.16 MB / 266.7 MB Notification: Performance of SimCode: time 4.5e-07/0.1822, allocations: 0 / 312.4 MB, free: 17.16 MB / 266.7 MB Notification: Performance of Templates: time 0.01446/0.1967, allocations: 10.28 MB / 322.7 MB, free: 7.117 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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: 4.889539836090989]