Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.EV.FirstEV.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: translateModel(EHPTexamples.EV.FirstEV,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.FirstEV") translateModel(EHPTexamples.EV.FirstEV,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.EV.FirstEV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05326/0.05326, allocations: 8.035 MB / 23.67 MB, free: 0.5586 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.001024/0.001024, allocations: 103.9 kB / 26.25 MB, free: 3.348 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.001168/0.001168, allocations: 195.5 kB / 28.95 MB, free: 0.6641 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.392/1.392, allocations: 222.9 MB / 254.4 MB, free: 4.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01277/0.01277, allocations: 3.115 MB / 309.4 MB, free: 2.305 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 95.86 kB / 429.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1079, allocations: 51.97 MB / 481.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEV): time 0.004651/0.1126, allocations: 3.169 MB / 484.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003868/0.1165, allocations: 2.13 MB / 487 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002828/0.1168, allocations: 11.94 kB / 487 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004307/0.1173, allocations: 95.22 kB / 487.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.1178, allocations: 154.9 kB / 487.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008903/0.1187, allocations: 410.5 kB / 487.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006801/0.1194, allocations: 0.627 MB / 488.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003082/0.1197, allocations: 160.7 kB / 488.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.12, allocations: 271 kB / 488.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.1204, allocations: 247 kB / 488.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.598e-05/0.1205, allocations: 56 kB / 489 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003187/0.1209, allocations: 167.8 kB / 489.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.121, allocations: 115.7 kB / 489.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002401/0.1212, allocations: 246.8 kB / 489.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008453/0.1221, allocations: 0.646 MB / 490.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1221, allocations: 0 / 490.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1221, allocations: 0 / 490.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1221, allocations: 0 / 490.1 MB, free: 2.207 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001636/0.1238, allocations: 0.8227 MB / 491 MB, free: 1.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1238, allocations: 8.031 kB / 491 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.1241, allocations: 60.61 kB / 491 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.1247, allocations: 384.4 kB / 491.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.044e-05/0.1248, allocations: 59.2 kB / 491.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.489e-05/0.1249, allocations: 47.88 kB / 491.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008853/0.1257, allocations: 461.5 kB / 492 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1258, allocations: 0 / 492 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.578e-05/0.1258, allocations: 16 kB / 492 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1258, allocations: 8 kB / 492 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000778/0.1266, allocations: 335.8 kB / 492.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.129, allocations: 1.343 MB / 493.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.13, allocations: 379 kB / 494 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.1304, allocations: 144.8 kB / 494.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.1305, allocations: 16.23 kB / 494.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005243/0.131, allocations: 239.7 kB / 494.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 4.328e-06/0.131, allocations: 0 / 494.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004359/0.1354, allocations: 1.769 MB / 496.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/0.1355, allocations: 174.1 kB / 496.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.1359, allocations: 320.5 kB / 496.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.41e-05/0.1359, allocations: 37.7 kB / 496.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.1361, allocations: 220.8 kB / 496.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.1362, allocations: 138.9 kB / 497.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.1363, allocations: 86.08 kB / 497.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1365, allocations: 346.8 kB / 497.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.1369, allocations: 166.5 kB / 497.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.1373, allocations: 271.4 kB / 497.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007043/0.1381, allocations: 359.6 kB / 498.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1381, allocations: 0 / 498.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001269/0.1393, allocations: 0.5564 MB / 498.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1394, allocations: 4 kB / 498.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1394, allocations: 4 kB / 498.8 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000444/0.1398, allocations: 160.5 kB / 499 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.1401, allocations: 83.89 kB / 499.1 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007065/0.1409, allocations: 0.7124 MB / 499.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004146/0.1413, allocations: 63.86 kB / 499.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.1413, allocations: 16 kB / 499.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003937/0.1417, allocations: 253 kB / 0.4884 GB, free: 7.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000321/0.1421, allocations: 227.5 kB / 0.4886 GB, free: 7.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004491/0.1425, allocations: 291.8 kB / 0.4889 GB, free: 7.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.1425, allocations: 0 / 0.4889 GB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001002/0.1436, allocations: 493.7 kB / 0.4893 GB, free: 6.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.1436, allocations: 8 kB / 0.4894 GB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.1436, allocations: 0 / 0.4894 GB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003907/0.144, allocations: 173 kB / 0.4895 GB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.1442, allocations: 59.92 kB / 0.4896 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006538/0.1449, allocations: 0.7123 MB / 0.4903 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.1452, allocations: 47.94 kB / 0.4903 GB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.1453, allocations: 16 kB / 0.4903 GB, free: 5.625 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 14 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,dragF.mode,$PRE.dragF.mode,dragF.locked,dragF.startBackward,$PRE.dragF.startBackward,dragF.startForward,$PRE.dragF.startForward,dragF.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001825/0.1455, allocations: 208.3 kB / 0.4905 GB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.1456, allocations: 47.7 kB / 0.4906 GB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.1457, allocations: 52 kB / 0.4906 GB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1457, allocations: 4 kB / 0.4906 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1457, allocations: 0 / 0.4906 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1457, allocations: 0 / 0.4906 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.1479, allocations: 1.161 MB / 0.4918 GB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1479, allocations: 4 kB / 0.4918 GB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.1482, allocations: 63.89 kB / 0.4918 GB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.1485, allocations: 144.8 kB / 0.492 GB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/0.1486, allocations: 15.98 kB / 0.492 GB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006732/0.1493, allocations: 0.6811 MB / 0.4926 GB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.1493, allocations: 4 kB / 0.4927 GB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.1509, allocations: 0.7966 MB / 0.4934 GB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.1511, allocations: 156.8 kB / 0.4936 GB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.1512, allocations: 20 kB / 0.4936 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003532/0.1515, allocations: 47.94 kB / 0.4936 GB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.1517, allocations: 59.94 kB / 0.4937 GB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/0.1517, allocations: 15.98 kB / 0.4937 GB, free: 2.004 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002459/0.152, allocations: 239 kB / 0.4939 GB, free: 1.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.152, allocations: 4 kB / 0.4939 GB, free: 1.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006541/0.1526, allocations: 175.9 kB / 0.4941 GB, free: 1.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (dragF.s,dragF.v) * Number of discrete variables: 7 ($whenCondition1,dragF.startForward,dragF.startBackward,dragF.locked,dragF.mode,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 5 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,dragF.mode,dragF.startForward,dragF.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001023/0.1537, allocations: 482 kB / 0.4946 GB, free: 1.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1553, allocations: 0.6403 MB / 0.4952 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1553, allocations: 4.125 kB / 0.4952 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005855/0.1559, allocations: 235.7 kB / 0.4954 GB, free: 432 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.1565, allocations: 95.69 kB / 0.4955 GB, free: 340 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.1587, allocations: 0.9699 MB / 0.4965 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1591, allocations: 0.8122 MB / 0.4973 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.1593, allocations: 63.22 kB / 0.4973 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1594, allocations: 39.42 kB / 0.4974 GB, free: 14.38 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1594, allocations: 0 / 0.4974 GB, free: 14.38 MB / 382.1 MB Notification: Performance of Templates: time 0.01545/0.1748, allocations: 9.452 MB / 0.5066 GB, free: 4.984 MB / 382.1 MB make -j1 -f EHPTexamples_EHPTexamples.EV.FirstEV.makefile (rm -f EHPTexamples_EHPTexamples.EV.FirstEV.pipe ; mkfifo EHPTexamples_EHPTexamples.EV.FirstEV.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.EV.FirstEV.pipe >> ../files/EHPTexamples_EHPTexamples.EV.FirstEV.sim & ./EHPTexamples_EHPTexamples.EV.FirstEV -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.EV.FirstEV.pipe 2>&1)