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.007465/0.007465, allocations: 101 kB / 15.73 MB, free: 6.055 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.00205/0.00205, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.049/0.049, allocations: 9.118 MB / 299.6 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 63.89 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08489/0.08677, allocations: 51.45 MB / 465.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01009/0.0969, allocations: 8.571 MB / 474.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005486/0.1024, allocations: 2.725 MB / 476.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.1036, allocations: 39.88 kB / 476.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009443/0.1046, allocations: 353.6 kB / 477.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003223/0.1078, allocations: 1.404 MB / 478.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005172/0.1083, allocations: 179.6 kB / 478.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0032/0.1116, allocations: 2.522 MB / 481.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.1129, allocations: 0.8734 MB / 482.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00154/0.1145, allocations: 0.8949 MB / 483.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.1165, allocations: 1.32 MB / 484.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005235/0.117, allocations: 232 kB / 484.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.1187, allocations: 0.8776 MB / 485.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.12, allocations: 1.219 MB / 486.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.1218, allocations: 1.565 MB / 488.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006091/0.1279, allocations: 5.073 MB / 493.4 MB, free: 6.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1279, allocations: 0 / 493.4 MB, free: 6.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1279, allocations: 4 kB / 493.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001108/0.128, allocations: 0 / 493.4 MB, free: 6.184 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: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01714/0.1452, allocations: 5.119 MB / 498.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1452, allocations: 12.03 kB / 498.5 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009468/0.1462, allocations: 0.535 MB / 499.1 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007087/0.1533, allocations: 1.8 MB / 0.4891 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002871/0.1562, allocations: 1.445 MB / 0.4906 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.1564, allocations: 148 kB / 0.4907 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006169/0.157, allocations: 199.7 kB / 0.4909 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.1742, allocations: 8.452 MB / 0.4991 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.1744, allocations: 23.83 kB / 0.4992 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000472/0.1749, allocations: 91.86 kB / 0.4993 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003566/0.1785, allocations: 1.887 MB / 0.5011 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2125/0.391, allocations: 8.121 MB / 0.509 GB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03342/0.4245, allocations: 25.91 MB / 0.5343 GB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009035/0.4335, allocations: 2.843 MB / 0.5371 GB, free: 19.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.4351, allocations: 1.079 MB / 0.5382 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005023/0.4401, allocations: 5.03 MB / 0.5431 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.4402, allocations: 51.88 kB / 0.5431 GB, free: 14.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.097e-06/0.4402, allocations: 0 / 0.5431 GB, free: 14.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.01619/0.4564, allocations: 8.425 MB / 0.5513 GB, free: 5.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.4565, allocations: 68.72 kB / 0.5514 GB, free: 5.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002995/0.4595, allocations: 2.618 MB / 0.554 GB, free: 3.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.4596, allocations: 53.7 kB / 0.554 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008309/0.4605, allocations: 2.14 MB / 0.5561 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004334/0.4609, allocations: 0.668 MB / 0.5568 GB, free: 228 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/0.4621, allocations: 0.8092 MB / 0.5576 GB, free: 15.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4622, allocations: 303 kB / 0.5578 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.4646, allocations: 1.37 MB / 0.5592 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004353/0.469, allocations: 3.533 MB / 0.5626 GB, free: 9.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006998/0.476, allocations: 5.306 MB / 0.5678 GB, free: 2.785 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-05/0.4761, allocations: 20 kB / 0.5678 GB, free: 2.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01/0.4861, allocations: 5.122 MB / 0.5728 GB, free: 13.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.707e-05/0.4862, allocations: 39.94 kB / 0.5729 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.581e-05/0.4863, allocations: 76 kB / 0.5729 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008864/0.4872, allocations: 317.5 kB / 0.5732 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/0.4902, allocations: 0.901 MB / 0.5741 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.4947, allocations: 3.279 MB / 0.5773 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/0.4977, allocations: 204 kB / 0.5775 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005536/0.4983, allocations: 243.8 kB / 0.5778 GB, free: 8.461 MB / 414.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.002882/0.5012, allocations: 1.574 MB / 0.5793 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004444/0.5016, allocations: 238.3 kB / 0.5795 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004464/0.5061, allocations: 2.339 MB / 0.5818 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/0.5063, allocations: 31.92 kB / 0.5818 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.5063, allocations: 10 kB / 0.5818 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.5063, allocations: 11.97 kB / 0.5819 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.5175, allocations: 6.212 MB / 0.5879 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.5175, allocations: 4 kB / 0.5879 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.5186, allocations: 247.7 kB / 0.5882 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006804/0.5193, allocations: 218.6 kB / 0.5884 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.5194, allocations: 31.98 kB / 0.5884 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/0.5229, allocations: 2.868 MB / 0.5912 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.5229, allocations: 4.156 kB / 0.5912 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005855/0.5288, allocations: 3.596 MB / 0.5947 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006628/0.5295, allocations: 323.5 kB / 0.595 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003007/0.5298, allocations: 28 kB / 0.5951 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/0.5307, allocations: 67.92 kB / 0.5951 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.531, allocations: 98.86 kB / 0.5952 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.5311, allocations: 55.98 kB / 0.5953 GB, free: 6.184 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002836/0.5339, allocations: 1.695 MB / 0.5969 GB, free: 4.473 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5339, allocations: 0 / 0.5969 GB, free: 4.473 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003224/0.5372, allocations: 0.7067 MB / 0.5976 GB, free: 3.77 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.006425/0.5436, allocations: 4.262 MB / 0.6018 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006078/0.5497, allocations: 3.498 MB / 0.6052 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5498, allocations: 192 / 0.6052 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001965/0.5517, allocations: 1.239 MB / 0.6064 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/0.554, allocations: 388.1 kB / 0.6068 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04809/0.6021, allocations: 29.08 MB / 0.6352 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003677/0.6058, allocations: 2.594 MB / 0.6377 GB, free: 7.734 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003178/0.609, allocations: 1.224 MB / 0.6389 GB, free: 6.504 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002393/0.6114, allocations: 1.327 MB / 0.6402 GB, free: 5.176 MB / 478.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6114, allocations: 3.938 kB / 0.6402 GB, free: 5.172 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/0.7146, allocations: 49.64 MB / 0.6887 GB, free: 3.773 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/18.01, allocations: 29.77 kB / 0.6887 GB, free: 3.746 MB / 0.5137 GB (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)