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/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/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007428/0.0007429, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008554/0.0008555, allocations: 172.7 kB / 15.95 MB, free: 208 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.265/1.265, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1709/0.1709, allocations: 9.113 MB / 300.2 MB, free: 2.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003303, allocations: 12.22 kB / 363.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 52.43 MB / 415.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2161/0.322, allocations: 32.84 MB / 448.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.3372, allocations: 7.446 MB / 455.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00589/0.3431, allocations: 133.2 kB / 456.1 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00382/0.347, allocations: 1.6 MB / 457.7 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01192/0.3589, allocations: 5.663 MB / 463.3 MB, free: 16.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.3604, allocations: 172 kB / 463.5 MB, free: 16.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004285/0.3647, allocations: 3.315 MB / 466.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.367, allocations: 0.9343 MB / 467.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.3695, allocations: 0.9655 MB / 468.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.3718, allocations: 1.56 MB / 470.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008423/0.3727, allocations: 157.9 kB / 470.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.3746, allocations: 0.6875 MB / 471.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001709/0.3764, allocations: 1.355 MB / 472.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.3777, allocations: 0.7406 MB / 473.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006055/0.3837, allocations: 4.239 MB / 477.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3838, allocations: 4.75 kB / 477.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3838, allocations: 0 / 477.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002938/0.3841, allocations: 0 / 477.4 MB, free: 11.71 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02522/0.4093, allocations: 6.208 MB / 483.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4094, allocations: 8.906 kB / 483.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001626/0.411, allocations: 0.6393 MB / 484.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006702/0.4177, allocations: 1.9 MB / 486.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.4208, allocations: 1.694 MB / 487.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.421, allocations: 187.7 kB / 488.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005587/0.4216, allocations: 245.2 kB / 488.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/0.4404, allocations: 10.39 MB / 498.7 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/0.4406, allocations: 35.66 kB / 498.7 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008263/0.4415, allocations: 123.8 kB / 498.9 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003704/0.4452, allocations: 2.15 MB / 0.4893 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/0.4688, allocations: 10.33 MB / 0.4994 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05213/0.521, allocations: 33.52 MB / 0.5321 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01587/0.5369, allocations: 4.473 MB / 0.5365 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/0.5399, allocations: 1.65 MB / 0.5381 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01326/0.5532, allocations: 9.394 MB / 0.5472 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/0.5533, allocations: 60.55 kB / 0.5473 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=232): time 5.38e-06/0.5533, allocations: 0 / 0.5473 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of matching and sorting (n=272): time 0.03036/0.5837, allocations: 13.27 MB / 0.5603 GB, free: 3.273 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003999/0.5877, allocations: 3.361 MB / 0.5635 GB, free: 15.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005732/0.5935, allocations: 3.084 MB / 0.5665 GB, free: 12.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003402/0.5938, allocations: 65.64 kB / 0.5666 GB, free: 12.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001819/0.5957, allocations: 2.42 MB / 0.569 GB, free: 10.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/0.5969, allocations: 0.9827 MB / 0.5699 GB, free: 9.125 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004514/0.5974, allocations: 104 kB / 0.57 GB, free: 9.023 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004574/0.5979, allocations: 0.5336 MB / 0.5706 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/0.6013, allocations: 1.865 MB / 0.5724 GB, free: 6.613 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005092/0.6064, allocations: 4.614 MB / 0.5769 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2008/0.8072, allocations: 2.946 MB / 0.5798 GB, free: 121.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.674e-05/0.8073, allocations: 27.25 kB / 0.5798 GB, free: 121.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01084/0.8182, allocations: 6.946 MB / 0.5866 GB, free: 121.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.545e-05/0.8183, allocations: 47.61 kB / 0.5866 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.419e-05/0.8184, allocations: 95.27 kB / 0.5867 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.8194, allocations: 0.5553 MB / 0.5872 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00331/0.8228, allocations: 1.221 MB / 0.5884 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006577/0.8293, allocations: 6.762 MB / 0.595 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003662/0.833, allocations: 275.2 kB / 0.5953 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003701/0.8334, allocations: 320 kB / 0.5956 GB, free: 117 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * 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],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (656): * Single equations (assignments): 650 * 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%) 26,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002764/0.8362, allocations: 1.846 MB / 0.5974 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/0.8365, allocations: 294.4 kB / 0.5977 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005262/0.8418, allocations: 3.784 MB / 0.6014 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.29e-05/0.8419, allocations: 43.23 kB / 0.6014 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.8419, allocations: 8.812 kB / 0.6014 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.842, allocations: 13.55 kB / 0.6015 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.8565, allocations: 10.69 MB / 0.6119 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/0.8566, allocations: 9.344 kB / 0.6119 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.858, allocations: 380.1 kB / 0.6123 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.8593, allocations: 0.553 MB / 0.6128 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/0.8594, allocations: 55.31 kB / 0.6129 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007919/0.8673, allocations: 7.369 MB / 0.6201 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002887/0.8702, allocations: 3.113 MB / 0.6231 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007625/0.8779, allocations: 5.737 MB / 0.6287 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.8792, allocations: 0.6345 MB / 0.6293 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003188/0.8795, allocations: 48.73 kB / 0.6294 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.8806, allocations: 122.3 kB / 0.6295 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/0.881, allocations: 175.8 kB / 0.6296 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/0.8812, allocations: 75.48 kB / 0.6297 GB, free: 100.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003557/0.8848, allocations: 1.963 MB / 0.6316 GB, free: 100.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8848, allocations: 4.656 kB / 0.6316 GB, free: 100.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003895/0.8887, allocations: 0.9825 MB / 0.6326 GB, free: 100 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 197 * 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%) 26,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007473/0.8961, allocations: 6.42 MB / 0.6389 GB, free: 95.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006641/0.9028, allocations: 4.95 MB / 0.6437 GB, free: 90.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.9028, allocations: 0 / 0.6437 GB, free: 90.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.9053, allocations: 2.098 MB / 0.6457 GB, free: 88.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.9074, allocations: 460.2 kB / 0.6462 GB, free: 88.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04585/0.9532, allocations: 28.74 MB / 0.6743 GB, free: 58.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003822/0.9571, allocations: 3.002 MB / 0.6772 GB, free: 55.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003713/0.9608, allocations: 1.586 MB / 0.6787 GB, free: 53.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002155/0.963, allocations: 1.651 MB / 0.6803 GB, free: 52.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.963, allocations: 0 / 0.6803 GB, free: 52.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2851/1.248, allocations: 71.58 MB / 0.7503 GB, free: 119.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/1.248, allocations: 221.5 kB / 0.7505 GB, free: 118.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.305/4.553, allocations: 5.484 kB / 0.7505 GB, free: 118.8 MB / 462.1 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) Environment - environmentSimulation: