Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_EHPTexamples.PSD.PSecu2.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: translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2") translateModel(EHPTexamples.PSD.PSecu2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.PSD.PSecu2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05108/0.05108, allocations: 8.036 MB / 23.31 MB, free: 80 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.0007027/0.0007025, allocations: 90.91 kB / 25.88 MB, free: 3.359 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.0008385/0.0008385, allocations: 188.2 kB / 28.56 MB, free: 0.7266 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.302/1.302, allocations: 223.3 MB / 254.4 MB, free: 3.848 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01204/0.01204, allocations: 3.119 MB / 310.4 MB, free: 2.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004077/0.000408, allocations: 20 kB / 375.5 MB, free: 1.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2492, allocations: 52.97 MB / 428.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu2): time 0.008651/0.2579, allocations: 8.69 MB / 437.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007049/0.265, allocations: 3.888 MB / 441 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00171/0.2667, allocations: 43.75 kB / 441 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.268, allocations: 0.5913 MB / 441.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.2698, allocations: 0.6294 MB / 442.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.2724, allocations: 1.394 MB / 443.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.275, allocations: 2.648 MB / 446.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.2765, allocations: 1.213 MB / 447.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.2777, allocations: 0.8633 MB / 448.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.2789, allocations: 1.046 MB / 449.4 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000255/0.2792, allocations: 104 kB / 449.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000591/0.2798, allocations: 267.8 kB / 449.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004605/0.2802, allocations: 0.5367 MB / 450.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.2814, allocations: 1.155 MB / 451.5 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003014/0.2844, allocations: 3.304 MB / 454.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2844, allocations: 0 / 454.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.2844, allocations: 4 kB / 454.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.091e-05/0.2845, allocations: 0 / 454.8 MB, free: 10.17 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.005051/0.2895, allocations: 2.706 MB / 457.5 MB, free: 7.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2896, allocations: 8.031 kB / 457.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006437/0.2902, allocations: 312.3 kB / 457.8 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/0.2925, allocations: 1.517 MB / 459.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.2927, allocations: 189.7 kB / 459.5 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002962/0.293, allocations: 211.8 kB / 459.7 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/0.2968, allocations: 2.176 MB / 461.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.804e-05/0.2969, allocations: 7.938 kB / 461.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.2971, allocations: 88 kB / 462 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-05/0.2971, allocations: 52 kB / 462 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003115/0.3003, allocations: 1.53 MB / 463.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.3117, allocations: 7.557 MB / 471.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.3146, allocations: 1.345 MB / 472.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.3159, allocations: 0.7189 MB / 473.2 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.971e-05/0.316, allocations: 17 kB / 473.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001516/0.3175, allocations: 0.8161 MB / 474 MB, free: 6.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.126e-06/0.3176, allocations: 0 / 474 MB, free: 6.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01138/0.3289, allocations: 5.78 MB / 479.8 MB, free: 456 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002469/0.3292, allocations: 0.6059 MB / 480.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002731/0.332, allocations: 2.148 MB / 482.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001935/0.3322, allocations: 61.7 kB / 482.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008773/0.333, allocations: 1.073 MB / 483.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004569/0.3335, allocations: 496.9 kB / 484.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.3337, allocations: 125.6 kB / 484.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.3338, allocations: 305.1 kB / 484.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.335, allocations: 0.5661 MB / 485.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.3365, allocations: 0.9742 MB / 486.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0063/0.3428, allocations: 2.979 MB / 489.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.3428, allocations: 4 kB / 489.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004561/0.3474, allocations: 2.191 MB / 491.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002493/0.3477, allocations: 428.7 kB / 491.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3477, allocations: 8 kB / 491.7 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008161/0.3485, allocations: 286.4 kB / 492 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.3497, allocations: 307.5 kB / 492.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.352, allocations: 2.405 MB / 494.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.3536, allocations: 187.9 kB / 494.9 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.3538, allocations: 56 kB / 495 MB, free: 420 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.3538, allocations: 8 kB / 495 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003216/0.357, allocations: 1.719 MB / 496.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3571, allocations: 15.97 kB / 496.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006763/0.3577, allocations: 265.8 kB / 497 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009417/0.3587, allocations: 263.6 kB / 497.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3606, allocations: 2.297 MB / 499.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.3621, allocations: 144.1 kB / 499.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.3622, allocations: 59.98 kB / 499.7 MB, free: 11.43 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.C1.v:VARIABLE(start = 0.0 unit = "V" fixed = true ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 20 (driver.dummy,$PRE.driver.driveCyc.nextTimeEvent,$whenCondition1,dragForce.free,driver.driveCyc.nextTimeEventScaled,$PRE.driver.driveCyc.nextTimeEventScaled,driver.driveCyc.nextTimeEvent,gen.limTau.state,mot.limTau.state,dragForce.mode,$PRE.dragForce.mode,dragForce.locked,dragForce.startBackward,$PRE.dragForce.startBackward,dragForce.startForward,$PRE.dragForce.startForward,gen.constPDC.integrator1.local_reset,mot.constPDC.integrator1.local_reset,ice.toKgFuel.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 (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001316/0.3635, allocations: 0.763 MB / 0.4887 GB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.364, allocations: 209.5 kB / 0.4889 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.3677, allocations: 1.911 MB / 0.4908 GB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3677, allocations: 12 kB / 0.4908 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3677, allocations: 0 / 0.4908 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.3677, allocations: 11.97 kB / 0.4908 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007254/0.375, allocations: 4.194 MB / 0.4949 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.375, allocations: 4 kB / 0.4949 GB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.3761, allocations: 243.8 kB / 0.4952 GB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007638/0.3769, allocations: 275.6 kB / 0.4954 GB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.377, allocations: 39.98 kB / 0.4955 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.3792, allocations: 2.362 MB / 0.4978 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3792, allocations: 0 / 0.4978 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004872/0.3841, allocations: 2.705 MB / 0.5004 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009064/0.385, allocations: 438.7 kB / 0.5008 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004042/0.3854, allocations: 40 kB / 0.5009 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.3868, allocations: 171.8 kB / 0.501 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.387, allocations: 117.1 kB / 0.5012 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.3871, allocations: 47.98 kB / 0.5012 GB, free: 13.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002233/0.3894, allocations: 1.513 MB / 0.5027 GB, free: 11.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3894, allocations: 0 / 0.5027 GB, free: 11.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00224/0.3916, allocations: 0.7343 MB / 0.5034 GB, free: 11.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (EbatDel,EgenDelM,Eroad,EiceDel,Emot,mass.s,mass.v,ice.inertia.w,ice.w.flange.phi,ice.tokgFuel.y,ice.toKgFuel.y,bat.cBattery.v,bat.C1.v,bat.cDummy.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 (115): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002337/0.394, allocations: 1.009 MB / 0.5044 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005136/0.3991, allocations: 3.027 MB / 0.5073 GB, free: 7.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.3991, allocations: 4.375 kB / 0.5073 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.4011, allocations: 1.198 MB / 0.5085 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/0.4033, allocations: 364.5 kB / 0.5089 GB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1838/0.5872, allocations: 6.337 MB / 0.515 GB, free: 84.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/0.5893, allocations: 1.585 MB / 0.5166 GB, free: 84.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001508/0.5909, allocations: 261.8 kB / 0.5168 GB, free: 84.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005241/0.5914, allocations: 119.8 kB / 0.517 GB, free: 84.11 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5914, allocations: 0 / 0.517 GB, free: 84.11 MB / 382.1 MB Notification: Performance of Templates: time 0.0416/0.633, allocations: 27.6 MB / 0.5439 GB, free: 66.47 MB / 382.1 MB make -j1 -f EHPTexamples_EHPTexamples.PSD.PSecu2.makefile (rm -f EHPTexamples_EHPTexamples.PSD.PSecu2.pipe ; mkfifo EHPTexamples_EHPTexamples.PSD.PSecu2.pipe ; head -c 1048576 < EHPTexamples_EHPTexamples.PSD.PSecu2.pipe >> ../files/EHPTexamples_EHPTexamples.PSD.PSecu2.sim & ./EHPTexamples_EHPTexamples.PSD.PSecu2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_EHPTexamples.PSD.PSecu2.pipe 2>&1)