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.001053/0.001053, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001359/0.001359, allocations: 143.7 kB / 24.98 MB, free: 8.812 MB / 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.9942/0.9942, allocations: 173.4 MB / 201.5 MB, free: 9.355 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_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.272e-06/1.272e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.16e-05, allocations: 2.312 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006768/0.00679, allocations: 8.155 MB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003845/0.01063, allocations: 2.634 MB / 278.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005401/0.01117, allocations: 31.88 kB / 278.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.01229, allocations: 0.5323 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007699/0.01306, allocations: 0.5272 MB / 280 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.01343, allocations: 259.6 kB / 280.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.01451, allocations: 1.567 MB / 281.8 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004343/0.01494, allocations: 375.3 kB / 282.2 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007159/0.01566, allocations: 0.8768 MB / 283 MB, free: 7.711 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.01611, allocations: 490.5 kB / 283.5 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.01622, allocations: 140 kB / 283.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.01644, allocations: 179.9 kB / 283.8 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.0166, allocations: 298.8 kB / 284.1 MB, free: 6.625 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003135/0.01692, allocations: 470.9 kB / 284.6 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008838/0.0178, allocations: 0.9534 MB / 285.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.0178, allocations: 0 / 285.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01781, allocations: 0 / 285.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.01782, allocations: 4 kB / 285.5 MB, free: 5.203 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.001595/0.01941, allocations: 1.538 MB / 287.1 MB, free: 3.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.01945, allocations: 16.03 kB / 287.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004474/0.0199, allocations: 272 kB / 287.3 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007869/0.02068, allocations: 0.7043 MB / 288.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.02073, allocations: 74 kB / 288.1 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.651e-05/0.02082, allocations: 99.98 kB / 288.2 MB, free: 2.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009084/0.02173, allocations: 0.8278 MB / 289.1 MB, free: 1.551 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.02176, allocations: 11.95 kB / 289.1 MB, free: 1.539 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.419e-05/0.02181, allocations: 36 kB / 289.1 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.02183, allocations: 24 kB / 289.1 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005605/0.0224, allocations: 359.7 kB / 289.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1217/0.1441, allocations: 3.638 MB / 293.1 MB, free: 20.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004777/0.1446, allocations: 286.2 kB / 293.4 MB, free: 20.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.145, allocations: 191.7 kB / 293.6 MB, free: 20.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.145, allocations: 10.58 kB / 293.6 MB, free: 20.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.1451, allocations: 43.84 kB / 293.6 MB, free: 20.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.855e-06/0.1451, allocations: 0 / 293.6 MB, free: 20.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001903/0.147, allocations: 1.058 MB / 294.7 MB, free: 20.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.147, allocations: 82.33 kB / 294.8 MB, free: 20.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007817/0.1478, allocations: 0.7696 MB / 295.5 MB, free: 20.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1478, allocations: 35.42 kB / 295.6 MB, free: 20.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.1481, allocations: 0.6477 MB / 296.2 MB, free: 19.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/0.1482, allocations: 170 kB / 296.4 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1483, allocations: 136 kB / 296.5 MB, free: 19.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1485, allocations: 0.5697 MB / 297.1 MB, free: 19.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.1487, allocations: 89.36 kB / 297.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003215/0.149, allocations: 0.52 MB / 297.7 MB, free: 18.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004854/0.1495, allocations: 0.6393 MB / 298.3 MB, free: 18.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1495, allocations: 4.75 kB / 298.3 MB, free: 18.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008453/0.1503, allocations: 0.6478 MB / 299 MB, free: 18.1 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1504, allocations: 9.531 kB / 299 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1504, allocations: 9.906 kB / 299 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002254/0.1506, allocations: 80.89 kB / 299.1 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1509, allocations: 151.8 kB / 299.2 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.1523, allocations: 3.873 MB / 303.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.1525, allocations: 33.08 kB / 303.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.1526, allocations: 35.02 kB / 303.2 MB, free: 14.39 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.0001831/0.1528, allocations: 202.4 kB / 303.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.1529, allocations: 104.9 kB / 303.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005034/0.1534, allocations: 381.5 kB / 303.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.1534, allocations: 4.438 kB / 303.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1534, allocations: 2.719 kB / 303.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1534, allocations: 2.578 kB / 303.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.1547, allocations: 1.18 MB / 305 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1547, allocations: 2.188 kB / 305 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.1549, allocations: 72.38 kB / 305.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000168/0.1551, allocations: 73.39 kB / 305.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.1551, allocations: 12.19 kB / 305.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.1565, allocations: 3.848 MB / 309 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1565, allocations: 3.469 kB / 309 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006703/0.1571, allocations: 0.6741 MB / 309.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.1573, allocations: 121.5 kB / 309.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.084e-05/0.1574, allocations: 12.95 kB / 309.8 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.1576, allocations: 22.27 kB / 309.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.123e-05/0.1576, allocations: 42.53 kB / 309.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.1577, allocations: 11.23 kB / 309.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004349/0.1581, allocations: 494.9 kB / 310.4 MB, free: 9.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1581, allocations: 0 / 310.4 MB, free: 9.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006095/0.1587, allocations: 210.3 kB / 310.6 MB, free: 9.215 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.0002195/0.1589, allocations: 122.2 kB / 310.7 MB, free: 9.121 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007068/0.1596, allocations: 0.6827 MB / 311.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1596, allocations: 1.25 kB / 311.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.16, allocations: 0.4923 MB / 311.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006085/0.1606, allocations: 207.5 kB / 312.1 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.1626, allocations: 1.632 MB / 313.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.1627, allocations: 179.8 kB / 313.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002366/0.163, allocations: 100.7 kB / 314 MB, free: 7.176 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.289e-05/0.163, allocations: 58.86 kB / 314.1 MB, free: 7.168 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.163, allocations: 0 / 314.1 MB, free: 7.168 MB / 266.7 MB Notification: Performance of Templates: time 0.01301/0.1761, allocations: 10.32 MB / 324.4 MB, free: 0.5898 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] 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","",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.128933948930353]