Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001074/0.001074, allocations: 83.89 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.001076/0.001076, 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.9139/0.9139, allocations: 173.4 MB / 201.2 MB, free: 9.312 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.DCSE_Start,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_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,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_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.561e-05/2.718e-05, allocations: 6.25 kB / 268 MB, free: 6.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007479/0.007506, allocations: 8.046 MB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.01137, allocations: 2.591 MB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000777/0.01215, allocations: 27.88 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.01339, allocations: 0.5246 MB / 279.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.0145, allocations: 0.5155 MB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.0149, allocations: 247.7 kB / 280 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.01622, allocations: 1.536 MB / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005402/0.01676, allocations: 371.2 kB / 281.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.01779, allocations: 0.869 MB / 282.7 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.01833, allocations: 478.6 kB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.01849, allocations: 136 kB / 283.3 MB, free: 6.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003097/0.0188, allocations: 168 kB / 283.5 MB, free: 6.824 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.01895, allocations: 290.9 kB / 283.8 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.01934, allocations: 466.8 kB / 284.2 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009626/0.0203, allocations: 0.9184 MB / 285.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.02031, allocations: 0 / 285.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.02031, allocations: 0 / 285.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.02033, allocations: 0 / 285.1 MB, free: 5.16 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001618/0.02195, allocations: 1.511 MB / 286.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.02199, allocations: 12.03 kB / 286.7 MB, free: 3.598 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004486/0.02244, allocations: 272 kB / 286.9 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007845/0.02322, allocations: 0.6763 MB / 287.6 MB, free: 2.625 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.02326, allocations: 74 kB / 287.7 MB, free: 2.555 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.275e-05/0.02336, allocations: 104 kB / 287.8 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009152/0.02427, allocations: 0.82 MB / 288.6 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.0243, allocations: 7.953 kB / 288.6 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.02435, allocations: 43.98 kB / 288.7 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.02437, allocations: 24 kB / 288.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000548/0.02492, allocations: 355.7 kB / 289 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/0.1305, allocations: 3.614 MB / 292.6 MB, free: 26.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.131, allocations: 275.2 kB / 292.9 MB, free: 26.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.1313, allocations: 193.1 kB / 293.1 MB, free: 26.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.1314, allocations: 7.875 kB / 293.1 MB, free: 26.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.1314, allocations: 44.69 kB / 293.2 MB, free: 26.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 3.296e-06/0.1314, allocations: 0 / 293.2 MB, free: 26.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001745/0.1331, allocations: 1.006 MB / 294.2 MB, free: 26.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.1332, allocations: 87.31 kB / 294.2 MB, free: 26.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000878/0.134, allocations: 0.7481 MB / 295 MB, free: 25.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1341, allocations: 33.73 kB / 295 MB, free: 25.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003137/0.1344, allocations: 0.6385 MB / 295.7 MB, free: 25.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.1345, allocations: 165.6 kB / 295.8 MB, free: 25.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.1346, allocations: 137 kB / 296 MB, free: 25.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1347, allocations: 0.5676 MB / 296.5 MB, free: 24.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.1349, allocations: 83.02 kB / 296.6 MB, free: 24.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002971/0.1352, allocations: 0.5293 MB / 297.1 MB, free: 24.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005162/0.1357, allocations: 0.6332 MB / 297.8 MB, free: 23.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1357, allocations: 2.719 kB / 297.8 MB, free: 23.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0009121/0.1367, allocations: 0.6474 MB / 298.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.1367, allocations: 8.531 kB / 298.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1367, allocations: 10.61 kB / 298.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002318/0.1369, allocations: 78.66 kB / 298.5 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.1373, allocations: 146.9 kB / 298.7 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.1387, allocations: 3.863 MB / 302.5 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.1391, allocations: 35.2 kB / 302.6 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.1391, allocations: 35.23 kB / 302.6 MB, free: 20.02 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 (84): * Single equations (assignments): 82 * 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.0001889/0.1393, allocations: 211.9 kB / 302.8 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1394, allocations: 93.42 kB / 302.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005324/0.14, allocations: 376.3 kB / 303.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.14, allocations: 4.25 kB / 303.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.14, allocations: 1.438 kB / 303.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.14, allocations: 3.797 kB / 303.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.1414, allocations: 1.169 MB / 304.4 MB, free: 18.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1414, allocations: 2.312 kB / 304.4 MB, free: 18.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.1416, allocations: 68.25 kB / 304.5 MB, free: 18.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001778/0.1418, allocations: 70.11 kB / 304.6 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.1418, allocations: 13.27 kB / 304.6 MB, free: 18.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.1431, allocations: 3.846 MB / 308.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1431, allocations: 2.391 kB / 308.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007065/0.1438, allocations: 0.6542 MB / 309.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/0.144, allocations: 115.5 kB / 309.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.144, allocations: 9.109 kB / 309.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.1443, allocations: 29.7 kB / 309.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.1444, allocations: 36.42 kB / 309.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.1444, allocations: 19.55 kB / 309.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005033/0.1449, allocations: 470 kB / 309.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1449, allocations: 0 / 309.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000792/0.1457, allocations: 206.2 kB / 310 MB, free: 14.41 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 (38): * Single equations (assignments): 36 * 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.0001876/0.1459, allocations: 123 kB / 310.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007742/0.1466, allocations: 0.686 MB / 310.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1466, allocations: 6.797 kB / 310.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003597/0.147, allocations: 0.4917 MB / 311.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.1478, allocations: 206.9 kB / 311.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.1502, allocations: 1.608 MB / 313.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.1503, allocations: 175.3 kB / 313.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002891/0.1506, allocations: 97.77 kB / 313.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.1507, allocations: 54.92 kB / 313.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.1507, allocations: 0 / 313.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Templates: time 0.01436/0.1651, allocations: 10.72 MB / 324.1 MB, free: 4.234 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.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.0431834920309484]