Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_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_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05211/0.05211, allocations: 8.038 MB / 23.31 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007304/0.0007305, allocations: 87.05 kB / 25.87 MB, free: 3.352 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.0009379/0.0009382, allocations: 188.7 kB / 28.56 MB, free: 0.7188 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.382/1.382, allocations: 223.3 MB / 254.4 MB, free: 3.758 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01215/0.01215, allocations: 3.113 MB / 310.4 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00041/0.0004101, allocations: 15.14 kB / 375.5 MB, free: 53.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09737, allocations: 52.96 MB / 428.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.007335/0.1047, allocations: 8.597 MB / 437 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005729/0.1105, allocations: 3.903 MB / 440.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.1117, allocations: 43.88 kB / 441 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001096/0.1128, allocations: 0.5951 MB / 441.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.1146, allocations: 0.6217 MB / 442.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002635/0.1173, allocations: 1.442 MB / 443.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002406/0.1197, allocations: 2.64 MB / 446.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.121, allocations: 1.201 MB / 447.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000996/0.122, allocations: 0.8555 MB / 448.3 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001204/0.1232, allocations: 1.049 MB / 449.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002196/0.1235, allocations: 96 kB / 449.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006033/0.1241, allocations: 267.8 kB / 449.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004649/0.1245, allocations: 0.5406 MB / 450.3 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.1256, allocations: 1.147 MB / 451.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003025/0.1286, allocations: 3.297 MB / 454.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1287, allocations: 0 / 454.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1287, allocations: 0 / 454.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.558e-05/0.1287, allocations: 0 / 454.7 MB, free: 9.504 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.004777/0.1335, allocations: 2.69 MB / 457.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1336, allocations: 12.03 kB / 457.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005518/0.1341, allocations: 312.3 kB / 457.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.1364, allocations: 1.528 MB / 459.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.1366, allocations: 177.6 kB / 459.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002991/0.1369, allocations: 211.9 kB / 459.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003888/0.1408, allocations: 2.177 MB / 461.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.392e-05/0.1408, allocations: 7.906 kB / 461.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.141, allocations: 91.94 kB / 461.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-05/0.1411, allocations: 51.98 kB / 461.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003188/0.1443, allocations: 1.545 MB / 463.5 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.1558, allocations: 7.521 MB / 471 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00272/0.1585, allocations: 1.329 MB / 472.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.1599, allocations: 0.7227 MB / 473.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.286e-05/0.16, allocations: 24.91 kB / 473.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.1616, allocations: 0.8176 MB / 473.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 2.605e-06/0.1616, allocations: 0 / 473.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01135/0.173, allocations: 5.811 MB / 479.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.1732, allocations: 0.6349 MB / 480.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.1759, allocations: 2.139 MB / 482.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.1761, allocations: 57.7 kB / 482.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008304/0.1769, allocations: 1.069 MB / 483.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.1773, allocations: 485 kB / 484.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.1775, allocations: 125.6 kB / 484.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.223e-05/0.1776, allocations: 301.1 kB / 484.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.1788, allocations: 0.5739 MB / 485.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.1804, allocations: 0.9964 MB / 486.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006177/0.1866, allocations: 2.991 MB / 489.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.1866, allocations: 7.938 kB / 489.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004281/0.1909, allocations: 2.21 MB / 491.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002299/0.1912, allocations: 432.7 kB / 491.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.1912, allocations: 8 kB / 491.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/0.192, allocations: 289.3 kB / 492 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.1931, allocations: 307.6 kB / 492.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/0.1953, allocations: 2.431 MB / 494.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.1968, allocations: 195.8 kB / 494.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.1969, allocations: 67.98 kB / 495 MB, free: 15.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.1969, allocations: 4 kB / 495 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00281/0.1998, allocations: 1.688 MB / 496.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1998, allocations: 8 kB / 496.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006668/0.2005, allocations: 269.8 kB / 497 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009001/0.2014, allocations: 255.6 kB / 497.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.2033, allocations: 2.34 MB / 499.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.2051, allocations: 152 kB / 499.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.2052, allocations: 59.98 kB / 499.8 MB, free: 10.62 MB / 366.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,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,gen.limTau.state,mot.limTau.state,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,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 (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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001881/0.2071, allocations: 0.7721 MB / 0.4888 GB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004308/0.2075, allocations: 201.6 kB / 0.489 GB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/0.2111, allocations: 1.903 MB / 0.4908 GB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.2112, allocations: 19.94 kB / 0.4909 GB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2112, allocations: 0 / 0.4909 GB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.2112, allocations: 7.969 kB / 0.4909 GB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006613/0.2178, allocations: 4.186 MB / 0.495 GB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.2179, allocations: 4 kB / 0.495 GB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.219, allocations: 251.8 kB / 0.4952 GB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007508/0.2197, allocations: 273.5 kB / 0.4955 GB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.866e-05/0.2198, allocations: 39.98 kB / 0.4955 GB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/0.222, allocations: 2.385 MB / 0.4978 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.222, allocations: 12.03 kB / 0.4978 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.207/0.429, allocations: 2.71 MB / 0.5005 GB, free: 70.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000896/0.4299, allocations: 445 kB / 0.5009 GB, free: 70.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/0.4303, allocations: 38.27 kB / 0.5009 GB, free: 70.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.4315, allocations: 178.5 kB / 0.5011 GB, free: 70.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.4317, allocations: 117.7 kB / 0.5012 GB, free: 70.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.804e-05/0.4318, allocations: 49.44 kB / 0.5013 GB, free: 70.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001938/0.4338, allocations: 1.507 MB / 0.5027 GB, free: 69.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4338, allocations: 0 / 0.5027 GB, free: 69.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002105/0.4359, allocations: 0.7279 MB / 0.5035 GB, free: 69.59 MB / 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 (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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002194/0.4381, allocations: 0.9999 MB / 0.5044 GB, free: 69.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005416/0.4435, allocations: 3.033 MB / 0.5074 GB, free: 67.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4436, allocations: 2.469 kB / 0.5074 GB, free: 67.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.4454, allocations: 1.202 MB / 0.5086 GB, free: 67.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.4476, allocations: 364 kB / 0.5089 GB, free: 67.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008113/0.4557, allocations: 6.329 MB / 0.5151 GB, free: 63.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008379/0.4566, allocations: 1.579 MB / 0.5166 GB, free: 62.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001008/0.4576, allocations: 258.8 kB / 0.5169 GB, free: 62.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.4579, allocations: 116.6 kB / 0.517 GB, free: 62.57 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4579, allocations: 3.094 kB / 0.517 GB, free: 62.57 MB / 366.1 MB Notification: Performance of Templates: time 0.03265/0.4906, allocations: 27.78 MB / 0.5441 GB, free: 35.57 MB / 366.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu1.pipe 2>&1)