Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007072/0.0007072, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009129/0.00162, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001252/0.002304, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9684/0.9684, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08562/1.054, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.167e-05, allocations: 2.312 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007238/0.00726, allocations: 7.965 MB / 252.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.01081, allocations: 2.707 MB / 255.2 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004244/0.01123, allocations: 27.88 kB / 255.2 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.01232, allocations: 0.5401 MB / 255.8 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007623/0.01308, allocations: 0.5116 MB / 256.3 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.01343, allocations: 255.7 kB / 256.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.01459, allocations: 1.536 MB / 258.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004642/0.01505, allocations: 387.2 kB / 258.5 MB, free: 308 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.01623, allocations: 0.9889 MB / 259.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004774/0.01671, allocations: 478.6 kB / 259.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.01684, allocations: 136 kB / 260 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003119/0.01716, allocations: 168 kB / 260.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.01731, allocations: 215.2 kB / 260.4 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003599/0.01767, allocations: 391.2 kB / 260.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008905/0.01856, allocations: 0.8834 MB / 261.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.472e-05/0.01857, allocations: 0 / 261.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.01857, allocations: 0 / 261.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.01859, allocations: 4 kB / 261.7 MB, free: 13.06 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.001726/0.02032, allocations: 1.609 MB / 263.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.02035, allocations: 12.03 kB / 263.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005025/0.02085, allocations: 309.8 kB / 263.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007359/0.02159, allocations: 0.5294 MB / 264.1 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.02164, allocations: 74 kB / 264.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.02174, allocations: 103.9 kB / 264.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007737/0.02251, allocations: 0.7654 MB / 265.1 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.02254, allocations: 11.88 kB / 265.1 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.02259, allocations: 44 kB / 265.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.02261, allocations: 24 kB / 265.2 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.02298, allocations: 237.8 kB / 265.4 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.02617, allocations: 2.958 MB / 268.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000303/0.02647, allocations: 235 kB / 268.6 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.02673, allocations: 173.3 kB / 268.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.02675, allocations: 8.328 kB / 268.8 MB, free: 5.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.02678, allocations: 38.89 kB / 268.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.773e-06/0.02678, allocations: 0 / 268.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001136/0.02792, allocations: 0.7468 MB / 269.5 MB, free: 4.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.64e-05/0.02794, allocations: 55.41 kB / 269.6 MB, free: 4.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005446/0.02849, allocations: 0.6574 MB / 270.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.02851, allocations: 33.7 kB / 270.3 MB, free: 4.055 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.02875, allocations: 0.5043 MB / 270.8 MB, free: 3.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.265e-05/0.02884, allocations: 162.6 kB / 270.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.02897, allocations: 130.5 kB / 271.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.02909, allocations: 394.5 kB / 271.5 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.578e-05/0.02918, allocations: 69.89 kB / 271.5 MB, free: 2.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.02942, allocations: 389.7 kB / 271.9 MB, free: 2.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000391/0.02981, allocations: 492.2 kB / 272.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.02982, allocations: 4 kB / 272.4 MB, free: 1.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0007798/0.0306, allocations: 486.7 kB / 272.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.03061, allocations: 12.09 kB / 272.9 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.03062, allocations: 12 kB / 272.9 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.03079, allocations: 73.61 kB / 273 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000361/0.03115, allocations: 175.7 kB / 273.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.03251, allocations: 2.592 MB / 275.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.0328, allocations: 31.95 kB / 275.8 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.03284, allocations: 32 kB / 275.8 MB, free: 14.05 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 (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.0001534/0.03299, allocations: 165.6 kB / 275.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.969e-05/0.03307, allocations: 63.94 kB / 276 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003538/0.03342, allocations: 294.9 kB / 276.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.03343, allocations: 4 kB / 276.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.03343, allocations: 0 / 276.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.03344, allocations: 3.984 kB / 276.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009177/0.03435, allocations: 0.7636 MB / 277.1 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.03436, allocations: 4 kB / 277.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.03456, allocations: 75.91 kB / 277.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.0347, allocations: 75.47 kB / 277.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.03484, allocations: 57.91 kB / 277.3 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.03485, allocations: 12 kB / 277.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.03611, allocations: 2.589 MB / 279.9 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.03612, allocations: 11.88 kB / 279.9 MB, free: 9.688 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006809/0.0368, allocations: 474.8 kB / 280.4 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.495e-05/0.03686, allocations: 12 kB / 280.4 MB, free: 9.172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.03709, allocations: 23.98 kB / 280.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.03714, allocations: 39.81 kB / 280.4 MB, free: 9.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.03716, allocations: 12 kB / 280.4 MB, free: 9.098 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002896/0.03744, allocations: 315.3 kB / 280.7 MB, free: 8.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03745, allocations: 0 / 280.7 MB, free: 8.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000584/0.03803, allocations: 204 kB / 280.9 MB, free: 8.594 MB / 282.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.0001468/0.03818, allocations: 108.2 kB / 281.1 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005388/0.03871, allocations: 0.5349 MB / 281.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.653e-05/0.03874, allocations: 20.47 kB / 281.6 MB, free: 7.898 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002935/0.03903, allocations: 362.8 kB / 282 MB, free: 7.516 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006625/0.0397, allocations: 273.3 kB / 282.2 MB, free: 7.254 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/0.05142, allocations: 1.738 MB / 284 MB, free: 5.449 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/0.05155, allocations: 179.2 kB / 284.1 MB, free: 5.254 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002608/0.05182, allocations: 94.69 kB / 284.2 MB, free: 5.156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.05216, allocations: 233.2 kB / 284.5 MB, free: 4.93 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.05216, allocations: 0 / 284.5 MB, free: 4.93 MB / 282.7 MB Notification: Performance of Templates: time 0.1074/0.1596, allocations: 11.41 MB / 295.9 MB, free: 32.93 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.841685769148171]