Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001301/0.001301, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.0008699/0.0008699, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9606/0.9606, allocations: 173.3 MB / 201.1 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 179] 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 268 MB, free: 6.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.007e-05, allocations: 6.25 kB / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008672/0.008692, allocations: 11.7 MB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003907/0.0126, allocations: 3.184 MB / 282.9 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005282/0.01313, allocations: 39.88 kB / 282.9 MB, free: 7.391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.01422, allocations: 0.6244 MB / 283.5 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009726/0.01519, allocations: 0.7597 MB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.01566, allocations: 399.4 kB / 284.7 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.01708, allocations: 2.338 MB / 287 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006236/0.01771, allocations: 0.6029 MB / 287.6 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009261/0.01863, allocations: 1.313 MB / 289 MB, free: 1.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006194/0.01925, allocations: 0.7089 MB / 289.7 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.01942, allocations: 216 kB / 289.9 MB, free: 372 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.01969, allocations: 263.9 kB / 290.1 MB, free: 108 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1073/0.1269, allocations: 439.8 kB / 290.6 MB, free: 18.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.1281, allocations: 0.7 MB / 291.3 MB, free: 18.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00181/0.1299, allocations: 1.399 MB / 292.7 MB, free: 18.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1299, allocations: 1.672 kB / 292.7 MB, free: 18.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1299, allocations: 1.906 kB / 292.7 MB, free: 18.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.964e-05/0.13, allocations: 0.625 kB / 292.7 MB, free: 18.73 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.002607/0.1326, allocations: 2.148 MB / 294.8 MB, free: 17.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1326, allocations: 11.06 kB / 294.8 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006217/0.1333, allocations: 390.3 kB / 295.2 MB, free: 17.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.1344, allocations: 0.9751 MB / 296.2 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.1345, allocations: 116.1 kB / 296.3 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.1346, allocations: 165.9 kB / 296.5 MB, free: 17.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.1361, allocations: 1.276 MB / 297.7 MB, free: 16.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.1362, allocations: 13.31 kB / 297.7 MB, free: 16.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.113e-05/0.1363, allocations: 68.81 kB / 297.8 MB, free: 16.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.1363, allocations: 37.66 kB / 297.8 MB, free: 16.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.1374, allocations: 0.5455 MB / 298.4 MB, free: 16.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005216/0.1427, allocations: 6.436 MB / 304.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.1431, allocations: 263 kB / 305.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.1433, allocations: 130.5 kB / 305.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1434, allocations: 12.03 kB / 305.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.1437, allocations: 273.7 kB / 305.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.1437, allocations: 0 / 305.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001872/0.1455, allocations: 1.275 MB / 306.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.1456, allocations: 161.6 kB / 306.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.1466, allocations: 1.074 MB / 308 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1466, allocations: 37.27 kB / 308 MB, free: 11.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.147, allocations: 0.9603 MB / 309 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.1471, allocations: 213.8 kB / 309.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.1473, allocations: 226.7 kB / 309.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.1474, allocations: 0.5148 MB / 309.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.1476, allocations: 157 kB / 310.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/0.1481, allocations: 1.068 MB / 311.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007456/0.1488, allocations: 1.164 MB / 312.3 MB, free: 7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.1488, allocations: 3.406 kB / 312.3 MB, free: 7 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001209/0.15, allocations: 1.059 MB / 313.4 MB, free: 6.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.15, allocations: 38.17 kB / 313.4 MB, free: 6.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.1501, allocations: 22 kB / 313.4 MB, free: 6.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.1503, allocations: 65.42 kB / 313.5 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005535/0.1508, allocations: 268.9 kB / 313.8 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009861/0.1518, allocations: 3.484 MB / 317.3 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005512/0.1523, allocations: 70.02 kB / 317.3 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/0.1524, allocations: 60.12 kB / 317.4 MB, free: 3.035 MB / 266.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.0002384/0.1526, allocations: 246.5 kB / 317.6 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1528, allocations: 141.8 kB / 317.8 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000532/0.1533, allocations: 429 kB / 318.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1533, allocations: 7.781 kB / 318.2 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1533, allocations: 0 / 318.2 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1533, allocations: 6.656 kB / 318.2 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.1549, allocations: 1.533 MB / 319.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1549, allocations: 6.203 kB / 319.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.1552, allocations: 102 kB / 319.8 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.1553, allocations: 51.53 kB / 319.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.1553, allocations: 14.84 kB / 319.9 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.1565, allocations: 3.471 MB / 323.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1565, allocations: 8.531 kB / 323.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008117/0.1573, allocations: 0.8134 MB / 324.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002603/0.1576, allocations: 160.1 kB / 324.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.739e-05/0.1577, allocations: 21.92 kB / 324.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.158, allocations: 29.33 kB / 324.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.1581, allocations: 52.48 kB / 324.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.1581, allocations: 21.25 kB / 324.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000672/0.1588, allocations: 0.6288 MB / 325.1 MB, free: 12.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1588, allocations: 4 kB / 325.1 MB, free: 12.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008981/0.1597, allocations: 297.1 kB / 325.4 MB, free: 12.79 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.0002008/0.1599, allocations: 134 kB / 325.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.1609, allocations: 0.9138 MB / 326.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.1609, allocations: 4 kB / 326.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.1613, allocations: 0.4897 MB / 326.9 MB, free: 11.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.1625, allocations: 307.1 kB / 327.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.1659, allocations: 2.393 MB / 329.6 MB, free: 8.477 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.1661, allocations: 239.9 kB / 329.9 MB, free: 8.219 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003927/0.1665, allocations: 154.1 kB / 330 MB, free: 8.066 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.1666, allocations: 76.5 kB / 330.1 MB, free: 7.992 MB / 282.7 MB Notification: Performance of SimCode: time 6.12e-07/0.1666, allocations: 4 kB / 330.1 MB, free: 7.988 MB / 282.7 MB Notification: Performance of Templates: time 0.0221/0.1887, allocations: 14.38 MB / 344.5 MB, free: 9.93 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.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.3149659261107445]