Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo", uses=false) Using package EHPTexamples with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo) 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) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo) Running command: translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06917/0.06917, allocations: 8.027 MB / 23.01 MB, free: 0.5391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008832/0.0008828, allocations: 98.52 kB / 25.57 MB, free: 3.68 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 198 kB / 28.24 MB, free: 1.02 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.619/1.619, allocations: 223.3 MB / 254 MB, free: 3.969 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01214/0.01214, allocations: 3.112 MB / 310 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004747, allocations: 11.03 kB / 374.8 MB, free: 53.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 52.98 MB / 427.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.007891/0.1464, allocations: 8.062 MB / 435.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006771/0.1532, allocations: 3.794 MB / 439.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002426/0.1557, allocations: 43.81 kB / 439.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.1572, allocations: 0.5874 MB / 440.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002143/0.1594, allocations: 0.5866 MB / 440.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003052/0.1624, allocations: 1.156 MB / 442 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.1656, allocations: 2.484 MB / 444.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.167, allocations: 1.023 MB / 445.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.1685, allocations: 0.8285 MB / 446.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.1696, allocations: 0.9837 MB / 447.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.1698, allocations: 96 kB / 447.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005869/0.1704, allocations: 251.8 kB / 447.7 MB, free: 348 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004352/0.1708, allocations: 0.5253 MB / 448.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005367/0.1714, allocations: 472.3 kB / 448.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002639/0.174, allocations: 2.708 MB / 451.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.174, allocations: 0 / 451.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1741, allocations: 0 / 451.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.925e-05/0.1741, allocations: 0 / 451.4 MB, free: 12.63 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004994/0.1791, allocations: 2.721 MB / 454.1 MB, free: 9.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1792, allocations: 8.031 kB / 454.1 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006073/0.1798, allocations: 304.3 kB / 454.4 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002283/0.1821, allocations: 1.456 MB / 455.8 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.1823, allocations: 181.6 kB / 456 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/0.1826, allocations: 215.8 kB / 456.2 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003947/0.1865, allocations: 2.16 MB / 458.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.013e-05/0.1866, allocations: 11.97 kB / 458.4 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.1868, allocations: 88 kB / 458.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.89e-05/0.1868, allocations: 48 kB / 458.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.19, allocations: 1.538 MB / 460.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/0.2052, allocations: 7.525 MB / 467.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/0.208, allocations: 1.325 MB / 468.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.2095, allocations: 0.7202 MB / 469.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.2096, allocations: 16.98 kB / 469.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001678/0.2113, allocations: 0.8176 MB / 470.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 4.068e-06/0.2113, allocations: 0 / 470.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01156/0.2229, allocations: 5.787 MB / 476.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002992/0.2232, allocations: 0.631 MB / 476.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/0.2263, allocations: 2.131 MB / 479 MB, free: 88 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002523/0.2265, allocations: 61.7 kB / 479.1 MB, free: 20 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.2276, allocations: 1.069 MB / 480.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005052/0.2281, allocations: 485 kB / 480.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.2282, allocations: 36 kB / 480.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2283, allocations: 365.9 kB / 481 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.2295, allocations: 0.5583 MB / 481.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.2309, allocations: 0.9789 MB / 482.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.2322, allocations: 0.7561 MB / 483.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.2322, allocations: 4 kB / 483.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004245/0.2365, allocations: 2.171 MB / 485.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003057/0.2368, allocations: 428.4 kB / 485.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.2368, allocations: 8 kB / 485.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008456/0.2377, allocations: 309.4 kB / 486.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.2388, allocations: 307.6 kB / 486.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.2412, allocations: 2.432 MB / 488.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.2428, allocations: 195.9 kB / 489.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.243, allocations: 63.98 kB / 489.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.243, allocations: 8 kB / 489.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002893/0.2459, allocations: 1.684 MB / 490.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.2459, allocations: 11.94 kB / 490.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/0.2465, allocations: 267.9 kB / 491.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008775/0.2474, allocations: 263.6 kB / 491.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.2494, allocations: 2.319 MB / 493.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.2509, allocations: 144.1 kB / 493.9 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.251, allocations: 63.98 kB / 493.9 MB, free: 380 kB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 20 (driver.dummy,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,dragForce.free,$PRE.dragForce.startForward,dragForce.startForward,$PRE.dragForce.startBackward,dragForce.startBackward,dragForce.locked,$PRE.dragForce.mode,dragForce.mode,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,gen.constPDC.integrator1.local_reset,mot.constPDC.integrator1.local_reset,ice.toKgFuel.local_reset,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 21} Notification: Performance of prepare postOptimizeDAE: time 0.00149/0.2525, allocations: 0.7673 MB / 494.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.2529, allocations: 201.6 kB / 494.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00338/0.2563, allocations: 1.903 MB / 496.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.2563, allocations: 12 kB / 496.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.2563, allocations: 8 kB / 496.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.2563, allocations: 3.984 kB / 496.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006835/0.2632, allocations: 4.19 MB / 0.4893 GB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.2632, allocations: 0 / 0.4893 GB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.2642, allocations: 251.8 kB / 0.4895 GB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007262/0.265, allocations: 275.9 kB / 0.4898 GB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.2651, allocations: 39.97 kB / 0.4898 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.2674, allocations: 2.389 MB / 0.4922 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2674, allocations: 0 / 0.4922 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.2724, allocations: 2.713 MB / 0.4948 GB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/0.2741, allocations: 446.6 kB / 0.4952 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.2746, allocations: 36 kB / 0.4953 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.2758, allocations: 179.8 kB / 0.4954 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.2761, allocations: 125.1 kB / 0.4956 GB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.2763, allocations: 51.97 kB / 0.4956 GB, free: 2.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.2784, allocations: 1.509 MB / 0.4971 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.2785, allocations: 0 / 0.4971 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002973/0.2814, allocations: 0.7187 MB / 0.4978 GB, free: 124 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (EbatDel,EgenDelM,Eroad,EiceDel,Emot,mass.s,mass.v,ice.inertia.w,ice.w.flange.phi,ice.tokgFuel.y,ice.toKgFuel.y,bat.cBattery.v,bat.C1.v,bat.cDummy.v,ECU.powFilt.y,ECU.genTauFilt.y,mot.constPDC.integrator1.y,gen.constPDC.integrator1.y) * Number of discrete variables: 9 ($whenCondition1,dragForce.startForward,dragForce.startBackward,dragForce.locked,dragForce.mode,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 7 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,gen.limTau.state,mot.limTau.state,dragForce.mode,dragForce.startForward,dragForce.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.2447/0.5261, allocations: 1.007 MB / 0.4988 GB, free: 72.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009691/0.5359, allocations: 3.014 MB / 0.5017 GB, free: 71.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/0.5359, allocations: 2.75 kB / 0.5017 GB, free: 71.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.5392, allocations: 1.197 MB / 0.5029 GB, free: 70.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/0.5423, allocations: 358.8 kB / 0.5032 GB, free: 70.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.5574, allocations: 6.034 MB / 0.5091 GB, free: 67.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/0.5593, allocations: 1.575 MB / 0.5107 GB, free: 66.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00227/0.5616, allocations: 258.5 kB / 0.5109 GB, free: 66.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006352/0.5622, allocations: 120.8 kB / 0.511 GB, free: 66.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5623, allocations: 0 / 0.511 GB, free: 66.34 MB / 366.1 MB Notification: Performance of Templates: time 0.07924/0.6415, allocations: 26.99 MB / 0.5374 GB, free: 43.12 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe 2>&1)