Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.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.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",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.001174/0.001174, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.495/1.495, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2017/0.2017, allocations: 9.101 MB / 299.5 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 59.91 kB / 362 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.132, allocations: 51.44 MB / 413.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.01198/0.144, allocations: 8.489 MB / 422 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2644/0.4085, allocations: 2.588 MB / 424.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.4101, allocations: 32.47 kB / 424.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.4112, allocations: 351.9 kB / 424.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003503/0.4148, allocations: 1.272 MB / 426.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.4152, allocations: 121.1 kB / 426.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003305/0.4185, allocations: 2.429 MB / 428.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.4198, allocations: 0.8382 MB / 429.6 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.4211, allocations: 0.8613 MB / 430.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.4226, allocations: 1.269 MB / 431.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.423, allocations: 223.4 kB / 432 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.4244, allocations: 0.7398 MB / 432.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009906/0.4255, allocations: 1.187 MB / 433.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.4267, allocations: 1.518 MB / 435.4 MB, free: 33.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004594/0.4313, allocations: 4.625 MB / 440 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.4314, allocations: 0 / 440 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.4314, allocations: 0 / 440 MB, free: 31.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.912e-05/0.4315, allocations: 3.938 kB / 440 MB, free: 31.83 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: 1125 * Number of variables: 1125 Notification: Performance of Generate backend data structure: time 0.01931/0.4508, allocations: 4.817 MB / 444.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.4509, allocations: 8.75 kB / 444.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009031/0.4518, allocations: 0.5226 MB / 445.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006895/0.4587, allocations: 1.772 MB / 447.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002981/0.4617, allocations: 1.386 MB / 448.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.4619, allocations: 146.4 kB / 448.7 MB, free: 28.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004527/0.4623, allocations: 194.7 kB / 448.9 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01528/0.4776, allocations: 8.148 MB / 457 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001765/0.4778, allocations: 24.81 kB / 457 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00095/0.4788, allocations: 86.17 kB / 457.1 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00404/0.4829, allocations: 1.839 MB / 459 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02478/0.5077, allocations: 7.803 MB / 466.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04803/0.5558, allocations: 24.74 MB / 491.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009691/0.5655, allocations: 2.657 MB / 494.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/0.5673, allocations: 1 MB / 495.2 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00869/0.576, allocations: 4.334 MB / 499.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/0.5761, allocations: 47.56 kB / 499.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=142): time 5.902e-06/0.5761, allocations: 0 / 499.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=167): time 0.02015/0.5963, allocations: 7.762 MB / 0.4954 GB, free: 3.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.5964, allocations: 64.72 kB / 0.4955 GB, free: 3.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005627/0.602, allocations: 2.527 MB / 0.4979 GB, free: 1.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003349/0.6024, allocations: 45.7 kB / 0.498 GB, free: 1.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00228/0.6047, allocations: 1.999 MB / 0.4999 GB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.6058, allocations: 0.6045 MB / 0.5005 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002012/0.6079, allocations: 0.7702 MB / 0.5013 GB, free: 13.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.6081, allocations: 305.1 kB / 0.5016 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002897/0.611, allocations: 1.336 MB / 0.5029 GB, free: 12.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005397/0.6164, allocations: 3.387 MB / 0.5062 GB, free: 7.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008566/0.625, allocations: 5.117 MB / 0.5112 GB, free: 1.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.293e-05/0.6251, allocations: 24 kB / 0.5112 GB, free: 1.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01206/0.6372, allocations: 5.024 MB / 0.5161 GB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.6373, allocations: 36 kB / 0.5161 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002016/0.6376, allocations: 72 kB / 0.5162 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.6391, allocations: 440.5 kB / 0.5166 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003226/0.6423, allocations: 0.8344 MB / 0.5174 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0086/0.6509, allocations: 5.915 MB / 0.5232 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003985/0.655, allocations: 191.9 kB / 0.5234 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.656, allocations: 224 kB / 0.5236 GB, free: 4.496 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 325 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (456): * Single equations (assignments): 450 * 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 {(5,16,56.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005928/0.6619, allocations: 1.541 MB / 0.5251 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/0.663, allocations: 221.2 kB / 0.5253 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007039/0.6701, allocations: 2.357 MB / 0.5276 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001438/0.6703, allocations: 31.39 kB / 0.5277 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.303e-05/0.6704, allocations: 11.88 kB / 0.5277 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/0.6704, allocations: 3.984 kB / 0.5277 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.686, allocations: 6.104 MB / 0.5336 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/0.6861, allocations: 0 / 0.5336 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.6872, allocations: 227.6 kB / 0.5339 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009539/0.6881, allocations: 293.5 kB / 0.5341 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.6883, allocations: 24 kB / 0.5342 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006019/0.6943, allocations: 4.683 MB / 0.5387 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.6944, allocations: 7.875 kB / 0.5387 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006485/0.7009, allocations: 3.531 MB / 0.5422 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/0.7018, allocations: 298.3 kB / 0.5425 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000668/0.7025, allocations: 39.05 kB / 0.5425 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.7041, allocations: 55.94 kB / 0.5426 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.7044, allocations: 97.06 kB / 0.5427 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.7046, allocations: 51.98 kB / 0.5427 GB, free: 480 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004341/0.7089, allocations: 1.64 MB / 0.5443 GB, free: 14.81 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7089, allocations: 0 / 0.5443 GB, free: 14.81 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00503/0.714, allocations: 0.6976 MB / 0.545 GB, free: 14.12 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (prismatic.s,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 (124): * Single equations (assignments): 118 * 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 {(5,14,64.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007311/0.7213, allocations: 4.178 MB / 0.5491 GB, free: 9.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01079/0.7321, allocations: 5.083 MB / 0.554 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.7322, allocations: 0 / 0.554 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002657/0.7348, allocations: 1.321 MB / 0.5553 GB, free: 3.441 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003651/0.7385, allocations: 383.1 kB / 0.5557 GB, free: 3.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06442/0.803, allocations: 30.35 MB / 0.5853 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.251/1.054, allocations: 2.553 MB / 0.5878 GB, free: 139.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00296/1.057, allocations: 1.165 MB / 0.589 GB, free: 139.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001863/1.059, allocations: 1.267 MB / 0.5902 GB, free: 139.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/1.059, allocations: 0 / 0.5902 GB, free: 139.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1287/1.188, allocations: 49.67 MB / 0.6387 GB, free: 124.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.92, allocations: 7.25 kB / 0.6387 GB, free: 124.4 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe 2>&1)