Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.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: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009981/0.0009981, allocations: 174.1 kB / 12.73 MB, free: 2.59 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.304/1.304, allocations: 221.4 MB / 234.6 MB, free: 14.38 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.0008295/0.0008297, allocations: 90.89 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04336/0.04336, allocations: 8.832 MB / 345.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.578e-05, allocations: 0 / 405.7 MB, free: 61.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.0976, allocations: 52.38 MB / 458 MB, free: 8.941 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3483/0.446, allocations: 87.97 MB / 0.5332 GB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.4463, allocations: 79.22 kB / 0.5333 GB, free: 13.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1897/0.636, allocations: 73.59 MB / 0.6052 GB, free: 10.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.636, allocations: 0 / 0.6052 GB, free: 10.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.6362, allocations: 60 kB / 0.6052 GB, free: 10.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.03149/0.6677, allocations: 4.615 MB / 0.6097 GB, free: 5.371 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.057e-05/0.6678, allocations: 8.031 kB / 0.6097 GB, free: 5.363 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004132/0.6719, allocations: 0.6687 MB / 0.6104 GB, free: 4.684 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01846/0.6904, allocations: 2 MB / 0.6123 GB, free: 2.676 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.7006, allocations: 2.012 MB / 0.6143 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005224/0.7012, allocations: 254.5 kB / 0.6146 GB, free: 372 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003224/0.7045, allocations: 335.8 kB / 0.6149 GB, free: 36 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.7372, allocations: 9.77 MB / 0.6244 GB, free: 5.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002546/0.7375, allocations: 35.64 kB / 0.6244 GB, free: 5.734 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00193/0.7394, allocations: 155.9 kB / 0.6246 GB, free: 5.582 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002288/0.7417, allocations: 1.104 MB / 0.6257 GB, free: 4.477 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02547/0.7672, allocations: 10.01 MB / 0.6354 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3183/1.086, allocations: 32.82 MB / 0.6675 GB, free: 97.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01789/1.104, allocations: 4.068 MB / 0.6715 GB, free: 96.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003012/1.107, allocations: 1.475 MB / 0.6729 GB, free: 96.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/1.118, allocations: 8.415 MB / 0.6811 GB, free: 91.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/1.118, allocations: 54.31 kB / 0.6812 GB, free: 91.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 6.953e-06/1.118, allocations: 0 / 0.6812 GB, free: 91.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=249): time 0.0232/1.141, allocations: 10.5 MB / 0.6914 GB, free: 90.02 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003517/1.145, allocations: 3.308 MB / 0.6947 GB, free: 88.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003804/1.148, allocations: 2.601 MB / 0.6972 GB, free: 88.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003739/1.149, allocations: 63.2 kB / 0.6973 GB, free: 88.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/1.15, allocations: 2.403 MB / 0.6996 GB, free: 86.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009692/1.151, allocations: 0.8991 MB / 0.7005 GB, free: 86.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/1.151, allocations: 105.1 kB / 0.7006 GB, free: 86.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002617/1.152, allocations: 0.5288 MB / 0.7011 GB, free: 85.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/1.154, allocations: 1.667 MB / 0.7027 GB, free: 85.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/1.157, allocations: 4.365 MB / 0.707 GB, free: 81.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00371/1.161, allocations: 2.765 MB / 0.7097 GB, free: 80.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.274e-05/1.161, allocations: 28.88 kB / 0.7097 GB, free: 80.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01086/1.172, allocations: 6.491 MB / 0.7161 GB, free: 78.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.053e-05/1.172, allocations: 43.34 kB / 0.7161 GB, free: 78.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/1.172, allocations: 94.22 kB / 0.7162 GB, free: 78.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/1.173, allocations: 0.534 MB / 0.7167 GB, free: 78.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003934/1.177, allocations: 1.158 MB / 0.7178 GB, free: 77.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006921/1.184, allocations: 6.337 MB / 0.724 GB, free: 73.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/1.189, allocations: 249.7 kB / 0.7243 GB, free: 73.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007597/1.19, allocations: 306.3 kB / 0.7246 GB, free: 73.78 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (630): * Single equations (assignments): 624 * Array equations: 4 * 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: 2 {(6,55.6%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007776/1.19, allocations: 489.9 kB / 0.725 GB, free: 73.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004461/1.191, allocations: 280.2 kB / 0.7253 GB, free: 73.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004937/1.196, allocations: 3.349 MB / 0.7286 GB, free: 72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/1.196, allocations: 34.7 kB / 0.7286 GB, free: 72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/1.196, allocations: 7.062 kB / 0.7286 GB, free: 72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-05/1.196, allocations: 14.58 kB / 0.7286 GB, free: 72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/1.21, allocations: 10.25 MB / 0.7386 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/1.21, allocations: 8 kB / 0.7386 GB, free: 67.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/1.211, allocations: 325.4 kB / 0.7389 GB, free: 66.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/1.213, allocations: 0.5082 MB / 0.7394 GB, free: 66.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/1.213, allocations: 52.61 kB / 0.7395 GB, free: 66.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00683/1.22, allocations: 6.827 MB / 0.7462 GB, free: 59.97 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002787/1.222, allocations: 3.043 MB / 0.7491 GB, free: 57.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006968/1.229, allocations: 5.486 MB / 0.7545 GB, free: 51.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009849/1.23, allocations: 363.5 kB / 0.7548 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003079/1.231, allocations: 44 kB / 0.7549 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/1.232, allocations: 97.25 kB / 0.755 GB, free: 51.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/1.232, allocations: 159.6 kB / 0.7551 GB, free: 51.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/1.232, allocations: 75.92 kB / 0.7552 GB, free: 51.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002944/1.235, allocations: 1.824 MB / 0.757 GB, free: 49.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.235, allocations: 0 / 0.757 GB, free: 49.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004691/1.24, allocations: 0.943 MB / 0.7579 GB, free: 48.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 175 * Array equations: 4 * 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: 2 {(6,55.6%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007184/1.247, allocations: 7.509 MB / 0.7652 GB, free: 41.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006893/1.254, allocations: 4.525 MB / 0.7696 GB, free: 37.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.254, allocations: 0 / 0.7696 GB, free: 37.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/1.257, allocations: 1.865 MB / 0.7715 GB, free: 35.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/1.259, allocations: 402.7 kB / 0.7719 GB, free: 35.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.275, allocations: 8.252 MB / 0.7799 GB, free: 28.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002772/1.278, allocations: 3.011 MB / 0.7829 GB, free: 25.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003933/1.282, allocations: 1.507 MB / 0.7843 GB, free: 24.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/1.285, allocations: 1.597 MB / 0.7859 GB, free: 23.15 MB / 458.7 MB Notification: Performance of SimCode: time 1.343e-06/1.285, allocations: 4 kB / 0.7859 GB, free: 23.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3877/1.673, allocations: 69.19 MB / 0.8535 GB, free: 116.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/1.673, allocations: 195.7 kB / 0.8536 GB, free: 116.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.848/5.521, allocations: 3.938 kB / 0.8536 GB, free: 116.3 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)