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.004911/0.004911, allocations: 103 kB / 15.73 MB, free: 6.035 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.001251/0.001251, allocations: 190.7 kB / 16.67 MB, free: 5.957 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04732/0.04732, allocations: 9.119 MB / 299.6 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 67.91 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07923/0.08049, allocations: 51.45 MB / 465.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01089/0.0914, allocations: 10.09 MB / 475.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005637/0.09708, allocations: 2.892 MB / 478.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.09845, allocations: 39.94 kB / 478.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.09975, allocations: 429 kB / 479 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004116/0.1039, allocations: 1.603 MB / 480.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007158/0.1046, allocations: 179.7 kB / 480.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004341/0.109, allocations: 2.969 MB / 483.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001848/0.1109, allocations: 1.058 MB / 484.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.1131, allocations: 1.082 MB / 485.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00265/0.1158, allocations: 1.584 MB / 487.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001321/0.1171, allocations: 268 kB / 487.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002934/0.1201, allocations: 0.8621 MB / 488.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0022/0.1223, allocations: 1.492 MB / 490.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.1261, allocations: 1.852 MB / 492 MB, free: 7.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007389/0.1336, allocations: 5.789 MB / 497.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1336, allocations: 3.938 kB / 497.7 MB, free: 1.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1336, allocations: 0 / 497.7 MB, free: 1.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001601/0.1338, allocations: 0 / 497.7 MB, free: 1.844 MB / 366.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.0282/0.162, allocations: 6.954 MB / 0.4929 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.162, allocations: 8.031 kB / 0.4929 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001513/0.1636, allocations: 0.6423 MB / 0.4935 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007674/0.1712, allocations: 1.852 MB / 0.4953 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004079/0.1754, allocations: 1.732 MB / 0.497 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.1756, allocations: 180.9 kB / 0.4972 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.1766, allocations: 255.7 kB / 0.4974 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2147/0.3913, allocations: 10.39 MB / 0.5076 GB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/0.3915, allocations: 34.05 kB / 0.5076 GB, free: 38.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004611/0.3919, allocations: 120.5 kB / 0.5077 GB, free: 38.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003864/0.3958, allocations: 2.144 MB / 0.5098 GB, free: 37.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02311/0.419, allocations: 10.37 MB / 0.5199 GB, free: 34.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04144/0.4604, allocations: 33.41 MB / 0.5526 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01598/0.4764, allocations: 4.453 MB / 0.5569 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002341/0.4788, allocations: 1.654 MB / 0.5585 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/0.4914, allocations: 9.389 MB / 0.5677 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.4915, allocations: 56.5 kB / 0.5678 GB, free: 4.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=232): time 5.45e-06/0.4915, allocations: 0 / 0.5678 GB, free: 4.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=272): time 0.03081/0.5223, allocations: 13.3 MB / 0.5807 GB, free: 7.309 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004595/0.527, allocations: 3.53 MB / 0.5842 GB, free: 3.609 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005284/0.5323, allocations: 3.098 MB / 0.5872 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003964/0.5327, allocations: 65.7 kB / 0.5873 GB, free: 432 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.5345, allocations: 2.412 MB / 0.5896 GB, free: 13.97 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/0.5357, allocations: 0.9788 MB / 0.5906 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002244/0.538, allocations: 1.076 MB / 0.5916 GB, free: 11.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.93e-05/0.5381, allocations: 305.1 kB / 0.5919 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/0.5415, allocations: 1.889 MB / 0.5938 GB, free: 9.699 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005431/0.547, allocations: 4.637 MB / 0.5983 GB, free: 3.727 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009071/0.5561, allocations: 7.098 MB / 0.6052 GB, free: 11.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/0.5562, allocations: 24 kB / 0.6053 GB, free: 11.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01339/0.5696, allocations: 7.005 MB / 0.6121 GB, free: 4.262 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.5698, allocations: 44 kB / 0.6121 GB, free: 4.219 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/0.5699, allocations: 99.94 kB / 0.6122 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.5713, allocations: 0.5294 MB / 0.6128 GB, free: 3.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004252/0.5756, allocations: 1.228 MB / 0.614 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009711/0.5853, allocations: 7.353 MB / 0.6211 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003727/0.5891, allocations: 275.9 kB / 0.6214 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008004/0.5899, allocations: 319.9 kB / 0.6217 GB, free: 10.12 MB / 462.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.003206/0.5932, allocations: 1.842 MB / 0.6235 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.5938, allocations: 299.2 kB / 0.6238 GB, free: 7.977 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006967/0.6008, allocations: 3.794 MB / 0.6275 GB, free: 4.125 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001147/0.6009, allocations: 35.98 kB / 0.6275 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/0.601, allocations: 12 kB / 0.6275 GB, free: 4.078 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/0.601, allocations: 11.95 kB / 0.6276 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/0.619, allocations: 10.63 MB / 0.6379 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.6191, allocations: 4 kB / 0.6379 GB, free: 9.203 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.6207, allocations: 379.5 kB / 0.6383 GB, free: 8.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.6221, allocations: 0.5482 MB / 0.6388 GB, free: 8.277 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/0.6223, allocations: 51.98 kB / 0.6389 GB, free: 8.227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.6327, allocations: 8.101 MB / 0.6468 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003768/0.6365, allocations: 3.275 MB / 0.65 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009435/0.6459, allocations: 5.754 MB / 0.6556 GB, free: 6.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/0.6476, allocations: 0.6221 MB / 0.6562 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007965/0.6484, allocations: 47.98 kB / 0.6563 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001837/0.6503, allocations: 119.9 kB / 0.6564 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005189/0.6508, allocations: 181.6 kB / 0.6565 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002359/0.6511, allocations: 75.98 kB / 0.6566 GB, free: 5.457 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003684/0.6548, allocations: 1.987 MB / 0.6586 GB, free: 3.465 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6548, allocations: 0 / 0.6586 GB, free: 3.465 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004668/0.6595, allocations: 0.9818 MB / 0.6595 GB, free: 2.488 MB / 494.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.009478/0.669, allocations: 6.453 MB / 0.6658 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008066/0.6771, allocations: 5.009 MB / 0.6707 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.6771, allocations: 0 / 0.6707 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003318/0.6804, allocations: 2.115 MB / 0.6728 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.683, allocations: 473.7 kB / 0.6732 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2621/0.9452, allocations: 38.22 MB / 0.7106 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003332/0.9485, allocations: 3.004 MB / 0.7135 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003848/0.9524, allocations: 1.598 MB / 0.7151 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/0.9542, allocations: 1.654 MB / 0.7167 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.91e-07/0.9542, allocations: 0 / 0.7167 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09039/1.045, allocations: 65.61 MB / 0.7807 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.27/18.31, allocations: 10.12 kB / 0.7807 GB, free: 129.4 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)