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.001265/0.001265, allocations: 80.41 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.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.0009239/0.0009239, allocations: 167.6 kB / 25.61 MB, free: 8.902 MB / 18.57 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.9305/0.9305, allocations: 177.1 MB / 206 MB, free: 4.492 MB / 186.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.403e-06/1.403e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255e-05/1.396e-05, allocations: 2.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006407/0.00642, allocations: 7.861 MB / 282.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.008942, allocations: 2.604 MB / 284.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003278/0.00927, allocations: 27.88 kB / 284.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008335/0.0101, allocations: 0.5246 MB / 285.2 MB, free: 9.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005402/0.01064, allocations: 0.5155 MB / 285.7 MB, free: 8.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.0109, allocations: 247.7 kB / 286 MB, free: 8.598 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009259/0.01183, allocations: 1.54 MB / 287.5 MB, free: 7.051 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/0.01225, allocations: 375.2 kB / 287.9 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006654/0.01291, allocations: 0.869 MB / 288.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004065/0.01332, allocations: 474.6 kB / 289.2 MB, free: 5.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.01343, allocations: 136 kB / 289.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.01361, allocations: 172 kB / 289.5 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.01375, allocations: 286.9 kB / 289.8 MB, free: 4.738 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002907/0.01404, allocations: 462.9 kB / 290.2 MB, free: 4.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007394/0.01478, allocations: 0.9262 MB / 291.2 MB, free: 3.355 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.01479, allocations: 4 kB / 291.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.01479, allocations: 0 / 291.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.01479, allocations: 0 / 291.2 MB, free: 3.352 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.00144/0.01624, allocations: 1.519 MB / 292.7 MB, free: 1.793 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.01627, allocations: 12.03 kB / 292.7 MB, free: 1.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004263/0.0167, allocations: 272 kB / 293 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006676/0.01737, allocations: 0.6568 MB / 293.6 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/0.01741, allocations: 70 kB / 293.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.96e-05/0.01751, allocations: 107.9 kB / 293.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007107/0.01822, allocations: 0.7691 MB / 294.6 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.01825, allocations: 7.938 kB / 294.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.0183, allocations: 36 kB / 294.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.01831, allocations: 24 kB / 294.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.01864, allocations: 281.7 kB / 294.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002834/0.02148, allocations: 3.655 MB / 298.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.02177, allocations: 254.1 kB / 298.8 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.022, allocations: 180.1 kB / 299 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.02202, allocations: 4.328 kB / 299 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.02205, allocations: 41.72 kB / 299 MB, free: 11.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.02205, allocations: 0 / 299 MB, free: 11.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.001059/0.02311, allocations: 0.8188 MB / 299.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.02314, allocations: 81.11 kB / 299.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.02365, allocations: 0.7292 MB / 300.7 MB, free: 9.414 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.02368, allocations: 33.7 kB / 300.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.02398, allocations: 0.6425 MB / 301.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.042e-05/0.02406, allocations: 162.6 kB / 301.5 MB, free: 8.562 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.02419, allocations: 136.2 kB / 301.6 MB, free: 8.422 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.02437, allocations: 0.578 MB / 302.2 MB, free: 7.832 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.349e-05/0.02445, allocations: 69.92 kB / 302.3 MB, free: 7.762 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.02473, allocations: 0.5021 MB / 302.8 MB, free: 7.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.02515, allocations: 0.6053 MB / 303.4 MB, free: 6.281 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.02515, allocations: 4 kB / 303.4 MB, free: 6.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0005845/0.02574, allocations: 0.5966 MB / 304 MB, free: 5.668 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.02575, allocations: 8 kB / 304 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.02576, allocations: 12.5 kB / 304 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.02593, allocations: 75.33 kB / 304.1 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.02619, allocations: 151.7 kB / 304.2 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.02781, allocations: 3.804 MB / 308 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.02805, allocations: 36.06 kB / 308.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.02808, allocations: 28 kB / 308.1 MB, free: 1.324 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.0001767/0.02826, allocations: 212.2 kB / 308.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.558e-05/0.02834, allocations: 91.48 kB / 308.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.0287, allocations: 356.2 kB / 308.7 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.02871, allocations: 4 kB / 308.7 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.02871, allocations: 0 / 308.7 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.341e-06/0.02872, allocations: 3.984 kB / 308.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009577/0.02967, allocations: 1.015 MB / 309.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.02968, allocations: 4 kB / 309.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.02983, allocations: 75.83 kB / 309.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.02995, allocations: 55.34 kB / 309.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.02997, allocations: 20.05 kB / 309.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.03148, allocations: 3.792 MB / 313.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.03148, allocations: 0 / 313.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005053/0.03199, allocations: 0.617 MB / 314.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.03213, allocations: 115.4 kB / 314.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.03218, allocations: 12 kB / 314.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.03236, allocations: 28.02 kB / 314.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.03241, allocations: 39.91 kB / 314.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.03243, allocations: 12 kB / 314.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002727/0.0327, allocations: 434.8 kB / 314.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0327, allocations: 0 / 314.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004943/0.03319, allocations: 200 kB / 315.1 MB, free: 9.887 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 (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.0001659/0.03336, allocations: 131.2 kB / 315.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.03388, allocations: 0.653 MB / 315.9 MB, free: 9.059 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.03388, allocations: 3.938 kB / 315.9 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.03417, allocations: 484.9 kB / 316.4 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.03473, allocations: 218.6 kB / 316.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.03662, allocations: 1.611 MB / 318.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.03672, allocations: 171.3 kB / 318.4 MB, free: 6.469 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.03693, allocations: 94.69 kB / 318.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.03723, allocations: 270 kB / 318.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.03724, allocations: 0 / 318.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of Templates: time 0.01396/0.05119, allocations: 11.13 MB / 329.9 MB, free: 11.21 MB / 314.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 -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: 3.0619676229543984]