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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.0008717/0.0008717, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007225/0.007225, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.245/1.245, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.157/0.157, allocations: 9.101 MB / 300.5 MB, free: 2.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002778, allocations: 12 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08265, allocations: 52.43 MB / 416.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.1858/0.2685, allocations: 35.28 MB / 451.5 MB, free: 21.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.2809, allocations: 7.726 MB / 459.2 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.285, allocations: 131.6 kB / 459.4 MB, free: 17.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007544/0.2858, allocations: 353.6 kB / 459.7 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002634/0.2884, allocations: 1.501 MB / 461.2 MB, free: 16.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.2888, allocations: 158.8 kB / 461.4 MB, free: 16.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002731/0.2915, allocations: 4.147 MB / 465.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009201/0.2925, allocations: 0.9481 MB / 466.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008196/0.2933, allocations: 0.9032 MB / 467.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.2946, allocations: 1.587 MB / 469 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00025/0.2949, allocations: 156.2 kB / 469.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.2959, allocations: 0.7834 MB / 469.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008084/0.2968, allocations: 1.393 MB / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009491/0.2977, allocations: 1.774 MB / 473.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003934/0.3017, allocations: 5.226 MB / 478.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3017, allocations: 1.062 kB / 478.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3017, allocations: 0 / 478.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.3018, allocations: 4 kB / 478.3 MB, free: 9.895 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.02526/0.3271, allocations: 6.165 MB / 484.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3271, allocations: 11.03 kB / 484.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001557/0.3287, allocations: 0.6412 MB / 485.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007358/0.3361, allocations: 1.902 MB / 487 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003052/0.3391, allocations: 1.719 MB / 488.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.3393, allocations: 187.7 kB / 488.9 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005751/0.3399, allocations: 248.5 kB / 489.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01809/0.358, allocations: 10.42 MB / 499.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001141/0.3581, allocations: 39.64 kB / 499.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006266/0.3587, allocations: 115.8 kB / 499.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003518/0.3623, allocations: 2.151 MB / 0.4901 GB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02146/0.3837, allocations: 10.37 MB / 0.5002 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0482/0.432, allocations: 33.54 MB / 0.533 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01711/0.4491, allocations: 4.477 MB / 0.5374 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/0.4518, allocations: 1.666 MB / 0.539 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.4631, allocations: 9.375 MB / 0.5481 GB, free: 92 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.4632, allocations: 60.56 kB / 0.5482 GB, free: 20 kB / 414.1 MB Notification: Performance of pre-optimization done (n=232): time 3.707e-06/0.4632, allocations: 3.938 kB / 0.5482 GB, free: 16 kB / 414.1 MB Notification: Performance of matching and sorting (n=272): time 0.02797/0.4911, allocations: 13.3 MB / 0.5612 GB, free: 2.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003704/0.4949, allocations: 3.366 MB / 0.5645 GB, free: 15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003953/0.4989, allocations: 3.095 MB / 0.5675 GB, free: 11.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/0.4992, allocations: 61.7 kB / 0.5676 GB, free: 11.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001371/0.5006, allocations: 2.42 MB / 0.5699 GB, free: 9.355 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008841/0.5015, allocations: 0.9787 MB / 0.5709 GB, free: 8.363 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005094/0.502, allocations: 458.1 kB / 0.5713 GB, free: 7.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.351e-05/0.5021, allocations: 301.1 kB / 0.5716 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002812/0.5049, allocations: 1.885 MB / 0.5735 GB, free: 5.723 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1785/0.6834, allocations: 4.638 MB / 0.578 GB, free: 121.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007103/0.6905, allocations: 7.096 MB / 0.5849 GB, free: 117.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.434e-05/0.6906, allocations: 26.38 kB / 0.5849 GB, free: 117.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.00975/0.7003, allocations: 6.996 MB / 0.5918 GB, free: 116.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.523e-05/0.7004, allocations: 46 kB / 0.5918 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-05/0.7005, allocations: 97.34 kB / 0.5919 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.7015, allocations: 0.5507 MB / 0.5924 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/0.7046, allocations: 1.212 MB / 0.5936 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/0.7107, allocations: 6.802 MB / 0.6003 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/0.7136, allocations: 276 kB / 0.6005 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.7139, allocations: 315 kB / 0.6008 GB, free: 111.8 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002187/0.7161, allocations: 1.855 MB / 0.6026 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003022/0.7164, allocations: 295.6 kB / 0.6029 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0048/0.7212, allocations: 3.794 MB / 0.6066 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-05/0.7213, allocations: 37.81 kB / 0.6067 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.7214, allocations: 8.906 kB / 0.6067 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/0.7214, allocations: 10.27 kB / 0.6067 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0132/0.7346, allocations: 10.72 MB / 0.6172 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.7346, allocations: 5.125 kB / 0.6172 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.736, allocations: 379.7 kB / 0.6175 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.7372, allocations: 0.5604 MB / 0.6181 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.7374, allocations: 55.89 kB / 0.6181 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007866/0.7453, allocations: 7.382 MB / 0.6253 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002762/0.748, allocations: 3.121 MB / 0.6284 GB, free: 98.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006855/0.7549, allocations: 5.762 MB / 0.634 GB, free: 96.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.756, allocations: 0.6295 MB / 0.6346 GB, free: 95.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.7563, allocations: 52.88 kB / 0.6347 GB, free: 95.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.7574, allocations: 125.1 kB / 0.6348 GB, free: 95.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.7577, allocations: 178.9 kB / 0.635 GB, free: 95.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.7578, allocations: 76.67 kB / 0.635 GB, free: 95.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.7601, allocations: 1.991 MB / 0.637 GB, free: 94.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7601, allocations: 0 / 0.637 GB, free: 94.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003089/0.7632, allocations: 0.9753 MB / 0.6379 GB, free: 94.85 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00622/0.7694, allocations: 6.443 MB / 0.6442 GB, free: 89.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.7749, allocations: 4.978 MB / 0.6491 GB, free: 84.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7749, allocations: 1.812 kB / 0.6491 GB, free: 84.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.7771, allocations: 2.105 MB / 0.6511 GB, free: 83.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/0.7804, allocations: 443.5 kB / 0.6516 GB, free: 82.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04229/0.8227, allocations: 44.48 MB / 0.695 GB, free: 32.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/0.825, allocations: 3.001 MB / 0.6979 GB, free: 29.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003055/0.8281, allocations: 1.582 MB / 0.6995 GB, free: 28.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/0.8296, allocations: 1.659 MB / 0.7011 GB, free: 26.36 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.8297, allocations: 0 / 0.7011 GB, free: 26.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4471/1.277, allocations: 66.31 MB / 0.7659 GB, free: 142.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/1.277, allocations: 239.8 kB / 0.7661 GB, free: 142.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.031/4.308, allocations: 2.938 kB / 0.7661 GB, free: 142.2 MB / 478.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/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)