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.0009319/0.0009319, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001549/0.001549, allocations: 154.9 kB / 25.6 MB, free: 8.922 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.9158/0.9158, allocations: 173.4 MB / 202.3 MB, free: 8.309 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 2.645e-06/2.645e-06, allocations: 0 / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.408e-05/3.673e-05, allocations: 5.266 kB / 269.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01004/0.01008, allocations: 7.978 MB / 277.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.01496, allocations: 2.633 MB / 279.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006316/0.01559, allocations: 27.88 kB / 279.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.01662, allocations: 0.5323 MB / 280.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007541/0.01738, allocations: 0.5232 MB / 280.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.01771, allocations: 259.6 kB / 281.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.01883, allocations: 1.571 MB / 282.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.01926, allocations: 371.3 kB / 283.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007347/0.01999, allocations: 0.8885 MB / 284 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004359/0.02043, allocations: 478.6 kB / 284.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.02054, allocations: 136 kB / 284.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.02075, allocations: 179.9 kB / 284.8 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.02089, allocations: 290.8 kB / 285 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.02121, allocations: 474.8 kB / 285.5 MB, free: 9.379 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.02201, allocations: 0.9456 MB / 286.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.02202, allocations: 0 / 286.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.02202, allocations: 0 / 286.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.02203, allocations: 0 / 286.5 MB, free: 8.43 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.001457/0.02349, allocations: 1.554 MB / 288 MB, free: 6.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.02352, allocations: 8.031 kB / 288 MB, free: 6.828 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004313/0.02395, allocations: 272 kB / 288.3 MB, free: 6.562 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006909/0.02464, allocations: 0.6693 MB / 288.9 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.136e-05/0.02468, allocations: 74 kB / 289 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.272e-05/0.02477, allocations: 103.9 kB / 289.1 MB, free: 5.688 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007007/0.02547, allocations: 0.7691 MB / 289.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.0255, allocations: 7.922 kB / 289.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.02555, allocations: 44 kB / 289.9 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.02557, allocations: 31.98 kB / 290 MB, free: 4.777 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.02591, allocations: 281.7 kB / 290.2 MB, free: 4.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.0288, allocations: 3.682 MB / 293.9 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.0291, allocations: 247.1 kB / 294.2 MB, free: 356 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004009/0.0295, allocations: 189.4 kB / 294.4 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.02954, allocations: 8 kB / 294.4 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.02957, allocations: 45.33 kB / 294.4 MB, free: 100 kB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.355e-06/0.02958, allocations: 0 / 294.4 MB, free: 100 kB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001405/0.03098, allocations: 0.847 MB / 295.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.03102, allocations: 85.11 kB / 295.3 MB, free: 15.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.03155, allocations: 0.7447 MB / 296.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.03157, allocations: 37.7 kB / 296.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.03187, allocations: 0.6502 MB / 296.8 MB, free: 13.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.842e-05/0.03195, allocations: 182.5 kB / 296.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.03208, allocations: 136.2 kB / 297.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.03226, allocations: 0.578 MB / 297.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.029e-05/0.03235, allocations: 65.94 kB / 297.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.03286, allocations: 0.5094 MB / 298.2 MB, free: 11.96 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.03326, allocations: 0.6033 MB / 298.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.03326, allocations: 7.984 kB / 298.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006107/0.03387, allocations: 0.5974 MB / 299.4 MB, free: 10.56 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.03389, allocations: 8.094 kB / 299.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.0339, allocations: 16 kB / 299.5 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.03406, allocations: 75.27 kB / 299.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.03434, allocations: 147.8 kB / 299.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.0359, allocations: 3.82 MB / 303.5 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.03616, allocations: 32.03 kB / 303.5 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.03619, allocations: 31.94 kB / 303.6 MB, free: 6.199 MB / 282.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.0001695/0.03636, allocations: 208.3 kB / 303.8 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-05/0.03645, allocations: 103.4 kB / 303.9 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003635/0.03681, allocations: 348.2 kB / 304.2 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.03682, allocations: 4 kB / 304.2 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.03682, allocations: 0 / 304.2 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.03682, allocations: 0 / 304.2 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.03803, allocations: 1.033 MB / 305.2 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.03803, allocations: 0 / 305.2 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.03819, allocations: 67.91 kB / 305.3 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.03831, allocations: 67.55 kB / 305.4 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.03833, allocations: 12 kB / 305.4 MB, free: 4.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.03972, allocations: 3.796 MB / 309.2 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.03972, allocations: 4 kB / 309.2 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005131/0.04024, allocations: 0.6289 MB / 309.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.04038, allocations: 123.5 kB / 309.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.04043, allocations: 11.98 kB / 310 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.04063, allocations: 31.97 kB / 310 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.04068, allocations: 35.88 kB / 310 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.0407, allocations: 12 kB / 310 MB, free: 15.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002809/0.04098, allocations: 442.8 kB / 310.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04098, allocations: 0 / 310.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005118/0.04149, allocations: 215.9 kB / 310.7 MB, free: 14.69 MB / 298.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.000151/0.04164, allocations: 119.2 kB / 310.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000533/0.04217, allocations: 0.6551 MB / 311.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.04218, allocations: 4 kB / 311.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.04247, allocations: 499.7 kB / 311.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.04304, allocations: 203.2 kB / 312.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.04521, allocations: 1.642 MB / 313.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.04533, allocations: 175.4 kB / 313.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002392/0.04557, allocations: 98.69 kB / 314 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.04589, allocations: 270.1 kB / 314.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.04589, allocations: 0 / 314.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of Templates: time 0.01535/0.06124, allocations: 11.35 MB / 325.7 MB, free: 15.76 MB / 314.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.0374219459481537]