Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.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.FrontWheelDriveManualVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle") translateModel(VehicleInterfaces.Examples.FrontWheelDriveManualVehicle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002544/0.002543, allocations: 187.1 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 229.3 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 94.36 kB / 280.1 MB, free: 1.32 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1/package.mo): time 0.03813/0.03813, allocations: 7.843 MB / 338.7 MB, free: 6.793 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.558e-06/9.588e-06, allocations: 3.938 kB / 396.9 MB, free: 68.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.0935, allocations: 52.2 MB / 449.1 MB, free: 16.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4336, allocations: 118.6 MB / 0.5545 GB, free: 9.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.4338, allocations: 82.72 kB / 0.5545 GB, free: 9.895 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.7939/1.228, allocations: 220.7 MB / 0.77 GB, free: 24.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00081/1.229, allocations: 212 kB / 0.7702 GB, free: 24.65 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2768 * Number of variables: 2768 Notification: Performance of Generate backend data structure: time 0.02681/1.255, allocations: 8.329 MB / 0.7784 GB, free: 16.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/1.256, allocations: 11.97 kB / 0.7784 GB, free: 16.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008414/1.264, allocations: 1.35 MB / 0.7797 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02104/1.285, allocations: 7.634 MB / 0.7871 GB, free: 7.148 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000817/1.286, allocations: 0.5873 MB / 0.7877 GB, free: 6.527 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005126/1.291, allocations: 0.609 MB / 0.7883 GB, free: 5.918 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02829/1.319, allocations: 10.33 MB / 0.7984 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2926/1.612, allocations: 13.36 MB / 0.8114 GB, free: 128.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005701/1.613, allocations: 43.56 kB / 0.8115 GB, free: 128.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003002/1.616, allocations: 7.5 kB / 0.8115 GB, free: 128.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008771/1.616, allocations: 0.6814 MB / 0.8122 GB, free: 128.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08517/1.702, allocations: 42.45 MB / 0.8536 GB, free: 117.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00324/1.705, allocations: 1.406 MB / 0.855 GB, free: 116.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003261/1.708, allocations: 1.56 MB / 0.8565 GB, free: 116.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/1.723, allocations: 5.688 MB / 0.8621 GB, free: 113.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/1.723, allocations: 69.56 kB / 0.8621 GB, free: 113.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=190): time 4.769e-06/1.723, allocations: 0 / 0.8621 GB, free: 113.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=223): time 0.02562/1.749, allocations: 9.778 MB / 0.8717 GB, free: 108.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/1.749, allocations: 0.507 MB / 0.8722 GB, free: 107.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008684/1.758, allocations: 3.402 MB / 0.8755 GB, free: 106.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007354/1.759, allocations: 56.2 kB / 0.8756 GB, free: 106.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005138/1.764, allocations: 4.299 MB / 0.8798 GB, free: 103.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001408/1.765, allocations: 0.7759 MB / 0.8805 GB, free: 102.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008372/1.766, allocations: 3.484 kB / 0.8805 GB, free: 102.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005194/1.767, allocations: 0.5054 MB / 0.881 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003066/1.77, allocations: 1.417 MB / 0.8824 GB, free: 101.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00461/1.774, allocations: 4.22 MB / 0.8865 GB, free: 97.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004292/1.779, allocations: 2.222 MB / 0.8887 GB, free: 96.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/1.779, allocations: 33.58 kB / 0.8887 GB, free: 96.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01331/1.792, allocations: 5.483 MB / 0.8941 GB, free: 94.19 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/1.792, allocations: 11.27 kB / 0.8941 GB, free: 94.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002514/1.792, allocations: 99.78 kB / 0.8942 GB, free: 94.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/1.795, allocations: 1.419 MB / 0.8956 GB, free: 93.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/1.799, allocations: 1.117 MB / 0.8967 GB, free: 93.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004279/1.804, allocations: 2.239 MB / 0.8988 GB, free: 92.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005949/1.81, allocations: 407.2 kB / 0.8992 GB, free: 92.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0013/1.811, allocations: 308.6 kB / 0.8995 GB, free: 92.27 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transmission.clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_4.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brakes.brake_3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 438 * Number of states: 0 () * Number of discrete variables: 96 (transmission.clutch.free,$PRE.transmission.clutch.startForward,transmission.clutch.startForward,$PRE.transmission.clutch.startBackward,transmission.clutch.startBackward,$PRE.transmission.clutch.mode,transmission.clutch.mode,transmission.clutchLocked.y,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,driverEnvironment.ignition.y,transmission.shiftOutput.gear,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],powertrainMounts.chassisFrameToMount3.color[3],powertrainMounts.chassisFrameToMount3.color[2],powertrainMounts.chassisFrameToMount3.color[1],powertrainMounts.chassisFrameToMount2.color[3],powertrainMounts.chassisFrameToMount2.color[2],powertrainMounts.chassisFrameToMount2.color[1],powertrainMounts.chassisFrameToMount1.color[3],powertrainMounts.chassisFrameToMount1.color[2],powertrainMounts.chassisFrameToMount1.color[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],chassis.fixedTranslation3.color[3],chassis.fixedTranslation3.color[2],chassis.fixedTranslation3.color[1],chassis.fixedTranslation2.color[3],chassis.fixedTranslation2.color[2],chassis.fixedTranslation2.color[1],chassis.fixedTranslation1.color[3],chassis.fixedTranslation1.color[2],chassis.fixedTranslation1.color[1],chassis.fixedTranslation.color[3],chassis.fixedTranslation.color[2],chassis.fixedTranslation.color[1],chassis.ground.color[3],chassis.ground.color[2],chassis.ground.color[1],chassis.constraint.boxColor[3],chassis.constraint.boxColor[2],chassis.constraint.boxColor[1],chassis.body.sphereColor[3],chassis.body.sphereColor[2],chassis.body.sphereColor[1],engine.flywheel.cylinderColor[3],engine.flywheel.cylinderColor[2],engine.flywheel.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (624): * Single equations (assignments): 618 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 54} Notification: Performance of prepare postOptimizeDAE: time 0.002048/1.813, allocations: 423.1 kB / 0.8999 GB, free: 91.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.814, allocations: 415 kB / 0.9003 GB, free: 91.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006921/1.821, allocations: 2.97 MB / 0.9032 GB, free: 90.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/1.821, allocations: 22.69 kB / 0.9032 GB, free: 90.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.821, allocations: 3.906 kB / 0.9032 GB, free: 90.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.989e-05/1.821, allocations: 11.48 kB / 0.9033 GB, free: 90.53 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02773/1.849, allocations: 9.8 MB / 0.9128 GB, free: 86.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.311e-05/1.849, allocations: 7.906 kB / 0.9128 GB, free: 86.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/1.851, allocations: 332.5 kB / 0.9131 GB, free: 86.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002891/1.854, allocations: 1.205 MB / 0.9143 GB, free: 85.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005345/1.854, allocations: 45.97 kB / 0.9144 GB, free: 85.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/1.858, allocations: 1.876 MB / 0.9162 GB, free: 84.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/1.858, allocations: 13.88 kB / 0.9162 GB, free: 84.68 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008871/1.867, allocations: 5.224 MB / 0.9213 GB, free: 81.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003323/1.871, allocations: 0.7025 MB / 0.922 GB, free: 80.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002308/1.873, allocations: 51.84 kB / 0.9221 GB, free: 80.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005165/1.878, allocations: 195.8 kB / 0.9222 GB, free: 80.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/1.88, allocations: 336.3 kB / 0.9226 GB, free: 80.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006216/1.88, allocations: 100.2 kB / 0.9227 GB, free: 80.44 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.008414/1.889, allocations: 2.39 MB / 0.925 GB, free: 79.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01321/1.902, allocations: 1.182 MB / 0.9261 GB, free: 78.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 10 (transmission.clutch.phi_rel,transmission.clutch.w_rel,chassis.constraint.s,chassis.constraint.v,driverEnvironment.acceleratorPosition.s,driverEnvironment.acceleratorPosition.v,driverEnvironment.clutchPosition.s,driverEnvironment.clutchPosition.v,driverEnvironment.brakePosition.s,driverEnvironment.brakePosition.v) * Number of discrete variables: 26 (driverEnvironment.ignition.y,transmission.clutch.free,transmission.clutch.startForward,transmission.clutch.startBackward,transmission.clutch.mode,transmission.clutchLocked.y,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) * Number of discrete states: 15 (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,transmission.clutch.mode,transmission.clutch.startForward,transmission.clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 171 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.001318/1.903, allocations: 219.1 kB / 0.9264 GB, free: 78.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01015/1.914, allocations: 3.579 MB / 0.9298 GB, free: 74.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.028e-05/1.914, allocations: 4 kB / 0.9299 GB, free: 74.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006175/1.92, allocations: 1.772 MB / 0.9316 GB, free: 73.19 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005825/1.926, allocations: 488.5 kB / 0.932 GB, free: 72.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04421/1.97, allocations: 11.87 MB / 0.9436 GB, free: 61.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01763/1.988, allocations: 5.873 MB / 0.9494 GB, free: 57.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/1.988, allocations: 3 kB / 0.9494 GB, free: 57.49 MB / 458.7 MB Notification: Performance of Templates: time 0.1083/2.096, allocations: 46.72 MB / 0.995 GB, free: 14.85 MB / 458.7 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.sim & ./VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Examples.FrontWheelDriveManualVehicle.pipe 2>&1)