Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.conf.json 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/VehicleInterfaces 2.0.1-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/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) Running command: translateModel(VehicleInterfaces.Examples.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") translateModel(VehicleInterfaces.Examples.SeriesHybrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009001/0.009001, allocations: 100.3 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 196.6 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2348/0.2348, allocations: 7.971 MB / 298.6 MB, free: 2.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 60.14 kB / 360.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1661, allocations: 51.21 MB / 411.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.4492/0.6153, allocations: 89.41 MB / 0.4894 GB, free: 2.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06246/0.6779, allocations: 17.2 MB / 0.5062 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03493/0.7129, allocations: 432.2 kB / 0.5067 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005174/0.7181, allocations: 0.755 MB / 0.5074 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005405/0.7236, allocations: 0.6446 MB / 0.508 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01087/0.7345, allocations: 4.211 MB / 0.5121 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009518/0.7441, allocations: 3.438 MB / 0.5155 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008139/0.7523, allocations: 3.172 MB / 0.5186 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003786/0.7561, allocations: 1.266 MB / 0.5198 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004579/0.7607, allocations: 1.539 MB / 0.5213 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009746/0.7617, allocations: 224 kB / 0.5215 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.7632, allocations: 295.2 kB / 0.5218 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.7643, allocations: 0.7016 MB / 0.5225 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002853/0.7672, allocations: 1.547 MB / 0.524 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004564/0.7718, allocations: 3.39 MB / 0.5273 GB, free: 7.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.272e-05/0.7718, allocations: 4 kB / 0.5273 GB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.7718, allocations: 0 / 0.5273 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001232/0.7719, allocations: 0 / 0.5273 GB, free: 7.18 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 704 * Number of variables: 704 Notification: Performance of Generate backend data structure: time 0.008217/0.7802, allocations: 3.337 MB / 0.5306 GB, free: 3.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.965e-05/0.7803, allocations: 8.031 kB / 0.5306 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000677/0.7809, allocations: 343.7 kB / 0.5309 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/0.784, allocations: 1.718 MB / 0.5326 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.7842, allocations: 201.3 kB / 0.5328 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004371/0.7846, allocations: 279.6 kB / 0.5331 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005787/0.7904, allocations: 2.886 MB / 0.5359 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.7905, allocations: 23.75 kB / 0.5359 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000243/0.7908, allocations: 116 kB / 0.536 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.791, allocations: 116 kB / 0.5361 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004538/0.7955, allocations: 2.126 MB / 0.5382 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.019/0.8145, allocations: 10.83 MB / 0.5488 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.8165, allocations: 0.9443 MB / 0.5497 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.8178, allocations: 0.6441 MB / 0.5503 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.744e-05/0.8179, allocations: 13 kB / 0.5503 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/0.818, allocations: 43.56 kB / 0.5504 GB, free: 14.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=114): time 4.088e-06/0.818, allocations: 0 / 0.5504 GB, free: 14.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=134): time 0.01431/0.8323, allocations: 6.118 MB / 0.5564 GB, free: 8.625 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/0.8325, allocations: 90.42 kB / 0.5564 GB, free: 8.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003428/0.8359, allocations: 1.965 MB / 0.5584 GB, free: 6.523 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.8361, allocations: 73.69 kB / 0.5584 GB, free: 6.445 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.8376, allocations: 1.423 MB / 0.5598 GB, free: 5.004 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000514/0.8381, allocations: 473.7 kB / 0.5603 GB, free: 4.535 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007783/0.8389, allocations: 447.8 kB / 0.5607 GB, free: 4.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.8391, allocations: 301.1 kB / 0.561 GB, free: 3.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.8406, allocations: 0.7268 MB / 0.5617 GB, free: 3.062 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/0.8429, allocations: 1.63 MB / 0.5633 GB, free: 1.008 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003549/0.8464, allocations: 2.235 MB / 0.5655 GB, free: 14.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/0.8465, allocations: 8 kB / 0.5655 GB, free: 14.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005765/0.8522, allocations: 2.825 MB / 0.5682 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.8523, allocations: 24.55 kB / 0.5683 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-05/0.8524, allocations: 28 kB / 0.5683 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002231/0.8546, allocations: 1.295 MB / 0.5696 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.8561, allocations: 467.2 kB / 0.57 GB, free: 9.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.8597, allocations: 2.902 MB / 0.5728 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/0.8621, allocations: 207.5 kB / 0.573 GB, free: 6.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.8623, allocations: 108 kB / 0.5731 GB, free: 6.316 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 57 (controlBus.driverBus.ignition,brakes.brake_4.mode,$PRE.brakes.brake_4.mode,brakes.brake_4.locked,brakes.brake_4.startBackward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startForward,brakes.brake_4.free,brakes.brake_3.mode,$PRE.brakes.brake_3.mode,brakes.brake_3.locked,brakes.brake_3.startBackward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startForward,brakes.brake_3.free,brakes.brake_2.mode,$PRE.brakes.brake_2.mode,brakes.brake_2.locked,brakes.brake_2.startBackward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startForward,brakes.brake_2.free,brakes.brake_1.mode,$PRE.brakes.brake_1.mode,brakes.brake_1.locked,brakes.brake_1.startBackward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startForward,brakes.brake_1.free,accessories.inertia.cylinderColor[3],accessories.inertia.cylinderColor[2],accessories.inertia.cylinderColor[1],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],driveline.leftHalfShaft.cylinderColor[3],driveline.leftHalfShaft.cylinderColor[2],driveline.leftHalfShaft.cylinderColor[1],driveline.rightHalfShaft.cylinderColor[3],driveline.rightHalfShaft.cylinderColor[2],driveline.rightHalfShaft.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,29)} Notification: Performance of prepare postOptimizeDAE: time 0.001796/0.8642, allocations: 0.6572 MB / 0.5738 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005221/0.8647, allocations: 229.1 kB / 0.574 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.8683, allocations: 1.756 MB / 0.5757 GB, free: 3.648 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.8683, allocations: 19.94 kB / 0.5757 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8683, allocations: 0 / 0.5757 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.8683, allocations: 7.969 kB / 0.5757 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3671/1.235, allocations: 4.515 MB / 0.5802 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/1.236, allocations: 4.5 kB / 0.5802 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009009/1.236, allocations: 200.3 kB / 0.5803 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/1.238, allocations: 1.184 MB / 0.5815 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/1.239, allocations: 44.3 kB / 0.5815 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003387/1.242, allocations: 2.732 MB / 0.5842 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.242, allocations: 4 kB / 0.5842 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005182/1.247, allocations: 2.638 MB / 0.5868 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.249, allocations: 438.8 kB / 0.5872 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/1.249, allocations: 51.47 kB / 0.5873 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009709/1.25, allocations: 102.8 kB / 0.5874 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004902/1.25, allocations: 206.9 kB / 0.5876 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/1.25, allocations: 54.95 kB / 0.5876 GB, free: 126.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002106/1.253, allocations: 1.274 MB / 0.5889 GB, free: 125.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.253, allocations: 0 / 0.5889 GB, free: 125.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002211/1.255, allocations: 0.4958 MB / 0.5893 GB, free: 125.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (chassis.body.s,chassis.dragForces.v_rel,engine.end_1.zeroTorque1D.phi,accessories.inertia.w,generator.inductor.i,driveMotor.inductor.i) * Number of discrete variables: 21 (brakes.brake_1.free,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_1.locked,brakes.brake_1.mode,brakes.brake_2.free,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_2.locked,brakes.brake_2.mode,brakes.brake_3.free,brakes.brake_3.startForward,brakes.brake_3.startBackward,brakes.brake_3.locked,brakes.brake_3.mode,brakes.brake_4.free,brakes.brake_4.startForward,brakes.brake_4.startBackward,brakes.brake_4.locked,brakes.brake_4.mode,controlBus.driverBus.ignition) * Number of discrete states: 12 (brakes.brake_1.mode,brakes.brake_1.startForward,brakes.brake_1.startBackward,brakes.brake_2.mode,brakes.brake_2.startForward,brakes.brake_2.startBackward,brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.startBackward,brakes.brake_4.mode,brakes.brake_4.startForward,brakes.brake_4.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,24)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004272/1.255, allocations: 198.7 kB / 0.5895 GB, free: 125.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003548/1.259, allocations: 1.96 MB / 0.5914 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.259, allocations: 0 / 0.5914 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/1.26, allocations: 0.9671 MB / 0.5924 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/1.262, allocations: 335.9 kB / 0.5927 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009993/1.272, allocations: 6.051 MB / 0.5986 GB, free: 121 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/1.274, allocations: 1.662 MB / 0.6002 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004496/1.274, allocations: 145.7 kB / 0.6004 GB, free: 120.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.693e-06/1.274, allocations: 3.828 kB / 0.6004 GB, free: 120.2 MB / 446.1 MB Notification: Performance of Templates: time 0.08776/1.362, allocations: 54.82 MB / 0.6539 GB, free: 91.54 MB / 446.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.SeriesHybrid.pipe 2>&1)