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.001048/0.001048, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001208/0.001208, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 240 MB, free: 5.211 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1906/0.1906, allocations: 7.99 MB / 299.1 MB, free: 3.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005393/0.0005397, allocations: 16 kB / 361.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1688, allocations: 52.2 MB / 414 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.SeriesHybrid): time 0.4017/0.5705, allocations: 81.23 MB / 495.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05731/0.6279, allocations: 16.6 MB / 0.4998 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02927/0.6572, allocations: 428.7 kB / 0.5002 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01567/0.6729, allocations: 3.06 MB / 0.5032 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03377/0.7067, allocations: 7.478 MB / 0.5105 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006614/0.7134, allocations: 0.7455 MB / 0.5112 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008521/0.7219, allocations: 3.156 MB / 0.5143 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007013/0.729, allocations: 2.509 MB / 0.5168 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003928/0.7329, allocations: 1.067 MB / 0.5178 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003368/0.7363, allocations: 1.251 MB / 0.519 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005417/0.7369, allocations: 132 kB / 0.5192 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009623/0.7378, allocations: 179.9 kB / 0.5193 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005705/0.7384, allocations: 0.5563 MB / 0.5199 GB, free: 212 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.7397, allocations: 0.59 MB / 0.5204 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005432/0.7451, allocations: 3.296 MB / 0.5237 GB, free: 12.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.365e-05/0.7452, allocations: 3.984 kB / 0.5237 GB, free: 12.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.809e-06/0.7452, allocations: 0 / 0.5237 GB, free: 12.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002921/0.7455, allocations: 0 / 0.5237 GB, free: 12.3 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.007845/0.7533, allocations: 2.823 MB / 0.5264 GB, free: 9.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.7534, allocations: 12.03 kB / 0.5264 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006833/0.7541, allocations: 343.8 kB / 0.5268 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.7569, allocations: 1.651 MB / 0.5284 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.757, allocations: 197.3 kB / 0.5286 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/0.7575, allocations: 287.8 kB / 0.5288 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005316/0.7628, allocations: 2.877 MB / 0.5316 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.825e-05/0.7629, allocations: 27.73 kB / 0.5317 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.7632, allocations: 108 kB / 0.5318 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.7633, allocations: 120 kB / 0.5319 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004305/0.7676, allocations: 2.112 MB / 0.534 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01715/0.7848, allocations: 10.91 MB / 0.5446 GB, free: 6.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.7865, allocations: 0.9369 MB / 0.5455 GB, free: 5.266 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.7877, allocations: 0.6526 MB / 0.5462 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.714e-05/0.7878, allocations: 16.98 kB / 0.5462 GB, free: 4.598 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.7878, allocations: 51.5 kB / 0.5462 GB, free: 4.535 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 5.14e-06/0.7878, allocations: 3.984 kB / 0.5462 GB, free: 4.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01337/0.8012, allocations: 6.267 MB / 0.5524 GB, free: 14.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.8013, allocations: 94.42 kB / 0.5524 GB, free: 13.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/0.8043, allocations: 1.961 MB / 0.5544 GB, free: 12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.8044, allocations: 65.69 kB / 0.5544 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.8059, allocations: 1.427 MB / 0.5558 GB, free: 10.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005517/0.8065, allocations: 469.7 kB / 0.5563 GB, free: 10.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.8066, allocations: 44 kB / 0.5563 GB, free: 9.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.8069, allocations: 390.5 kB / 0.5567 GB, free: 9.594 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.8082, allocations: 0.7307 MB / 0.5574 GB, free: 8.859 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002569/0.8108, allocations: 1.619 MB / 0.559 GB, free: 6.816 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.8124, allocations: 0.8573 MB / 0.5598 GB, free: 5.957 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.486e-05/0.8125, allocations: 8 kB / 0.5598 GB, free: 5.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005408/0.8179, allocations: 2.829 MB / 0.5626 GB, free: 3.105 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.8179, allocations: 20 kB / 0.5626 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.256e-05/0.818, allocations: 28 kB / 0.5626 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.8201, allocations: 1.299 MB / 0.5639 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.8216, allocations: 459.2 kB / 0.5643 GB, free: 1.305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/0.8249, allocations: 2.914 MB / 0.5672 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00223/0.8272, allocations: 255.5 kB / 0.5674 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.8274, allocations: 116 kB / 0.5675 GB, free: 13.86 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_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.001687/0.8291, allocations: 0.6434 MB / 0.5682 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004247/0.8295, allocations: 229 kB / 0.5684 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.8327, allocations: 1.764 MB / 0.5701 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.8328, allocations: 16 kB / 0.5701 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.8328, allocations: 0 / 0.5701 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.8328, allocations: 11.97 kB / 0.5701 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008999/0.8418, allocations: 4.587 MB / 0.5746 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.8418, allocations: 0 / 0.5746 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007869/0.8426, allocations: 199.7 kB / 0.5748 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/0.8448, allocations: 1.178 MB / 0.5759 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.8449, allocations: 43.95 kB / 0.576 GB, free: 5.047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003155/0.8481, allocations: 2.733 MB / 0.5787 GB, free: 2.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.8481, allocations: 3.938 kB / 0.5787 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3979/1.246, allocations: 2.631 MB / 0.5812 GB, free: 59.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/1.247, allocations: 445.1 kB / 0.5817 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/1.248, allocations: 53.16 kB / 0.5817 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/1.249, allocations: 138.8 kB / 0.5818 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/1.249, allocations: 247.7 kB / 0.5821 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.985e-05/1.249, allocations: 50.27 kB / 0.5821 GB, free: 59.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002079/1.252, allocations: 1.26 MB / 0.5834 GB, free: 59.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.484e-06/1.252, allocations: 0 / 0.5834 GB, free: 59.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002215/1.254, allocations: 0.4961 MB / 0.5838 GB, free: 59.65 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 (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.0003703/1.254, allocations: 186.1 kB / 0.584 GB, free: 59.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003445/1.258, allocations: 1.952 MB / 0.5859 GB, free: 59.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.258, allocations: 0 / 0.5859 GB, free: 59.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/1.259, allocations: 0.984 MB / 0.5869 GB, free: 59.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/1.261, allocations: 329 kB / 0.5872 GB, free: 59.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/1.272, allocations: 5.892 MB / 0.593 GB, free: 56.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/1.274, allocations: 1.655 MB / 0.5946 GB, free: 55.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001393/1.275, allocations: 335.9 kB / 0.5949 GB, free: 55.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/1.275, allocations: 132.5 kB / 0.595 GB, free: 55.68 MB / 446.1 MB Notification: Performance of SimCode: time 2.385e-06/1.275, allocations: 2.5 kB / 0.595 GB, free: 55.68 MB / 446.1 MB Notification: Performance of Templates: time 0.05893/1.334, allocations: 27.14 MB / 0.6215 GB, free: 47.66 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)