Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.0008142/0.0008142, allocations: 84.39 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.0009407/0.0009407, allocations: 166.9 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.915/0.915, allocations: 158.6 MB / 187.5 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.662e-05, allocations: 2.312 kB / 251.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006826/0.006853, allocations: 6.936 MB / 258.4 MB, free: 268 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004419/0.01127, allocations: 2.315 MB / 260.7 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008716/0.01214, allocations: 19.94 kB / 260.7 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.01335, allocations: 492.8 kB / 261.2 MB, free: 13.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009682/0.01432, allocations: 432.6 kB / 261.6 MB, free: 13 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004109/0.01473, allocations: 207.7 kB / 261.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001378/0.0161, allocations: 1.248 MB / 263.1 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005/0.0166, allocations: 316.5 kB / 263.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009967/0.0176, allocations: 0.7053 MB / 264.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006182/0.01822, allocations: 394.8 kB / 264.5 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001997/0.01842, allocations: 116 kB / 264.6 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003692/0.01879, allocations: 144 kB / 264.8 MB, free: 9.867 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.01892, allocations: 235.1 kB / 265 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003365/0.01926, allocations: 375.1 kB / 265.3 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008536/0.02011, allocations: 0.7628 MB / 266.1 MB, free: 8.504 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.02012, allocations: 0 / 266.1 MB, free: 8.504 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.02012, allocations: 0 / 266.1 MB, free: 8.504 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.02014, allocations: 0 / 266.1 MB, free: 8.504 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001455/0.02159, allocations: 1.313 MB / 267.4 MB, free: 7.152 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.02164, allocations: 11.98 kB / 267.4 MB, free: 7.141 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006606/0.0223, allocations: 220.1 kB / 267.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.02292, allocations: 0.5714 MB / 268.2 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/0.02296, allocations: 62.38 kB / 268.3 MB, free: 6.266 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.609e-05/0.02303, allocations: 84.27 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005869/0.02362, allocations: 0.6139 MB / 269 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.02364, allocations: 8.125 kB / 269 MB, free: 5.508 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.02368, allocations: 35.94 kB / 269 MB, free: 5.473 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.02369, allocations: 20 kB / 269 MB, free: 5.453 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.02397, allocations: 225.7 kB / 269.3 MB, free: 5.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.0266, allocations: 3.266 MB / 272.5 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.02682, allocations: 147 kB / 272.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.96e-05/0.02688, allocations: 47.66 kB / 272.7 MB, free: 1.562 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.02691, allocations: 8.438 kB / 272.7 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.02693, allocations: 41.39 kB / 272.8 MB, free: 1.504 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.02693, allocations: 0 / 272.8 MB, free: 1.504 MB / 250.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008389/0.02777, allocations: 0.581 MB / 273.3 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.02782, allocations: 85.05 kB / 273.4 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.02829, allocations: 0.6668 MB / 274.1 MB, free: 104 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.0283, allocations: 29.7 kB / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.02885, allocations: 0.5683 MB / 274.7 MB, free: 15.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.934e-05/0.02891, allocations: 111.1 kB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.846e-05/0.029, allocations: 123.9 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.02916, allocations: 0.5663 MB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.847e-05/0.02922, allocations: 49.27 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.02946, allocations: 495.1 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.02981, allocations: 0.5526 MB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.02981, allocations: 4 kB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0004572/0.03027, allocations: 0.4886 MB / 277.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.03029, allocations: 8 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.0303, allocations: 15.94 kB / 277.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.946e-05/0.0304, allocations: 32.36 kB / 277.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.03063, allocations: 139.8 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007745/0.0314, allocations: 1.717 MB / 279 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.03164, allocations: 31.94 kB / 279 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.03166, allocations: 24 kB / 279 MB, free: 10.63 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.03185, allocations: 208.3 kB / 279.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.72e-05/0.03193, allocations: 79.58 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002691/0.0322, allocations: 219.7 kB / 279.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.0322, allocations: 4 kB / 279.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.0322, allocations: 0 / 279.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.03221, allocations: 0 / 279.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007989/0.03301, allocations: 0.788 MB / 280.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-06/0.03301, allocations: 0 / 280.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.03314, allocations: 55.91 kB / 280.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-05/0.03321, allocations: 19.67 kB / 280.4 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.03322, allocations: 11.94 kB / 280.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009065/0.03413, allocations: 1.713 MB / 282.1 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.03413, allocations: 3.938 kB / 282.1 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.03448, allocations: 493.9 kB / 282.6 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.0346, allocations: 95.47 kB / 282.7 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.03463, allocations: 8 kB / 282.7 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.03478, allocations: 12 kB / 282.7 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/0.03482, allocations: 31.95 kB / 282.7 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.03484, allocations: 12 kB / 282.8 MB, free: 6.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002528/0.03509, allocations: 398.8 kB / 283.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.03509, allocations: 0 / 283.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004712/0.03556, allocations: 156 kB / 283.3 MB, free: 6.09 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000182/0.03574, allocations: 119.1 kB / 283.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.03619, allocations: 403.5 kB / 283.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.0362, allocations: 384 / 283.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.03635, allocations: 253.5 kB / 284.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.03688, allocations: 179.1 kB / 284.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.03875, allocations: 1.354 MB / 285.6 MB, free: 3.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.931e-05/0.03885, allocations: 142.1 kB / 285.7 MB, free: 3.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002074/0.03906, allocations: 77.47 kB / 285.8 MB, free: 3.449 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.03933, allocations: 230.1 kB / 286 MB, free: 3.223 MB / 266.7 MB Notification: Performance of SimCode: time 1.362e-06/0.03933, allocations: 4 kB / 286 MB, free: 3.219 MB / 266.7 MB Notification: Performance of Templates: time 0.01275/0.05208, allocations: 8.66 MB / 294.7 MB, free: 10.6 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_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.955723105929792]