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.000723/0.000723, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001057/0.00178, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0007243/0.0007243, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001357/0.002081, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8088/0.8088, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1277/0.9365, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.292e-06/1.292e-06, allocations: 0 / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.152e-05/1.281e-05, allocations: 2.312 kB / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007834/0.007847, allocations: 8.073 MB / 247.8 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003674/0.01152, allocations: 2.747 MB / 250.6 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004702/0.01199, allocations: 28.5 kB / 250.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009269/0.01292, allocations: 0.5389 MB / 251.1 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007239/0.01364, allocations: 0.5339 MB / 251.7 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.01397, allocations: 259.6 kB / 251.9 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.01508, allocations: 1.564 MB / 253.5 MB, free: 8.594 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004161/0.0155, allocations: 399.1 kB / 253.9 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009436/0.01644, allocations: 1.033 MB / 254.9 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/0.0169, allocations: 486.5 kB / 255.4 MB, free: 6.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.01703, allocations: 136 kB / 255.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.01727, allocations: 180 kB / 255.7 MB, free: 6.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.01738, allocations: 215.2 kB / 255.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.01767, allocations: 399.2 kB / 256.3 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007045/0.01837, allocations: 0.8988 MB / 257.2 MB, free: 4.836 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.01838, allocations: 0 / 257.2 MB, free: 4.836 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.01838, allocations: 0 / 257.2 MB, free: 4.836 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.0184, allocations: 0 / 257.2 MB, free: 4.836 MB / 250.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.001413/0.01981, allocations: 1.647 MB / 258.8 MB, free: 3.156 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.01984, allocations: 12.03 kB / 258.9 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003966/0.02024, allocations: 309.8 kB / 259.2 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000608/0.02085, allocations: 0.5379 MB / 259.7 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.02088, allocations: 70 kB / 259.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.213e-05/0.02096, allocations: 104 kB / 259.9 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006174/0.02158, allocations: 0.7731 MB / 260.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.02161, allocations: 3.984 kB / 260.6 MB, free: 1.254 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.02165, allocations: 40 kB / 260.7 MB, free: 1.215 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.02166, allocations: 32 kB / 260.7 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.02194, allocations: 253.7 kB / 261 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.02434, allocations: 2.965 MB / 263.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.02459, allocations: 226.8 kB / 264.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.02479, allocations: 173.4 kB / 264.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.02481, allocations: 7.781 kB / 264.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.02483, allocations: 38.56 kB / 264.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.453e-06/0.02483, allocations: 0 / 264.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00107/0.0259, allocations: 0.8021 MB / 265.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.02593, allocations: 59.41 kB / 265.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.02635, allocations: 0.6691 MB / 265.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.02638, allocations: 37.7 kB / 265.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.02656, allocations: 0.5011 MB / 266.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.02663, allocations: 170.5 kB / 266.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.02673, allocations: 130.5 kB / 266.7 MB, free: 10.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.02683, allocations: 406.5 kB / 267.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.591e-05/0.0269, allocations: 57.97 kB / 267.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.02709, allocations: 389.2 kB / 267.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003298/0.02742, allocations: 0.5234 MB / 268.1 MB, free: 9.234 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.02742, allocations: 8 kB / 268.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004978/0.02792, allocations: 498.6 kB / 268.6 MB, free: 8.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.02793, allocations: 11.98 kB / 268.6 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.02794, allocations: 8 kB / 268.6 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.02809, allocations: 69.94 kB / 268.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.02837, allocations: 171.7 kB / 268.8 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.02946, allocations: 2.604 MB / 271.4 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.02968, allocations: 35.94 kB / 271.5 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.0297, allocations: 24 kB / 271.5 MB, free: 5.629 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.0001375/0.02984, allocations: 173.4 kB / 271.7 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.0299, allocations: 63.94 kB / 271.7 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.03019, allocations: 290.5 kB / 272 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.03019, allocations: 8 kB / 272 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.03019, allocations: 0 / 272 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.0302, allocations: 8.016 kB / 272 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007523/0.03095, allocations: 0.7751 MB / 272.8 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.03095, allocations: 0 / 272.8 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.03112, allocations: 80.11 kB / 272.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.03123, allocations: 83.42 kB / 273 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.03134, allocations: 57.62 kB / 273 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.03136, allocations: 11.98 kB / 273 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.03255, allocations: 2.584 MB / 275.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.03256, allocations: 8.094 kB / 275.6 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.03293, allocations: 491 kB / 276.1 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/0.03298, allocations: 12 kB / 276.1 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.03315, allocations: 23.98 kB / 276.1 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.0332, allocations: 47.81 kB / 276.2 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.03321, allocations: 8 kB / 276.2 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002343/0.03345, allocations: 323.3 kB / 276.5 MB, free: 324 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03345, allocations: 0 / 276.5 MB, free: 324 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004183/0.03387, allocations: 208 kB / 276.7 MB, free: 116 kB / 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.0001465/0.03401, allocations: 104.4 kB / 276.8 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004784/0.03449, allocations: 0.5456 MB / 277.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.172e-05/0.03451, allocations: 16.3 kB / 277.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.03479, allocations: 393.9 kB / 277.7 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.0358, allocations: 2.065 MB / 279.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009075/0.04488, allocations: 1.753 MB / 281.6 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/0.045, allocations: 183.5 kB / 281.7 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.04522, allocations: 98.77 kB / 281.8 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.04552, allocations: 237.2 kB / 282.1 MB, free: 10.18 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.04552, allocations: 0 / 282.1 MB, free: 10.18 MB / 282.7 MB Notification: Performance of Templates: time 0.01408/0.0596, allocations: 11.33 MB / 293.4 MB, free: 15.1 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5924028092995286]