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.004772/0.004772, allocations: 171.5 kB / 15.11 MB, free: 6.055 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.296/1.296, allocations: 223.2 MB / 239 MB, free: 1.797 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.0008472/0.0008472, allocations: 99.55 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03919/0.03919, allocations: 8.94 MB / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 7.875 kB / 413.2 MB, free: 88.54 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06731/0.06759, allocations: 52.4 MB / 465.6 MB, free: 41.6 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2507/0.3184, allocations: 88.02 MB / 0.5407 GB, free: 16.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.3186, allocations: 80.67 kB / 0.5407 GB, free: 16.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1587/0.4773, allocations: 73.52 MB / 0.6125 GB, free: 4.332 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4773, allocations: 0 / 0.6125 GB, free: 4.332 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001205/0.4775, allocations: 60 kB / 0.6126 GB, free: 4.273 MB / 378.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.02454/0.502, allocations: 4.713 MB / 0.6172 GB, free: 15.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.5021, allocations: 8.031 kB / 0.6172 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002604/0.5047, allocations: 0.6675 MB / 0.6178 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009065/0.5138, allocations: 1.997 MB / 0.6198 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/0.5187, allocations: 2.01 MB / 0.6218 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002731/0.519, allocations: 251.4 kB / 0.622 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001759/0.5207, allocations: 339.3 kB / 0.6223 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.5417, allocations: 9.858 MB / 0.6319 GB, free: 1.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.5419, allocations: 31.72 kB / 0.632 GB, free: 1.797 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005571/0.5424, allocations: 155.9 kB / 0.6321 GB, free: 1.645 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001702/0.5441, allocations: 1.107 MB / 0.6332 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02137/0.5655, allocations: 10.14 MB / 0.6431 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04468/0.6102, allocations: 32.84 MB / 0.6752 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01586/0.6261, allocations: 4.101 MB / 0.6792 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009772/0.6359, allocations: 8.422 MB / 0.6874 GB, free: 7.234 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.636, allocations: 48.56 kB / 0.6875 GB, free: 7.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 3.727e-06/0.636, allocations: 3.938 kB / 0.6875 GB, free: 7.176 MB / 458.7 MB Notification: Performance of matching and sorting (n=249): time 0.1829/0.8189, allocations: 12 MB / 0.6992 GB, free: 112.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003168/0.8221, allocations: 3.421 MB / 0.7025 GB, free: 110.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003237/0.8254, allocations: 2.63 MB / 0.7051 GB, free: 110.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002457/0.8257, allocations: 62.44 kB / 0.7051 GB, free: 110.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.8267, allocations: 2.391 MB / 0.7075 GB, free: 109.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000635/0.8274, allocations: 0.9053 MB / 0.7084 GB, free: 108.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.8276, allocations: 114.6 kB / 0.7085 GB, free: 108.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.8278, allocations: 0.5225 MB / 0.709 GB, free: 108.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002233/0.83, allocations: 1.721 MB / 0.7107 GB, free: 108.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003401/0.8335, allocations: 4.416 MB / 0.715 GB, free: 105.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003282/0.8367, allocations: 2.786 MB / 0.7177 GB, free: 105.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.154e-05/0.8368, allocations: 26.34 kB / 0.7177 GB, free: 105.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.00934/0.8461, allocations: 6.591 MB / 0.7242 GB, free: 104.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.271e-05/0.8462, allocations: 44.09 kB / 0.7242 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.8464, allocations: 101.7 kB / 0.7243 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.8475, allocations: 0.5334 MB / 0.7248 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.851, allocations: 1.149 MB / 0.7259 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008047/0.8591, allocations: 6.542 MB / 0.7323 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/0.8628, allocations: 246.5 kB / 0.7326 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005554/0.8633, allocations: 310.4 kB / 0.7329 GB, free: 101.8 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 () * Number of clocked 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.002575/0.8659, allocations: 1.816 MB / 0.7346 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/0.8664, allocations: 281.2 kB / 0.7349 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00456/0.8709, allocations: 3.398 MB / 0.7382 GB, free: 99.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/0.871, allocations: 39.8 kB / 0.7383 GB, free: 99.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.8711, allocations: 12.23 kB / 0.7383 GB, free: 99.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.8711, allocations: 10.69 kB / 0.7383 GB, free: 99.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/0.8857, allocations: 10.3 MB / 0.7483 GB, free: 95.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.8857, allocations: 13.64 kB / 0.7484 GB, free: 95.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/0.8873, allocations: 320.5 kB / 0.7487 GB, free: 95.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.8887, allocations: 0.5245 MB / 0.7492 GB, free: 95.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/0.8889, allocations: 47.45 kB / 0.7492 GB, free: 95.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007343/0.8963, allocations: 7.08 MB / 0.7561 GB, free: 90.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002734/0.899, allocations: 3.139 MB / 0.7592 GB, free: 88.59 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/0.9056, allocations: 5.565 MB / 0.7646 GB, free: 85.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008437/0.9064, allocations: 360.3 kB / 0.765 GB, free: 85.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005204/0.9069, allocations: 47.25 kB / 0.765 GB, free: 85.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.9082, allocations: 98.28 kB / 0.7651 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.9085, allocations: 168.3 kB / 0.7653 GB, free: 85.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.9086, allocations: 71.73 kB / 0.7653 GB, free: 85.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002659/0.9113, allocations: 1.857 MB / 0.7672 GB, free: 84.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9113, allocations: 4 kB / 0.7672 GB, free: 84.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003721/0.915, allocations: 0.9471 MB / 0.7681 GB, free: 84.67 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 () * Number of clocked 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.006488/0.9215, allocations: 7.57 MB / 0.7755 GB, free: 77.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005883/0.9274, allocations: 4.612 MB / 0.78 GB, free: 73.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.9275, allocations: 0 / 0.78 GB, free: 73.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002174/0.9296, allocations: 1.902 MB / 0.7818 GB, free: 71.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.9311, allocations: 394 kB / 0.7822 GB, free: 71.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2095/1.141, allocations: 91.23 MB / 0.8713 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/1.143, allocations: 3.015 MB / 0.8743 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003506/1.147, allocations: 1.502 MB / 0.8757 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/1.148, allocations: 1.604 MB / 0.8773 GB, free: 123.3 MB / 474.7 MB Notification: Performance of SimCode: time 8.22e-07/1.148, allocations: 0 / 0.8773 GB, free: 123.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08268/1.231, allocations: 68.74 MB / 0.9444 GB, free: 91.99 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/1.231, allocations: 213.4 kB / 0.9446 GB, free: 91.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.518/4.75, allocations: 0 / 0.9446 GB, free: 91.75 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)