Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/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/package.mo) Running command: translateModel(EHPTexamples.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.EV.FirstEVpow") translateModel(EHPTexamples.EV.FirstEVpow,tolerance=0.0001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="EHPTexamples_latest_EHPTexamples.EV.FirstEVpow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/package.mo): time 0.04626/0.04626, allocations: 8.025 MB / 24.33 MB, free: 392 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.0009869/0.0009873, allocations: 101.7 kB / 26.92 MB, free: 3.105 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.001318/0.001318, allocations: 198.5 kB / 29.62 MB, free: 432 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 255.1 MB, free: 4.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01226/0.01226, allocations: 3.122 MB / 310.1 MB, free: 2.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 91.84 kB / 427.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1024, allocations: 51.96 MB / 479.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.005422/0.1078, allocations: 3.301 MB / 482.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.1117, allocations: 2.161 MB / 485 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004918/0.1122, allocations: 11.94 kB / 485 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006044/0.1128, allocations: 103.1 kB / 485.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007396/0.1136, allocations: 154.9 kB / 485.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.1148, allocations: 433.4 kB / 485.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009492/0.1158, allocations: 0.6543 MB / 486.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003583/0.1161, allocations: 173.9 kB / 486.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000525/0.1167, allocations: 283.1 kB / 486.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.1173, allocations: 274.8 kB / 487.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.1174, allocations: 52 kB / 487.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004264/0.1179, allocations: 163.9 kB / 487.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.1181, allocations: 131.5 kB / 487.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.1184, allocations: 250.8 kB / 487.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.1194, allocations: 0.6927 MB / 488.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1194, allocations: 0 / 488.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1194, allocations: 0 / 488.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.1195, allocations: 0 / 488.3 MB, free: 4.645 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001714/0.1212, allocations: 0.8498 MB / 489.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1212, allocations: 12.03 kB / 489.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.1215, allocations: 68.59 kB / 489.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.1221, allocations: 388.3 kB / 489.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.508e-05/0.1222, allocations: 55.27 kB / 489.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-05/0.1223, allocations: 51.89 kB / 489.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009089/0.1232, allocations: 493.5 kB / 490.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1232, allocations: 0 / 490.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.1233, allocations: 16 kB / 490.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1233, allocations: 15.94 kB / 490.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007597/0.1241, allocations: 355.8 kB / 490.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.1265, allocations: 1.421 MB / 492 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1275, allocations: 406 kB / 492.4 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.1279, allocations: 161.3 kB / 492.6 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.1279, allocations: 4.281 kB / 492.6 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005552/0.1285, allocations: 250.5 kB / 492.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.334e-06/0.1285, allocations: 0 / 492.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.004506/0.133, allocations: 1.811 MB / 494.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1331, allocations: 170.2 kB / 494.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.1336, allocations: 328.4 kB / 495.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.195e-05/0.1336, allocations: 37.7 kB / 495.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.1338, allocations: 232.6 kB / 495.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.1339, allocations: 142.8 kB / 495.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.1341, allocations: 94.19 kB / 495.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1343, allocations: 346.8 kB / 496 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.1347, allocations: 171 kB / 496.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.1351, allocations: 276.7 kB / 496.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.1359, allocations: 371.1 kB / 496.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1359, allocations: 0 / 496.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001382/0.1373, allocations: 0.5793 MB / 497.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1373, allocations: 12.22 kB / 497.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1373, allocations: 0 / 497.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.1378, allocations: 168.7 kB / 497.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.1381, allocations: 79.89 kB / 497.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007086/0.1389, allocations: 0.7046 MB / 498.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.1393, allocations: 60.03 kB / 498.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/0.1394, allocations: 16 kB / 498.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004044/0.1398, allocations: 261.1 kB / 498.6 MB, free: 9.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000333/0.1401, allocations: 240.7 kB / 498.9 MB, free: 9.551 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005079/0.1406, allocations: 295.8 kB / 499.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.1406, allocations: 0 / 499.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization_lambda0): time 0.001094/0.1417, allocations: 0.5168 MB / 499.7 MB, free: 8.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1418, allocations: 11.94 kB / 499.7 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1418, allocations: 4 kB / 499.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.1422, allocations: 164.9 kB / 499.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.1424, allocations: 67.84 kB / 499.9 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006613/0.1431, allocations: 0.7121 MB / 0.4889 GB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.1435, allocations: 43.95 kB / 0.4889 GB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.1435, allocations: 16 kB / 0.489 GB, free: 7.668 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 (43): * Single equations (assignments): 42 * 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.0002138/0.1437, allocations: 220.5 kB / 0.4892 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.225e-05/0.1438, allocations: 43.83 kB / 0.4892 GB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.144, allocations: 52.41 kB / 0.4893 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.144, allocations: 4 kB / 0.4893 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.144, allocations: 0 / 0.4893 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.144, allocations: 8.078 kB / 0.4893 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.1463, allocations: 1.192 MB / 0.4904 GB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.1463, allocations: 4 kB / 0.4904 GB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.1466, allocations: 75.98 kB / 0.4905 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000361/0.1469, allocations: 144.8 kB / 0.4907 GB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.147, allocations: 11.98 kB / 0.4907 GB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006102/0.1476, allocations: 0.6772 MB / 0.4913 GB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1476, allocations: 7.922 kB / 0.4913 GB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.1493, allocations: 0.8156 MB / 0.4921 GB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/0.1496, allocations: 152.8 kB / 0.4923 GB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.462e-05/0.1497, allocations: 16 kB / 0.4923 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.1501, allocations: 56 kB / 0.4923 GB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.1502, allocations: 59.84 kB / 0.4924 GB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.1503, allocations: 19.98 kB / 0.4924 GB, free: 3.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.1505, allocations: 227.1 kB / 0.4926 GB, free: 3.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1505, allocations: 0 / 0.4926 GB, free: 3.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000762/0.1513, allocations: 191.9 kB / 0.4928 GB, free: 3.562 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 (32): * Single equations (assignments): 29 * 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.001222/0.1525, allocations: 486.1 kB / 0.4933 GB, free: 3.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.1543, allocations: 0.6604 MB / 0.4939 GB, free: 2.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1543, allocations: 4 kB / 0.4939 GB, free: 2.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.1549, allocations: 240.8 kB / 0.4942 GB, free: 2.359 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006307/0.1555, allocations: 88.62 kB / 0.4942 GB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.1579, allocations: 1.036 MB / 0.4953 GB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.1583, allocations: 0.8279 MB / 0.4961 GB, free: 344 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.1585, allocations: 43.42 kB / 0.4961 GB, free: 300 kB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1585, allocations: 3.938 kB / 0.4961 GB, free: 296 kB / 366.1 MB Notification: Performance of Templates: time 0.01306/0.1716, allocations: 7.964 MB / 0.5039 GB, free: 8.34 MB / 382.1 MB make -j1 -f EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.makefile (rm -f EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe ; mkfifo EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe ; head -c 1048576 < EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe >> ../files/EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.sim & ./EHPTexamples_latest_EHPTexamples.EV.FirstEVpow -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe 2>&1)