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-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: "" <> buildModelFMU(EHPTexamples.EV.FirstEVpow,fileNamePrefix="EHPTexamples_latest_EHPTexamples_EV_FirstEVpow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTexamples.EV.FirstEVpow,fileNamePrefix="EHPTexamples_latest_EHPTexamples_EV_FirstEVpow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.06474/0.06474, allocations: 8.037 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.0006731/0.0006732, allocations: 90.36 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.0008218/0.0008219, allocations: 194.8 kB / 28.57 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.227/1.227, allocations: 223.3 MB / 254.4 MB, free: 3.859 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01187/0.01187, allocations: 3.117 MB / 310.4 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003779, allocations: 19.44 kB / 375.5 MB, free: 53.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07032/0.07072, allocations: 52.98 MB / 428.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.EV.FirstEVpow): time 0.002561/0.07331, allocations: 2.942 MB / 431.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.07545, allocations: 2.096 MB / 433.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.07562, allocations: 11.94 kB / 433.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002833/0.07591, allocations: 71.53 kB / 433.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.07619, allocations: 139.1 kB / 433.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005682/0.07676, allocations: 364.8 kB / 434.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.07716, allocations: 0.6074 MB / 434.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.07737, allocations: 156 kB / 434.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.07758, allocations: 239 kB / 435.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.07784, allocations: 234.9 kB / 435.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.0779, allocations: 24 kB / 435.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.07809, allocations: 131.9 kB / 435.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.13e-05/0.07818, allocations: 95.64 kB / 435.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.07832, allocations: 252.3 kB / 435.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.07875, allocations: 0.6384 MB / 436.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.07876, allocations: 0 / 436.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.07877, allocations: 0 / 436.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.07878, allocations: 0 / 436.5 MB, free: 11.85 MB / 302.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.001078/0.07987, allocations: 0.7573 MB / 437.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.07991, allocations: 15.97 kB / 437.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.612e-05/0.07999, allocations: 78.72 kB / 437.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.08013, allocations: 64.27 kB / 437.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.08048, allocations: 384.1 kB / 437.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.08055, allocations: 59.02 kB / 437.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.08061, allocations: 40 kB / 437.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007504/0.08137, allocations: 0.5052 MB / 438.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.0814, allocations: 0 / 438.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/0.08145, allocations: 16 kB / 438.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.08146, allocations: 12 kB / 438.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007239/0.08219, allocations: 379.8 kB / 438.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.08401, allocations: 1.464 MB / 440.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009453/0.08497, allocations: 456 kB / 440.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.0853, allocations: 166.2 kB / 440.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.08534, allocations: 12.27 kB / 440.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004732/0.08582, allocations: 257.5 kB / 441.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.763e-06/0.08584, allocations: 0 / 441.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.003815/0.08966, allocations: 1.915 MB / 443 MB, free: 4.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.08972, allocations: 162.2 kB / 443.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.09, allocations: 328.5 kB / 443.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.09004, allocations: 37.7 kB / 443.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/0.09014, allocations: 224.4 kB / 443.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.09022, allocations: 138.1 kB / 443.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.09028, allocations: 49.69 kB / 443.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.09034, allocations: 346.8 kB / 444.3 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.0907, allocations: 173 kB / 444.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003985/0.09111, allocations: 292.5 kB / 444.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006513/0.09177, allocations: 383.6 kB / 445.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.09178, allocations: 4 kB / 445.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001187/0.09297, allocations: 0.6104 MB / 445.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.738e-05/0.09303, allocations: 144 kB / 445.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.09304, allocations: 7.984 kB / 445.9 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.09342, allocations: 156.7 kB / 446 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.09373, allocations: 91.89 kB / 446.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004835/0.09422, allocations: 0.7123 MB / 446.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.09462, allocations: 80 kB / 446.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.09467, allocations: 12.06 kB / 446.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.561e-06/0.09468, allocations: 4 kB / 446.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008621/0.09555, allocations: 472 kB / 447.4 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.09556, allocations: 3.938 kB / 447.4 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.09589, allocations: 178.7 kB / 447.6 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.0961, allocations: 63.91 kB / 447.6 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005873/0.0967, allocations: 0.7007 MB / 448.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.09705, allocations: 64.03 kB / 448.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.0971, allocations: 16 kB / 448.4 MB, free: 15.34 MB / 318.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.0002529/0.09736, allocations: 264.8 kB / 448.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.51e-05/0.09743, allocations: 43.47 kB / 448.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.09756, allocations: 56.41 kB / 448.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.09758, allocations: 4 kB / 448.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.09759, allocations: 48 / 448.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.0976, allocations: 3.984 kB / 448.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.09969, allocations: 1.215 MB / 450 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.09971, allocations: 3.938 kB / 450 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.1, allocations: 79.98 kB / 450.1 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003472/0.1004, allocations: 140.8 kB / 450.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/0.1004, allocations: 23.92 kB / 450.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005674/0.101, allocations: 0.6733 MB / 450.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.101, allocations: 64 / 450.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.1027, allocations: 0.8494 MB / 451.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.1029, allocations: 160.6 kB / 451.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.466e-05/0.103, allocations: 20.06 kB / 451.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.1034, allocations: 75.92 kB / 452 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.1035, allocations: 55.84 kB / 452.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.403e-05/0.1036, allocations: 19.98 kB / 452.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.1038, allocations: 227.1 kB / 452.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1038, allocations: 7.938 kB / 452.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006268/0.1045, allocations: 184 kB / 452.5 MB, free: 11.11 MB / 318.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.002874/0.1073, allocations: 1.764 MB / 454.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1089, allocations: 0.6718 MB / 454.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1089, allocations: 0 / 454.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005895/0.1095, allocations: 263.9 kB / 455.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.1102, allocations: 92.42 kB / 455.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006964/0.1171, allocations: 4.498 MB / 459.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.1175, allocations: 0.824 MB / 460.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.1178, allocations: 63.22 kB / 460.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.118, allocations: 143.4 kB / 460.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.118, allocations: 4 kB / 460.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.1432, allocations: 12.39 MB / 473.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.1434, allocations: 257.9 kB / 473.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.088, allocations: 0 / 473.4 MB, free: 6.273 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTexamples_latest_EHPTexamples_EV_FirstEVpow_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=0.0001 EHPTexamples_latest_EHPTexamples_EV_FirstEVpow.fmu > EHPTexamples_latest_EHPTexamples.EV.FirstEVpow.pipe 2>&1)