Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTexamples_main_EHPTexamples.PSD.PSecu3.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.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu3") translateModel(EHPTexamples.PSD.PSecu3,tolerance=0.0001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="EHPTexamples_main_EHPTexamples.PSD.PSecu3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.07181/0.07181, allocations: 8.617 MB / 23.57 MB, free: 4.613 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.0008542/0.0008543, allocations: 90.98 kB / 26.27 MB, free: 2.867 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.001341/0.001341, allocations: 185.5 kB / 29.08 MB, free: 72 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.363/1.363, allocations: 223.2 MB / 254.9 MB, free: 3.223 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01205/0.01205, allocations: 3.124 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.0003872/0.0003872, allocations: 12 kB / 376 MB, free: 0.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2226, allocations: 53.12 MB / 429.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.PSD.PSecu3): time 0.006748/0.2294, allocations: 7.704 MB / 436.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005184/0.2346, allocations: 3.134 MB / 439.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.2359, allocations: 35.88 kB / 440 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007699/0.2367, allocations: 361.8 kB / 440.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.238, allocations: 0.5841 MB / 440.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.2403, allocations: 1.118 MB / 442 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001862/0.2422, allocations: 1.622 MB / 443.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.2432, allocations: 1.076 MB / 444.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006648/0.2439, allocations: 0.7702 MB / 445.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006261/0.2445, allocations: 0.8668 MB / 446.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.2447, allocations: 96 kB / 446.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004847/0.2452, allocations: 223.8 kB / 446.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000328/0.2455, allocations: 438.2 kB / 447.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.2459, allocations: 432.5 kB / 447.5 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002002/0.2479, allocations: 2.548 MB / 450.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2479, allocations: 0 / 450.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2479, allocations: 0 / 450.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.039e-05/0.248, allocations: 0 / 450.1 MB, free: 14.77 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.004694/0.2527, allocations: 2.483 MB / 452.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2527, allocations: 8.031 kB / 452.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004288/0.2531, allocations: 284.7 kB / 452.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001767/0.2549, allocations: 1.275 MB / 454.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.2551, allocations: 181.7 kB / 454.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002553/0.2553, allocations: 223.8 kB / 454.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003357/0.2587, allocations: 2.164 MB / 456.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.484e-05/0.2588, allocations: 4 kB / 456.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001735/0.2589, allocations: 88 kB / 456.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.705e-05/0.259, allocations: 51.98 kB / 456.8 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002914/0.2619, allocations: 1.542 MB / 458.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.273, allocations: 7.26 MB / 465.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.2757, allocations: 1.35 MB / 467 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.291e-05/0.2759, allocations: 24.89 kB / 467 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/0.2773, allocations: 0.8044 MB / 467.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.417e-06/0.2774, allocations: 0 / 467.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01101/0.2884, allocations: 5.744 MB / 473.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002618/0.2887, allocations: 0.6349 MB / 474.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.2907, allocations: 1.447 MB / 475.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.2909, allocations: 65.7 kB / 475.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007187/0.2916, allocations: 0.9302 MB / 476.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/0.292, allocations: 488.9 kB / 477.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.062e-05/0.2921, allocations: 36 kB / 477.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2922, allocations: 369.8 kB / 477.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.2933, allocations: 0.5505 MB / 478.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.2947, allocations: 0.9491 MB / 479 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.2959, allocations: 0.7316 MB / 479.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.2959, allocations: 0 / 479.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00353/0.2994, allocations: 1.916 MB / 481.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001014/0.3004, allocations: 2.786 MB / 484.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3005, allocations: 11.83 kB / 484.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007901/0.3013, allocations: 268.7 kB / 484.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.3024, allocations: 291.6 kB / 485 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.3036, allocations: 0.9512 MB / 485.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.305, allocations: 199.9 kB / 486.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3052, allocations: 63.98 kB / 486.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.3052, allocations: 4 kB / 486.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002545/0.3077, allocations: 1.534 MB / 487.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3078, allocations: 8 kB / 487.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005612/0.3083, allocations: 239.6 kB / 488 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009006/0.3092, allocations: 259.6 kB / 488.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007724/0.31, allocations: 0.8333 MB / 489.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3114, allocations: 159.9 kB / 489.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.714e-05/0.3115, allocations: 56 kB / 489.3 MB, free: 6.137 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: 21 (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,$PRE.ECU.hysteresis.y,ECU.hysteresis.y,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 (161): * Single equations (assignments): 156 * 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.001012/0.3125, allocations: 0.6606 MB / 489.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002682/0.3128, allocations: 178 kB / 490.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003164/0.3159, allocations: 1.76 MB / 491.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.316, allocations: 12 kB / 491.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.316, allocations: 4 kB / 491.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.316, allocations: 3.984 kB / 491.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006523/0.3225, allocations: 3.936 MB / 495.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.3226, allocations: 4 kB / 495.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.3236, allocations: 235.8 kB / 496.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007701/0.3244, allocations: 288.2 kB / 496.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-05/0.3245, allocations: 39.98 kB / 496.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002178/0.3267, allocations: 2.356 MB / 498.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.3267, allocations: 8.359 kB / 498.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004415/0.3311, allocations: 2.614 MB / 0.4896 GB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007868/0.3319, allocations: 402.8 kB / 0.49 GB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/0.3321, allocations: 44 kB / 0.49 GB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.3333, allocations: 175.9 kB / 0.4902 GB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/0.3335, allocations: 133.1 kB / 0.4903 GB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.861e-05/0.3336, allocations: 55.97 kB / 0.4904 GB, free: 8.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001323/0.335, allocations: 0.9915 MB / 0.4914 GB, free: 7.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.335, allocations: 0 / 0.4914 GB, free: 7.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001904/0.3369, allocations: 0.6913 MB / 0.492 GB, free: 7.137 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: 10 ($whenCondition1,dragForce.startForward,dragForce.startBackward,dragForce.locked,dragForce.mode,ECU.hysteresis.y,mot.limTau.state,gen.limTau.state,driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled) * Number of discrete states: 8 (driver.driveCyc.nextTimeEvent,driver.driveCyc.nextTimeEventScaled,ECU.hysteresis.y,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 (114): * Single equations (assignments): 106 * 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.002227/0.3391, allocations: 1.001 MB / 0.493 GB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005129/0.3443, allocations: 2.746 MB / 0.4957 GB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.3443, allocations: 1.75 kB / 0.4957 GB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.3465, allocations: 1.205 MB / 0.4969 GB, free: 2.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.3484, allocations: 292.6 kB / 0.4971 GB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009191/0.3576, allocations: 5.264 MB / 0.5023 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.3591, allocations: 1.491 MB / 0.5037 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001296/0.3604, allocations: 231.1 kB / 0.504 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.3607, allocations: 115.4 kB / 0.5041 GB, free: 11.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3607, allocations: 4 kB / 0.5041 GB, free: 11 MB / 382.1 MB Notification: Performance of Templates: time 0.2454/0.6061, allocations: 25.45 MB / 0.5289 GB, free: 80.24 MB / 382.1 MB make -j1 -f EHPTexamples_main_EHPTexamples.PSD.PSecu3.makefile (rm -f EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe ; mkfifo EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe ; head -c 1048576 < EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe >> ../files/EHPTexamples_main_EHPTexamples.PSD.PSecu3.sim & ./EHPTexamples_main_EHPTexamples.PSD.PSecu3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTexamples_main_EHPTexamples.PSD.PSecu3.pipe 2>&1)