Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.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.ConventionalAutomaticVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle") translateModel(VehicleInterfaces.Examples.ConventionalAutomaticVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001357/0.001357, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.472/1.472, allocations: 222.9 MB / 239.9 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2718/0.2718, allocations: 7.981 MB / 298.1 MB, free: 2.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.89 kB / 360.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.113, allocations: 51.2 MB / 411.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Examples.ConventionalAutomaticVehicle): time 0.3148/0.4279, allocations: 94.73 MB / 0.4942 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05325/0.4812, allocations: 18.05 MB / 0.5118 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02969/0.511, allocations: 449.1 kB / 0.5122 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003621/0.5147, allocations: 0.7074 MB / 0.5129 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.5195, allocations: 0.5756 MB / 0.5135 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009384/0.5289, allocations: 4.134 MB / 0.5175 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006202/0.5352, allocations: 3.257 MB / 0.5207 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006646/0.5418, allocations: 3.965 MB / 0.5246 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.5444, allocations: 1.356 MB / 0.5259 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0029/0.5473, allocations: 1.514 MB / 0.5274 GB, free: 5.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006979/0.5481, allocations: 364 kB / 0.5277 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008839/0.549, allocations: 417.2 kB / 0.5281 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006075/0.5496, allocations: 0.8029 MB / 0.5289 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.551, allocations: 1.564 MB / 0.5304 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003736/0.5547, allocations: 3.948 MB / 0.5343 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.5548, allocations: 0 / 0.5343 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.5548, allocations: 0 / 0.5343 GB, free: 15.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.5549, allocations: 3.938 kB / 0.5343 GB, free: 15.45 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.005752/0.5606, allocations: 3.102 MB / 0.5373 GB, free: 12.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5607, allocations: 8.031 kB / 0.5373 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004645/0.5612, allocations: 316.1 kB / 0.5376 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.5638, allocations: 1.623 MB / 0.5392 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.5639, allocations: 188.8 kB / 0.5394 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004149/0.5643, allocations: 259.7 kB / 0.5397 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/0.5691, allocations: 2.668 MB / 0.5423 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.93e-05/0.5692, allocations: 27.8 kB / 0.5423 GB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001984/0.5694, allocations: 96 kB / 0.5424 GB, free: 6.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.5695, allocations: 111.9 kB / 0.5425 GB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003423/0.573, allocations: 1.964 MB / 0.5444 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01484/0.5878, allocations: 10.19 MB / 0.5544 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.5895, allocations: 0.9277 MB / 0.5553 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008915/0.5904, allocations: 0.5685 MB / 0.5558 GB, free: 8.754 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.37e-05/0.5905, allocations: 13 kB / 0.5558 GB, free: 8.738 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.5905, allocations: 47.48 kB / 0.5559 GB, free: 8.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=99): time 2.464e-06/0.5906, allocations: 0 / 0.5559 GB, free: 8.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=125): time 0.01127/0.6018, allocations: 5.632 MB / 0.5614 GB, free: 2.918 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.6019, allocations: 94.05 kB / 0.5615 GB, free: 2.809 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.6044, allocations: 1.887 MB / 0.5633 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/0.6046, allocations: 69.69 kB / 0.5634 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.6056, allocations: 1.337 MB / 0.5647 GB, free: 15.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003913/0.606, allocations: 438.2 kB / 0.5651 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005889/0.6066, allocations: 423.4 kB / 0.5655 GB, free: 14.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.6068, allocations: 309.1 kB / 0.5658 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.6079, allocations: 0.6992 MB / 0.5665 GB, free: 13.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.6096, allocations: 1.574 MB / 0.568 GB, free: 11.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/0.6122, allocations: 2.173 MB / 0.5701 GB, free: 9.012 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.6122, allocations: 8 kB / 0.5701 GB, free: 9.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004739/0.617, allocations: 2.738 MB / 0.5728 GB, free: 6.254 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.6171, allocations: 24.94 kB / 0.5728 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.572e-05/0.6171, allocations: 28 kB / 0.5729 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/0.6193, allocations: 1.352 MB / 0.5742 GB, free: 4.848 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.6206, allocations: 419.2 kB / 0.5746 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.6228, allocations: 1.711 MB / 0.5763 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.6246, allocations: 207.6 kB / 0.5765 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.6248, allocations: 108 kB / 0.5766 GB, free: 2.391 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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,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 (231): * Single equations (assignments): 230 * 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.001144/0.6259, allocations: 0.6298 MB / 0.5772 GB, free: 1.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.6263, allocations: 217.3 kB / 0.5774 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2798/0.9061, allocations: 1.746 MB / 0.5791 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/0.9062, allocations: 14.75 kB / 0.5791 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.9062, allocations: 3.844 kB / 0.5791 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-05/0.9062, allocations: 6.312 kB / 0.5791 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007813/0.9141, allocations: 4.456 MB / 0.5835 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.9141, allocations: 2.625 kB / 0.5835 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/0.9147, allocations: 151.3 kB / 0.5836 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/0.9164, allocations: 1.233 MB / 0.5848 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.9166, allocations: 43.8 kB / 0.5849 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00181/0.9184, allocations: 1.517 MB / 0.5863 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.9184, allocations: 3.281 kB / 0.5863 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004046/0.9224, allocations: 2.589 MB / 0.5889 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009404/0.9234, allocations: 424.6 kB / 0.5893 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.9237, allocations: 48.91 kB / 0.5893 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008888/0.9246, allocations: 95.67 kB / 0.5894 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004328/0.925, allocations: 196 kB / 0.5896 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.885e-05/0.9251, allocations: 48.73 kB / 0.5896 GB, free: 127.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001874/0.927, allocations: 1.219 MB / 0.5908 GB, free: 127.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.927, allocations: 0 / 0.5908 GB, free: 127.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001773/0.9288, allocations: 471.4 kB / 0.5913 GB, free: 127 MB / 446.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,controlBus.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.0004068/0.9292, allocations: 198.5 kB / 0.5915 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00376/0.933, allocations: 1.805 MB / 0.5932 GB, free: 126.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.933, allocations: 3.828 kB / 0.5932 GB, free: 126.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.9345, allocations: 0.8113 MB / 0.594 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/0.9365, allocations: 336.2 kB / 0.5944 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008964/0.9455, allocations: 5.275 MB / 0.5995 GB, free: 122.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.9467, allocations: 1.578 MB / 0.601 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00117/0.9478, allocations: 309.3 kB / 0.6013 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.9481, allocations: 137.5 kB / 0.6015 GB, free: 122 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.9481, allocations: 0 / 0.6015 GB, free: 122 MB / 446.1 MB Notification: Performance of Templates: time 0.06205/1.01, allocations: 28.49 MB / 0.6293 GB, free: 115.7 MB / 446.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.ConventionalAutomaticVehicle.pipe 2>&1)