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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 173.5 kB / 15.78 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.3 MB / 239.8 MB, free: 15.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008482/0.000848, allocations: 96.55 kB / 290.9 MB, free: 4.547 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03938/0.03938, allocations: 7.997 MB / 350 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004164, allocations: 12 kB / 412.7 MB, free: 6.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3072, allocations: 52.2 MB / 464.9 MB, free: 70.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.05974/0.367, allocations: 81.25 MB / 0.5333 GB, free: 5.281 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04394/0.411, allocations: 16.61 MB / 0.5496 GB, free: 4.613 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01804/0.4291, allocations: 426.9 kB / 0.55 GB, free: 4.195 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.4414, allocations: 3.055 MB / 0.5529 GB, free: 1.125 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3289/0.7704, allocations: 7.475 MB / 0.5602 GB, free: 2.473 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005808/0.7762, allocations: 0.747 MB / 0.561 GB, free: 2.461 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007399/0.7836, allocations: 3.152 MB / 0.5641 GB, free: 2.457 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005752/0.7894, allocations: 2.507 MB / 0.5665 GB, free: 2.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.7923, allocations: 1.072 MB / 0.5676 GB, free: 2.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002977/0.7953, allocations: 1.251 MB / 0.5688 GB, free: 2.086 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006787/0.796, allocations: 129.8 kB / 0.5689 GB, free: 2.086 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.7973, allocations: 172.7 kB / 0.5691 GB, free: 2.086 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006349/0.7979, allocations: 0.5595 MB / 0.5696 GB, free: 2.082 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.799, allocations: 0.5918 MB / 0.5702 GB, free: 2.051 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004397/0.8034, allocations: 3.292 MB / 0.5734 GB, free: 1.812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.8035, allocations: 3.062 kB / 0.5734 GB, free: 1.812 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.8035, allocations: 0 / 0.5734 GB, free: 1.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002126/0.8037, allocations: 0 / 0.5734 GB, free: 1.812 MB / 378.7 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.007238/0.8109, allocations: 2.826 MB / 0.5762 GB, free: 16.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.811, allocations: 8.562 kB / 0.5762 GB, free: 16.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009791/0.812, allocations: 339.4 kB / 0.5765 GB, free: 16.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003133/0.8151, allocations: 1.667 MB / 0.5781 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.8153, allocations: 193.9 kB / 0.5783 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004225/0.8157, allocations: 280.6 kB / 0.5786 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005338/0.8211, allocations: 2.871 MB / 0.5814 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.8212, allocations: 25.8 kB / 0.5814 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.8214, allocations: 110.5 kB / 0.5815 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.8215, allocations: 117.1 kB / 0.5816 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004116/0.8257, allocations: 2.12 MB / 0.5837 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01758/0.8433, allocations: 10.91 MB / 0.5943 GB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.8451, allocations: 0.9437 MB / 0.5953 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.8463, allocations: 0.6477 MB / 0.5959 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.658e-05/0.8463, allocations: 9.906 kB / 0.5959 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/0.8464, allocations: 48.5 kB / 0.596 GB, free: 7.766 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 4.208e-06/0.8464, allocations: 0 / 0.596 GB, free: 7.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.01663/0.863, allocations: 6.291 MB / 0.6021 GB, free: 5.309 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.8632, allocations: 96.67 kB / 0.6022 GB, free: 5.211 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004284/0.8675, allocations: 1.95 MB / 0.6041 GB, free: 4.648 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004771/0.868, allocations: 68.69 kB / 0.6042 GB, free: 4.613 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.8697, allocations: 1.427 MB / 0.6056 GB, free: 3.824 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000799/0.8705, allocations: 467 kB / 0.606 GB, free: 3.508 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.8707, allocations: 49.67 kB / 0.606 GB, free: 3.504 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002401/0.8709, allocations: 388.9 kB / 0.6064 GB, free: 3.176 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00193/0.8729, allocations: 0.7324 MB / 0.6071 GB, free: 3.078 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002474/0.8754, allocations: 1.624 MB / 0.6087 GB, free: 1.828 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.8768, allocations: 0.8512 MB / 0.6095 GB, free: 1.324 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/0.8769, allocations: 15 kB / 0.6096 GB, free: 1.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.006875/0.8837, allocations: 2.816 MB / 0.6123 GB, free: 15.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/0.8838, allocations: 20 kB / 0.6123 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.92e-05/0.8839, allocations: 28 kB / 0.6124 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002916/0.8868, allocations: 1.298 MB / 0.6136 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/0.8892, allocations: 466.5 kB / 0.6141 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.8939, allocations: 2.908 MB / 0.6169 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/0.8977, allocations: 266.8 kB / 0.6172 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005146/0.8982, allocations: 110.2 kB / 0.6173 GB, free: 11.11 MB / 410.7 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_1.free,$PRE.brakes.brake_1.startForward,brakes.brake_1.startForward,$PRE.brakes.brake_1.startBackward,brakes.brake_1.startBackward,brakes.brake_1.locked,$PRE.brakes.brake_1.mode,brakes.brake_1.mode,brakes.brake_2.free,$PRE.brakes.brake_2.startForward,brakes.brake_2.startForward,$PRE.brakes.brake_2.startBackward,brakes.brake_2.startBackward,brakes.brake_2.locked,$PRE.brakes.brake_2.mode,brakes.brake_2.mode,brakes.brake_3.free,$PRE.brakes.brake_3.startForward,brakes.brake_3.startForward,$PRE.brakes.brake_3.startBackward,brakes.brake_3.startBackward,brakes.brake_3.locked,$PRE.brakes.brake_3.mode,brakes.brake_3.mode,brakes.brake_4.free,$PRE.brakes.brake_4.startForward,brakes.brake_4.startForward,$PRE.brakes.brake_4.startBackward,brakes.brake_4.startBackward,brakes.brake_4.locked,$PRE.brakes.brake_4.mode,brakes.brake_4.mode,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 (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%) 2} * Non-linear torn systems: 1 {4 29} Notification: Performance of prepare postOptimizeDAE: time 0.002464/0.9007, allocations: 0.6528 MB / 0.6179 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/0.9018, allocations: 229.1 kB / 0.6181 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005817/0.9076, allocations: 1.756 MB / 0.6198 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/0.9076, allocations: 14.53 kB / 0.6199 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.9077, allocations: 4 kB / 0.6199 GB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.9077, allocations: 7.969 kB / 0.6199 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.9184, allocations: 4.576 MB / 0.6243 GB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.9184, allocations: 0 / 0.6243 GB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008644/0.9193, allocations: 205.8 kB / 0.6245 GB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.9213, allocations: 1.187 MB / 0.6257 GB, free: 5.027 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/0.9214, allocations: 43.7 kB / 0.6257 GB, free: 5.004 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003091/0.9245, allocations: 2.73 MB / 0.6284 GB, free: 2.555 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.9245, allocations: 4 kB / 0.6284 GB, free: 2.551 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.9294, allocations: 2.638 MB / 0.631 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.9306, allocations: 443.7 kB / 0.6314 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006119/0.9313, allocations: 50.88 kB / 0.6315 GB, free: 356 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.9327, allocations: 142.5 kB / 0.6316 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005159/0.9332, allocations: 243.1 kB / 0.6318 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.9334, allocations: 55.33 kB / 0.6319 GB, free: 15.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002527/0.9359, allocations: 1.257 MB / 0.6331 GB, free: 15.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.575e-06/0.9359, allocations: 0 / 0.6331 GB, free: 15.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002558/0.9385, allocations: 0.5025 MB / 0.6336 GB, free: 14.61 MB / 426.7 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 (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%) 2} * Non-linear torn systems: 1 {4 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004617/0.939, allocations: 187.8 kB / 0.6338 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004308/0.9433, allocations: 1.95 MB / 0.6357 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.9433, allocations: 0 / 0.6357 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001991/0.9453, allocations: 0.9848 MB / 0.6366 GB, free: 12.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/0.9481, allocations: 319.9 kB / 0.6369 GB, free: 12.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.9619, allocations: 5.982 MB / 0.6428 GB, free: 6.691 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/0.9642, allocations: 1.652 MB / 0.6444 GB, free: 5.043 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006401/0.9649, allocations: 145.9 kB / 0.6445 GB, free: 4.902 MB / 426.7 MB Notification: Performance of SimCode: time 1.362e-06/0.9649, allocations: 0 / 0.6445 GB, free: 4.902 MB / 426.7 MB Notification: Performance of Templates: time 0.07665/1.042, allocations: 54.46 MB / 0.6977 GB, free: 15.15 MB / 490.7 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)