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.04758/0.04758, allocations: 8.033 MB / 24.34 MB, free: 408 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.00132/0.00132, allocations: 107 kB / 26.92 MB, free: 3.121 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.001395/0.001395, allocations: 196.7 kB / 29.61 MB, free: 456 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.501/1.501, allocations: 222.9 MB / 255.1 MB, free: 4.684 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01359/0.01359, allocations: 3.116 MB / 310.1 MB, free: 2.309 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002836/0.002836, allocations: 87.86 kB / 427.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09986/0.1027, allocations: 51.97 MB / 479.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.005238/0.1079, allocations: 3.309 MB / 482.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00428/0.1122, allocations: 2.165 MB / 485 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.1126, allocations: 11.94 kB / 485 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000523/0.1131, allocations: 99.14 kB / 485.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005347/0.1136, allocations: 154.9 kB / 485.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1147, allocations: 417.5 kB / 485.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000791/0.1155, allocations: 0.6621 MB / 486.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.1158, allocations: 137.8 kB / 486.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.1161, allocations: 271.1 kB / 486.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004325/0.1166, allocations: 270.8 kB / 487 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.269e-05/0.1167, allocations: 52 kB / 487.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003495/0.117, allocations: 171.9 kB / 487.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1172, allocations: 131.5 kB / 487.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.1175, allocations: 246.8 kB / 487.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.1185, allocations: 0.6927 MB / 488.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1185, allocations: 7.938 kB / 488.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.1185, allocations: 7.938 kB / 488.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1186, allocations: 0 / 488.3 MB, free: 4.723 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.1203, allocations: 0.846 MB / 489.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1203, allocations: 12.03 kB / 489.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.1205, allocations: 60.59 kB / 489.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006895/0.1212, allocations: 392.3 kB / 489.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/0.1213, allocations: 55.27 kB / 489.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.1214, allocations: 55.88 kB / 489.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009584/0.1224, allocations: 493.4 kB / 490.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1224, allocations: 3.984 kB / 490.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.904e-05/0.1224, allocations: 20 kB / 490.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.1224, allocations: 12 kB / 490.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008424/0.1233, allocations: 347.7 kB / 490.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.1259, allocations: 1.417 MB / 492 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.127, allocations: 395.2 kB / 492.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.1273, allocations: 149.3 kB / 492.5 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.1274, allocations: 8.578 kB / 492.5 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005857/0.128, allocations: 246.5 kB / 492.8 MB, free: 40 kB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.615e-06/0.128, allocations: 0 / 492.8 MB, free: 40 kB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004779/0.1327, allocations: 1.811 MB / 494.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1329, allocations: 170.1 kB / 494.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004293/0.1333, allocations: 320.5 kB / 495.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.706e-05/0.1333, allocations: 45.69 kB / 495.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.1335, allocations: 220.7 kB / 495.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.1337, allocations: 150.7 kB / 495.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.1338, allocations: 90.2 kB / 495.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.134, allocations: 350.8 kB / 495.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.1344, allocations: 167 kB / 496.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005092/0.1349, allocations: 276.7 kB / 496.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008005/0.1357, allocations: 379.1 kB / 496.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1357, allocations: 4 kB / 496.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001463/0.1372, allocations: 0.5754 MB / 497.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.1372, allocations: 4 kB / 497.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1372, allocations: 7.984 kB / 497.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004685/0.1377, allocations: 156.9 kB / 497.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.138, allocations: 79.89 kB / 497.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008044/0.1388, allocations: 0.7163 MB / 498.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000413/0.1392, allocations: 51.94 kB / 498.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.466e-05/0.1393, allocations: 19.98 kB / 498.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000444/0.1397, allocations: 261.1 kB / 498.6 MB, free: 9.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004054/0.1401, allocations: 232.8 kB / 498.8 MB, free: 9.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005467/0.1407, allocations: 299.7 kB / 499.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.1407, allocations: 0 / 499.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization_lambda0): time 0.001139/0.1418, allocations: 0.5128 MB / 499.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1418, allocations: 11.94 kB / 499.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.1418, allocations: 0 / 499.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004425/0.1423, allocations: 168.9 kB / 499.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.1425, allocations: 67.91 kB / 499.8 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007585/0.1433, allocations: 0.7082 MB / 0.4888 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.1437, allocations: 39.95 kB / 0.4889 GB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.1437, allocations: 23.92 kB / 0.4889 GB, free: 7.789 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.0002383/0.1439, allocations: 220.7 kB / 0.4891 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.361e-05/0.144, allocations: 43.83 kB / 0.4891 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.1442, allocations: 48.41 kB / 0.4892 GB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.1442, allocations: 8 kB / 0.4892 GB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.1442, allocations: 0 / 0.4892 GB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.1442, allocations: 3.984 kB / 0.4892 GB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002417/0.1466, allocations: 1.193 MB / 0.4904 GB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1466, allocations: 0 / 0.4904 GB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003295/0.147, allocations: 71.89 kB / 0.4904 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004108/0.1474, allocations: 144.8 kB / 0.4906 GB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.1474, allocations: 11.98 kB / 0.4906 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000744/0.1482, allocations: 0.685 MB / 0.4912 GB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.1482, allocations: 3.984 kB / 0.4913 GB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.15, allocations: 0.8118 MB / 0.492 GB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.1503, allocations: 156.8 kB / 0.4922 GB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.882e-05/0.1504, allocations: 16 kB / 0.4922 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.1508, allocations: 51.92 kB / 0.4923 GB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.1509, allocations: 59.94 kB / 0.4923 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.1509, allocations: 15.98 kB / 0.4923 GB, free: 4.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.1513, allocations: 239 kB / 0.4926 GB, free: 3.875 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1513, allocations: 4 kB / 0.4926 GB, free: 3.871 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007768/0.152, allocations: 179.9 kB / 0.4927 GB, free: 3.695 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.001758/0.1538, allocations: 486.4 kB / 0.4932 GB, free: 3.391 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.1556, allocations: 0.6181 MB / 0.4938 GB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.1556, allocations: 4.125 kB / 0.4938 GB, free: 2.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006183/0.1562, allocations: 231.7 kB / 0.494 GB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000665/0.1568, allocations: 95.11 kB / 0.4941 GB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.1593, allocations: 1.004 MB / 0.4951 GB, free: 1.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005946/0.1599, allocations: 0.8201 MB / 0.4959 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002849/0.1602, allocations: 67.23 kB / 0.496 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1603, allocations: 43.36 kB / 0.496 GB, free: 464 kB / 366.1 MB Notification: Performance of SimCode: time 1.743e-06/0.1603, allocations: 0 / 0.496 GB, free: 464 kB / 366.1 MB Notification: Performance of Templates: time 0.01827/0.1786, allocations: 9.592 MB / 0.5054 GB, free: 6.91 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 -s cvode -lv LOG_STATS > EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe 2>&1)