Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.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.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",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.001776/0.001775, allocations: 108 kB / 15.6 MB, free: 132 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.00169/0.00169, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.555/1.555, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2288/0.2288, allocations: 9.109 MB / 299.5 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 63.91 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1439, allocations: 51.43 MB / 413.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01332/0.1572, allocations: 8.581 MB / 422.1 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3031/0.4604, allocations: 2.719 MB / 424.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.4618, allocations: 33.03 kB / 424.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009581/0.4629, allocations: 372.5 kB / 425.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002993/0.4659, allocations: 1.4 MB / 426.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.4665, allocations: 172.2 kB / 426.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003416/0.4699, allocations: 2.517 MB / 429.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.4714, allocations: 0.8753 MB / 430.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/0.4732, allocations: 0.8866 MB / 431 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.4752, allocations: 1.318 MB / 432.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005515/0.4757, allocations: 235 kB / 432.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.4777, allocations: 0.8797 MB / 433.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4788, allocations: 1.221 MB / 434.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.4801, allocations: 1.567 MB / 436.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005086/0.4852, allocations: 4.809 MB / 441 MB, free: 31.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4852, allocations: 0 / 441 MB, free: 31.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4852, allocations: 0 / 441 MB, free: 31.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.85e-05/0.4853, allocations: 4 kB / 441 MB, free: 31.56 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: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01734/0.5027, allocations: 5.033 MB / 446.1 MB, free: 29.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.733e-05/0.5028, allocations: 9.406 kB / 446.1 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007726/0.5036, allocations: 0.5406 MB / 446.6 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006656/0.5102, allocations: 1.779 MB / 448.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002939/0.5132, allocations: 1.426 MB / 449.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.5133, allocations: 148.8 kB / 450 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004764/0.5138, allocations: 199.3 kB / 450.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01395/0.5278, allocations: 8.453 MB / 458.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-05/0.5279, allocations: 22.05 kB / 458.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003367/0.5282, allocations: 92.38 kB / 458.7 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003689/0.5319, allocations: 1.881 MB / 460.6 MB, free: 24.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02088/0.5528, allocations: 8.141 MB / 468.8 MB, free: 21.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04234/0.5952, allocations: 25.92 MB / 494.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.6056, allocations: 2.844 MB / 497.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.6079, allocations: 1.08 MB / 498.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007581/0.6155, allocations: 5.023 MB / 0.4918 GB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.6156, allocations: 47.86 kB / 0.4919 GB, free: 7.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 4.549e-06/0.6156, allocations: 3.938 kB / 0.4919 GB, free: 7.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=173): time 0.0197/0.6353, allocations: 8.374 MB / 0.5001 GB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.6354, allocations: 72.72 kB / 0.5001 GB, free: 14.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00408/0.6395, allocations: 2.617 MB / 0.5027 GB, free: 12.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.6397, allocations: 51.81 kB / 0.5027 GB, free: 12.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/0.6411, allocations: 2.058 MB / 0.5047 GB, free: 10.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006681/0.6418, allocations: 0.6306 MB / 0.5054 GB, free: 9.453 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/0.6429, allocations: 0.8004 MB / 0.5061 GB, free: 8.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.6431, allocations: 309.1 kB / 0.5064 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/0.6453, allocations: 1.37 MB / 0.5078 GB, free: 6.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003787/0.6491, allocations: 3.528 MB / 0.5112 GB, free: 2.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006958/0.6561, allocations: 5.305 MB / 0.5164 GB, free: 12.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.736e-05/0.6562, allocations: 24 kB / 0.5164 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01057/0.6668, allocations: 5.104 MB / 0.5214 GB, free: 6.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/0.6669, allocations: 36 kB / 0.5214 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.88e-05/0.667, allocations: 76.88 kB / 0.5215 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009153/0.6679, allocations: 334.4 kB / 0.5218 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003319/0.6713, allocations: 0.8969 MB / 0.5227 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004681/0.676, allocations: 3.284 MB / 0.5259 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/0.6795, allocations: 199.8 kB / 0.5261 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008422/0.6804, allocations: 236 kB / 0.5263 GB, free: 1.691 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * 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 (490): * Single equations (assignments): 484 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003773/0.6842, allocations: 1.582 MB / 0.5279 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007762/0.685, allocations: 226.1 kB / 0.5281 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004922/0.6899, allocations: 2.347 MB / 0.5304 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001219/0.6901, allocations: 34.86 kB / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.6901, allocations: 4 kB / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.6901, allocations: 3.984 kB / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.7011, allocations: 6.238 MB / 0.5365 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.7012, allocations: 0 / 0.5365 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7022, allocations: 255.7 kB / 0.5368 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006915/0.7029, allocations: 221.8 kB / 0.537 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.595e-05/0.7031, allocations: 35.94 kB / 0.537 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.7064, allocations: 2.858 MB / 0.5398 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.7064, allocations: 7.938 kB / 0.5398 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005517/0.7119, allocations: 3.6 MB / 0.5433 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000853/0.7128, allocations: 298.5 kB / 0.5436 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003255/0.7132, allocations: 35.98 kB / 0.5436 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7142, allocations: 71.12 kB / 0.5437 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.7145, allocations: 108.9 kB / 0.5438 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.7146, allocations: 47.98 kB / 0.5438 GB, free: 15.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002903/0.7175, allocations: 1.695 MB / 0.5455 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7175, allocations: 4 kB / 0.5455 GB, free: 13.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003393/0.7209, allocations: 0.7031 MB / 0.5462 GB, free: 12.98 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * 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 (138): * Single equations (assignments): 132 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006881/0.7278, allocations: 4.247 MB / 0.5503 GB, free: 8.672 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0132/0.741, allocations: 5.226 MB / 0.5554 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/0.7411, allocations: 0 / 0.5554 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002046/0.7431, allocations: 1.246 MB / 0.5567 GB, free: 2.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.7456, allocations: 402.6 kB / 0.557 GB, free: 1.781 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2984/1.044, allocations: 31.46 MB / 0.5878 GB, free: 138.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002953/1.047, allocations: 2.59 MB / 0.5903 GB, free: 137.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00332/1.05, allocations: 1.225 MB / 0.5915 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/1.052, allocations: 1.336 MB / 0.5928 GB, free: 137.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.753e-06/1.052, allocations: 0 / 0.5928 GB, free: 137.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.122/1.174, allocations: 50.42 MB / 0.642 GB, free: 121.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11.72, allocations: 4.688 kB / 0.642 GB, free: 121 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)