Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo) Running command: translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") translateModel(EHPTexamples.PSD.PSecu1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.05567/0.05567, allocations: 8.615 MB / 23.57 MB, free: 4.617 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008955, allocations: 88.02 kB / 26.27 MB, free: 2.883 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.0009918/0.0009917, allocations: 181.5 kB / 29.07 MB, free: 92 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.33/1.33, allocations: 223.2 MB / 254.9 MB, free: 3.262 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01218/0.01218, allocations: 3.129 MB / 311.1 MB, free: 1.543 MB / 238.1 MB Warning: Requested package EHPTlib of version 2.1.0, but this package was already loaded with version . OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004139, allocations: 15.98 kB / 376 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2361, allocations: 53.13 MB / 429.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu1): time 0.006389/0.2425, allocations: 7.521 MB / 436.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004798/0.2473, allocations: 3.134 MB / 439.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.2484, allocations: 39.81 kB / 439.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008773/0.2492, allocations: 0.5524 MB / 440.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.2507, allocations: 0.6778 MB / 441 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.2537, allocations: 1.133 MB / 442.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002575/0.2563, allocations: 1.641 MB / 443.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.2574, allocations: 1.015 MB / 444.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007331/0.2582, allocations: 0.8054 MB / 445.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007662/0.2589, allocations: 0.9254 MB / 446.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.2591, allocations: 96 kB / 446.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004762/0.2596, allocations: 223.7 kB / 446.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003314/0.2599, allocations: 0.5137 MB / 447.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.2602, allocations: 468.3 kB / 447.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.2622, allocations: 2.669 MB / 450.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2622, allocations: 0 / 450.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2622, allocations: 0 / 450.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.743e-05/0.2623, allocations: 0 / 450.5 MB, free: 14.36 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: 493 * Number of variables: 493 Notification: Performance of Generate backend data structure: time 0.004521/0.2668, allocations: 2.709 MB / 453.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2669, allocations: 8.031 kB / 453.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005208/0.2674, allocations: 300.4 kB / 453.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.2696, allocations: 1.444 MB / 455 MB, free: 9.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.2698, allocations: 173.5 kB / 455.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002718/0.2701, allocations: 211.9 kB / 455.3 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003657/0.2737, allocations: 2.096 MB / 457.4 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/0.2738, allocations: 7.906 kB / 457.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.274, allocations: 92 kB / 457.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.274, allocations: 44 kB / 457.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00303/0.277, allocations: 1.514 MB / 459.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/0.2885, allocations: 7.259 MB / 466.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.2913, allocations: 1.304 MB / 467.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-05/0.2914, allocations: 24.97 kB / 467.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/0.2929, allocations: 0.7882 MB / 468.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=126): time 5.24e-06/0.2929, allocations: 0 / 468.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=136): time 0.01164/0.3046, allocations: 5.789 MB / 474.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002964/0.3049, allocations: 0.6348 MB / 474.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002909/0.3078, allocations: 2.127 MB / 477 MB, free: 2.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.3081, allocations: 65.58 kB / 477.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009476/0.309, allocations: 1.049 MB / 478.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004355/0.3095, allocations: 481.1 kB / 478.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.3095, allocations: 32 kB / 478.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3097, allocations: 357.9 kB / 479 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.3109, allocations: 0.5505 MB / 479.5 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.3124, allocations: 0.9414 MB / 480.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.3137, allocations: 0.7313 MB / 481.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3137, allocations: 0 / 481.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004111/0.3178, allocations: 2.029 MB / 483.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001036/0.3189, allocations: 2.857 MB / 486.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.3189, allocations: 8 kB / 486.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007744/0.3197, allocations: 256.7 kB / 486.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.3208, allocations: 303.6 kB / 486.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.322, allocations: 0.9501 MB / 487.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.3235, allocations: 191.9 kB / 487.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.3237, allocations: 67.88 kB / 487.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.3237, allocations: 8 kB / 487.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002662/0.3264, allocations: 1.506 MB / 489.4 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.3264, allocations: 12 kB / 489.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005971/0.327, allocations: 232 kB / 489.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009547/0.328, allocations: 255.6 kB / 489.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009009/0.3289, allocations: 0.8333 MB / 490.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.3303, allocations: 151.9 kB / 490.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3304, allocations: 59.98 kB / 490.9 MB, free: 4.543 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 19 (driver.dummy,$whenCondition1,$PRE.driver.driveCyc.nextTimeEvent,dragForce.free,$PRE.dragForce.startForward,dragForce.startForward,$PRE.dragForce.startBackward,dragForce.startBackward,dragForce.locked,$PRE.dragForce.mode,dragForce.mode,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEventScaled,gen.constPDC.integrator1.local_reset,mot.constPDC.integrator1.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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 21} Notification: Performance of prepare postOptimizeDAE: time 0.001387/0.3318, allocations: 0.7477 MB / 491.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/0.3322, allocations: 197.7 kB / 491.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/0.3357, allocations: 1.802 MB / 493.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.3357, allocations: 12 kB / 493.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3358, allocations: 0 / 493.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.3358, allocations: 7.969 kB / 493.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006667/0.3425, allocations: 4.033 MB / 497.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3425, allocations: 0 / 497.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.3435, allocations: 239.8 kB / 497.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007844/0.3443, allocations: 283.9 kB / 498.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.3445, allocations: 39.97 kB / 498.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.3467, allocations: 2.356 MB / 0.4889 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3467, allocations: 3.953 kB / 0.4889 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004614/0.3513, allocations: 2.641 MB / 0.4914 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008135/0.3521, allocations: 446.5 kB / 0.4919 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002391/0.3524, allocations: 40 kB / 0.4919 GB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.3536, allocations: 171.9 kB / 0.4921 GB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.3538, allocations: 129 kB / 0.4922 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.51e-05/0.3539, allocations: 43.98 kB / 0.4922 GB, free: 6.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.3558, allocations: 1.501 MB / 0.4937 GB, free: 5.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3558, allocations: 0 / 0.4937 GB, free: 5.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001809/0.3576, allocations: 0.707 MB / 0.4944 GB, free: 4.746 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 16 (EbatDel,EgenDelM,Eroad,EiceDel,Emot,mass.s,mass.v,ice.inertia.w,ice.w.flange.phi,ice.toKgFuel.y,bat.cBattery.v,bat.C1.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 (109): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002127/0.3598, allocations: 1.015 MB / 0.4954 GB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004819/0.3646, allocations: 2.713 MB / 0.498 GB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.3646, allocations: 8.062 kB / 0.498 GB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.3666, allocations: 1.174 MB / 0.4992 GB, free: 124 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.3683, allocations: 319.4 kB / 0.4995 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008399/0.3767, allocations: 5.83 MB / 0.5052 GB, free: 9.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.3779, allocations: 1.606 MB / 0.5068 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001098/0.379, allocations: 263.8 kB / 0.507 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.3794, allocations: 119.4 kB / 0.5071 GB, free: 7.926 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3794, allocations: 4 kB / 0.5071 GB, free: 7.922 MB / 382.1 MB Notification: Performance of Templates: time 0.2433/0.6226, allocations: 26.59 MB / 0.5331 GB, free: 78.2 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu1.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu1.pipe 2>&1)