Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu2.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.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.0456/0.0456, allocations: 8.033 MB / 23.3 MB, free: 72 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.0006553/0.0006553, allocations: 90.55 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.000808/0.000808, allocations: 180.8 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.268/1.268, allocations: 223.3 MB / 254.4 MB, free: 3.848 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01155/0.01155, allocations: 3.108 MB / 310.4 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004547, allocations: 15.34 kB / 375.5 MB, free: 53.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.0965, allocations: 52.97 MB / 428.4 MB, free: 19.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.008662/0.1052, allocations: 8.692 MB / 437.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008144/0.1134, allocations: 3.887 MB / 441 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.1154, allocations: 39.88 kB / 441 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.1168, allocations: 0.5913 MB / 441.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.1186, allocations: 0.6295 MB / 442.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003842/0.1224, allocations: 1.407 MB / 443.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004192/0.1266, allocations: 2.64 MB / 446.3 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.1286, allocations: 1.213 MB / 447.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.1302, allocations: 0.8554 MB / 448.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002065/0.1323, allocations: 1.053 MB / 449.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003502/0.1327, allocations: 96 kB / 449.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000953/0.1336, allocations: 267.8 kB / 449.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007005/0.1343, allocations: 0.5406 MB / 450.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001653/0.136, allocations: 1.147 MB / 451.5 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00451/0.1405, allocations: 3.308 MB / 454.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.1406, allocations: 0 / 454.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1406, allocations: 4 kB / 454.8 MB, free: 9.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001198/0.1407, allocations: 0 / 454.8 MB, free: 9.414 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.005807/0.1465, allocations: 2.718 MB / 457.5 MB, free: 6.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.1466, allocations: 8.031 kB / 457.5 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/0.1471, allocations: 304.3 kB / 457.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.1494, allocations: 1.517 MB / 459.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.1496, allocations: 185.7 kB / 459.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.1499, allocations: 219.8 kB / 459.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003756/0.1536, allocations: 2.173 MB / 461.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.1537, allocations: 4 kB / 461.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001704/0.1539, allocations: 88 kB / 462 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.1539, allocations: 48 kB / 462 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.1569, allocations: 1.534 MB / 463.6 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.1679, allocations: 7.549 MB / 471.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/0.1707, allocations: 1.353 MB / 472.5 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.1721, allocations: 0.7111 MB / 473.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-05/0.1722, allocations: 20.97 kB / 473.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001512/0.1737, allocations: 0.8238 MB / 474 MB, free: 5.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 2.985e-06/0.1737, allocations: 0 / 474 MB, free: 5.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.0114/0.1851, allocations: 5.773 MB / 479.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002648/0.1854, allocations: 0.6098 MB / 480.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/0.1883, allocations: 2.152 MB / 482.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001782/0.1885, allocations: 61.69 kB / 482.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008815/0.1894, allocations: 1.061 MB / 483.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000441/0.1898, allocations: 496.9 kB / 484.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.19, allocations: 125.6 kB / 484.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.1901, allocations: 309 kB / 484.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.1913, allocations: 0.5661 MB / 485.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.1928, allocations: 0.976 MB / 486.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00638/0.1992, allocations: 2.975 MB / 489.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.1993, allocations: 4 kB / 489.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004498/0.2038, allocations: 2.202 MB / 491.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002419/0.204, allocations: 428.5 kB / 491.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.2041, allocations: 11.98 kB / 491.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/0.2048, allocations: 285.5 kB / 492 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.2059, allocations: 299.6 kB / 492.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.2083, allocations: 2.412 MB / 494.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.2098, allocations: 187.9 kB / 494.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.2099, allocations: 63.98 kB / 495 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.2099, allocations: 4 kB / 495 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002853/0.2128, allocations: 1.719 MB / 496.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.2128, allocations: 8.312 kB / 496.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006333/0.2135, allocations: 273.4 kB / 497 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008611/0.2143, allocations: 259.6 kB / 497.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.2161, allocations: 2.297 MB / 499.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.2175, allocations: 140 kB / 499.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.933e-05/0.2176, allocations: 63.98 kB / 499.7 MB, free: 10.67 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 (161): * Single equations (assignments): 155 * 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.001236/0.2189, allocations: 0.7739 MB / 0.4888 GB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.2192, allocations: 201.6 kB / 0.489 GB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/0.2225, allocations: 1.903 MB / 0.4908 GB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.2226, allocations: 16 kB / 0.4908 GB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2226, allocations: 0 / 0.4908 GB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.2226, allocations: 3.984 kB / 0.4908 GB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006504/0.2291, allocations: 4.194 MB / 0.4949 GB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.2291, allocations: 4 kB / 0.4949 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.2302, allocations: 247.9 kB / 0.4952 GB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000731/0.2309, allocations: 273.5 kB / 0.4954 GB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.231, allocations: 43.97 kB / 0.4955 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.2332, allocations: 2.365 MB / 0.4978 GB, free: 292 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2332, allocations: 0 / 0.4978 GB, free: 292 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2001/0.4333, allocations: 2.7 MB / 0.5004 GB, free: 70 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/0.4342, allocations: 442.4 kB / 0.5008 GB, free: 69.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.4345, allocations: 39.77 kB / 0.5009 GB, free: 69.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4356, allocations: 171.7 kB / 0.501 GB, free: 69.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.4359, allocations: 118.9 kB / 0.5012 GB, free: 69.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.409e-05/0.436, allocations: 46.91 kB / 0.5012 GB, free: 69.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001891/0.4379, allocations: 1.515 MB / 0.5027 GB, free: 69.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4379, allocations: 0 / 0.5027 GB, free: 69.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001936/0.4398, allocations: 0.7264 MB / 0.5034 GB, free: 69.45 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 (115): * Single equations (assignments): 107 * 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.002078/0.4419, allocations: 1.007 MB / 0.5044 GB, free: 69.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006064/0.448, allocations: 3.018 MB / 0.5073 GB, free: 67.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.448, allocations: 6.656 kB / 0.5073 GB, free: 67.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.4498, allocations: 1.203 MB / 0.5085 GB, free: 67.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.4519, allocations: 363 kB / 0.5088 GB, free: 66.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007734/0.4597, allocations: 6.345 MB / 0.515 GB, free: 63.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008508/0.4606, allocations: 1.584 MB / 0.5166 GB, free: 62.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009967/0.4616, allocations: 256 kB / 0.5168 GB, free: 62.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.4619, allocations: 123.6 kB / 0.517 GB, free: 62.43 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4619, allocations: 0 / 0.517 GB, free: 62.43 MB / 366.1 MB Notification: Performance of Templates: time 0.0361/0.498, allocations: 27.6 MB / 0.5439 GB, free: 35.8 MB / 366.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu2.pipe 2>&1)