Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.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.ConventionalAutomaticVehicleExternalDriver,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver") translateModel(VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 109.1 kB / 16.41 MB, free: 6.449 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.001153/0.001153, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.215/1.215, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.03926/0.03926, allocations: 8.002 MB / 299.2 MB, free: 7.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 63.91 kB / 413.7 MB, free: 22.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.0807, allocations: 51.21 MB / 465 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver): time 0.02111/0.1018, allocations: 21.86 MB / 486.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.113, allocations: 5.852 MB / 492.7 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003202/0.1162, allocations: 175.4 kB / 492.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002228/0.1185, allocations: 0.8803 MB / 493.7 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002358/0.1208, allocations: 0.7322 MB / 494.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007057/0.1279, allocations: 4.341 MB / 498.8 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003805/0.1317, allocations: 3.415 MB / 0.4904 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005519/0.1373, allocations: 4.174 MB / 0.4945 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.1391, allocations: 1.417 MB / 0.4959 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001607/0.1407, allocations: 1.564 MB / 0.4974 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003941/0.1411, allocations: 380 kB / 0.4978 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005477/0.1416, allocations: 439.9 kB / 0.4982 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006067/0.1423, allocations: 0.8412 MB / 0.499 GB, free: 5.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.1436, allocations: 1.644 MB / 0.5006 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1859/0.3295, allocations: 4.212 MB / 0.5047 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.3295, allocations: 3.969 kB / 0.5048 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3295, allocations: 0.625 kB / 0.5048 GB, free: 15.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001495/0.3297, allocations: 0 / 0.5048 GB, free: 15.14 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.005623/0.3353, allocations: 3.341 MB / 0.508 GB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3354, allocations: 11.34 kB / 0.508 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004911/0.3359, allocations: 350.5 kB / 0.5084 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.3383, allocations: 1.766 MB / 0.5101 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.3384, allocations: 196.9 kB / 0.5103 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004242/0.3388, allocations: 274.3 kB / 0.5105 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005092/0.3439, allocations: 2.856 MB / 0.5133 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.963e-05/0.344, allocations: 31.03 kB / 0.5134 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.3442, allocations: 109.8 kB / 0.5135 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3444, allocations: 129.6 kB / 0.5136 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003711/0.3481, allocations: 2.049 MB / 0.5156 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01161/0.3597, allocations: 11.14 MB / 0.5265 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3611, allocations: 0.9198 MB / 0.5274 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007975/0.3619, allocations: 0.5661 MB / 0.5279 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.355e-05/0.362, allocations: 14.27 kB / 0.5279 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.362, allocations: 38.25 kB / 0.528 GB, free: 6.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=99): time 2.235e-06/0.362, allocations: 0 / 0.528 GB, free: 6.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.009849/0.3719, allocations: 5.794 MB / 0.5336 GB, free: 3.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.3719, allocations: 91.36 kB / 0.5337 GB, free: 3.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.3739, allocations: 2.033 MB / 0.5357 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.622e-05/0.374, allocations: 65.36 kB / 0.5358 GB, free: 2.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006952/0.3747, allocations: 1.472 MB / 0.5372 GB, free: 1.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.375, allocations: 459.2 kB / 0.5376 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004663/0.3754, allocations: 459.5 kB / 0.5381 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.206e-05/0.3755, allocations: 312 kB / 0.5384 GB, free: 208 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.3766, allocations: 0.729 MB / 0.5391 GB, free: 0 / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.3783, allocations: 1.691 MB / 0.5407 GB, free: 14.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.3809, allocations: 2.297 MB / 0.543 GB, free: 12.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.3809, allocations: 8.375 kB / 0.543 GB, free: 12.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004319/0.3852, allocations: 2.865 MB / 0.5458 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.3853, allocations: 24.06 kB / 0.5458 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.3853, allocations: 39.83 kB / 0.5458 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/0.3873, allocations: 1.345 MB / 0.5472 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.3885, allocations: 444.2 kB / 0.5476 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.3907, allocations: 1.73 MB / 0.5493 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/0.3926, allocations: 208.5 kB / 0.5495 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.3927, allocations: 116 kB / 0.5496 GB, free: 7.129 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 57 (driverEnvironment.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,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],accessories.inertia.cylinderColor[3],accessories.inertia.cylinderColor[2],accessories.inertia.cylinderColor[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],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,41)} Notification: Performance of prepare postOptimizeDAE: time 0.00106/0.3938, allocations: 0.6665 MB / 0.5502 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/0.3942, allocations: 238.4 kB / 0.5505 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003122/0.3973, allocations: 1.749 MB / 0.5522 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.3973, allocations: 19.97 kB / 0.5522 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3973, allocations: 0 / 0.5522 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3974, allocations: 9.734 kB / 0.5522 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007388/0.4048, allocations: 4.513 MB / 0.5566 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.4048, allocations: 0 / 0.5566 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006016/0.4054, allocations: 153.1 kB / 0.5567 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/0.4072, allocations: 1.225 MB / 0.5579 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/0.4073, allocations: 43.95 kB / 0.558 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.4094, allocations: 1.516 MB / 0.5595 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4094, allocations: 4 kB / 0.5595 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.4136, allocations: 2.616 MB / 0.562 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009237/0.4145, allocations: 461 kB / 0.5625 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.4148, allocations: 52 kB / 0.5625 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/0.4157, allocations: 91.89 kB / 0.5626 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.416, allocations: 196.6 kB / 0.5628 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.265e-05/0.4161, allocations: 55.23 kB / 0.5628 GB, free: 9.477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001724/0.4179, allocations: 1.304 MB / 0.5641 GB, free: 8.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4179, allocations: 0 / 0.5641 GB, free: 8.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001653/0.4195, allocations: 480 kB / 0.5646 GB, free: 7.691 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (chassis.body.s,chassis.dragForces.v_rel) * 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,driverEnvironment.driverBus.ignition) * Number of discrete states: 12 (brakes.brake_3.mode,brakes.brake_3.startForward,brakes.brake_3.startBackward,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_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 (89): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,34)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003256/0.4199, allocations: 195.8 kB / 0.5648 GB, free: 7.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.423, allocations: 1.82 MB / 0.5665 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.423, allocations: 384 / 0.5665 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/0.4245, allocations: 0.813 MB / 0.5673 GB, free: 4.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.4262, allocations: 351.7 kB / 0.5677 GB, free: 4.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008282/0.4345, allocations: 4.55 MB / 0.5721 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.4359, allocations: 1.627 MB / 0.5737 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/0.4363, allocations: 155.4 kB / 0.5738 GB, free: 14.27 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4363, allocations: 0 / 0.5738 GB, free: 14.27 MB / 430.1 MB Notification: Performance of Templates: time 0.04908/0.4854, allocations: 41.76 MB / 0.6146 GB, free: 4.547 MB / 462.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicleExternalDriver.pipe 2>&1)