Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.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.TestSlipBasedWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestSlipBasedWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestSlipBasedWheel",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.01371/0.01371, allocations: 97.41 kB / 15.73 MB, free: 6.051 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.002649/0.002649, allocations: 196.9 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.705/2.705, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.4103/0.4103, allocations: 9.106 MB / 299.6 MB, free: 1.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 59.91 kB / 414.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5608/0.5635, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel): time 0.01776/0.5813, allocations: 8.784 MB / 474.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.5921, allocations: 2.728 MB / 477.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003312/0.5955, allocations: 35.38 kB / 477.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002642/0.5983, allocations: 361.2 kB / 477.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008218/0.6066, allocations: 1.451 MB / 478.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.6085, allocations: 181.9 kB / 479.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008202/0.6168, allocations: 2.552 MB / 481.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003803/0.6207, allocations: 0.8863 MB / 482.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004618/0.6254, allocations: 0.9137 MB / 483.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004524/0.63, allocations: 1.329 MB / 484.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002161/0.6322, allocations: 232.6 kB / 485 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004949/0.6372, allocations: 0.8928 MB / 485.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003673/0.6409, allocations: 1.212 MB / 487.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00555/0.6465, allocations: 1.578 MB / 488.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/0.6622, allocations: 5.101 MB / 493.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.472e-05/0.6622, allocations: 0.9375 kB / 493.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.095e-06/0.6623, allocations: 3.984 kB / 493.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003365/0.6626, allocations: 0 / 493.8 MB, free: 15.3 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: 1167 * Number of variables: 1167 Notification: Performance of Generate backend data structure: time 0.03612/0.6988, allocations: 5.142 MB / 498.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.012e-05/0.6989, allocations: 8.031 kB / 499 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003759/0.7026, allocations: 0.5352 MB / 499.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01252/0.7152, allocations: 1.804 MB / 0.4895 GB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006592/0.7219, allocations: 1.453 MB / 0.491 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004119/0.7224, allocations: 148 kB / 0.4911 GB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002351/0.7247, allocations: 199.8 kB / 0.4913 GB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03149/0.7563, allocations: 8.476 MB / 0.4996 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002615/0.7566, allocations: 23.75 kB / 0.4996 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001771/0.7584, allocations: 95.86 kB / 0.4997 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00587/0.7643, allocations: 1.879 MB / 0.5015 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03189/0.7963, allocations: 8.144 MB / 0.5095 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0809/0.8773, allocations: 25.95 MB / 0.5348 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01579/0.8931, allocations: 2.858 MB / 0.5376 GB, free: 6.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003684/0.8969, allocations: 1.084 MB / 0.5387 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/0.9118, allocations: 5.043 MB / 0.5436 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.153e-05/0.912, allocations: 51.88 kB / 0.5436 GB, free: 15.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 1.029e-05/0.912, allocations: 0 / 0.5436 GB, free: 15.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=175): time 0.0387/0.9507, allocations: 8.472 MB / 0.5519 GB, free: 6.734 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.9509, allocations: 72.66 kB / 0.552 GB, free: 6.652 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008853/0.9598, allocations: 2.642 MB / 0.5546 GB, free: 3.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004506/0.9603, allocations: 45.7 kB / 0.5546 GB, free: 3.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002799/0.9631, allocations: 2.154 MB / 0.5567 GB, free: 1.754 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001498/0.9647, allocations: 0.6743 MB / 0.5574 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003547/0.9682, allocations: 0.8065 MB / 0.5582 GB, free: 264 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.9685, allocations: 305.1 kB / 0.5584 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005198/0.9737, allocations: 1.386 MB / 0.5598 GB, free: 14.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00866/0.9825, allocations: 3.544 MB / 0.5633 GB, free: 9.957 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/0.9955, allocations: 5.333 MB / 0.5685 GB, free: 3.578 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001555/0.9958, allocations: 20 kB / 0.5685 GB, free: 3.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0185/1.014, allocations: 5.146 MB / 0.5735 GB, free: 14.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/1.014, allocations: 43.98 kB / 0.5736 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/1.015, allocations: 72 kB / 0.5736 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/1.016, allocations: 317.5 kB / 0.5739 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005533/1.022, allocations: 0.9088 MB / 0.5748 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00644/1.028, allocations: 3.295 MB / 0.578 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005911/1.034, allocations: 196 kB / 0.5782 GB, free: 9.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001424/1.036, allocations: 240 kB / 0.5784 GB, free: 9.191 MB / 462.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 (493): * Single equations (assignments): 487 * 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.006455/1.042, allocations: 1.578 MB / 0.58 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001371/1.044, allocations: 238.4 kB / 0.5802 GB, free: 7.367 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.054, allocations: 2.37 MB / 0.5825 GB, free: 4.977 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001795/1.054, allocations: 27.98 kB / 0.5826 GB, free: 4.949 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.732e-05/1.054, allocations: 4 kB / 0.5826 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-05/1.054, allocations: 7.969 kB / 0.5826 GB, free: 4.938 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4853/1.54, allocations: 6.259 MB / 0.5887 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-05/1.54, allocations: 3.609 kB / 0.5887 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/1.542, allocations: 254 kB / 0.5889 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/1.543, allocations: 223.9 kB / 0.5891 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003628/1.543, allocations: 34.14 kB / 0.5892 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006404/1.55, allocations: 2.866 MB / 0.592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.962e-05/1.55, allocations: 3.375 kB / 0.592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/1.565, allocations: 3.626 MB / 0.5955 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/1.567, allocations: 314.8 kB / 0.5958 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001561/1.568, allocations: 30.67 kB / 0.5958 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002861/1.571, allocations: 74.23 kB / 0.5959 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001/1.572, allocations: 102.5 kB / 0.596 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006031/1.573, allocations: 48.05 kB / 0.5961 GB, free: 107.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008357/1.581, allocations: 1.709 MB / 0.5977 GB, free: 107 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.72e-07/1.581, allocations: 1.469 kB / 0.5977 GB, free: 107 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009816/1.591, allocations: 0.7115 MB / 0.5984 GB, free: 106.9 MB / 462.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 (140): * Single equations (assignments): 134 * 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.01255/1.604, allocations: 4.293 MB / 0.6026 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01129/1.615, allocations: 3.501 MB / 0.606 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-05/1.615, allocations: 0 / 0.606 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004458/1.62, allocations: 1.26 MB / 0.6073 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005233/1.625, allocations: 392.9 kB / 0.6076 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09307/1.718, allocations: 29.04 MB / 0.636 GB, free: 81.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009822/1.728, allocations: 2.598 MB / 0.6385 GB, free: 78.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006284/1.735, allocations: 1.232 MB / 0.6397 GB, free: 77.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004131/1.739, allocations: 1.339 MB / 0.6411 GB, free: 76.38 MB / 462.1 MB Notification: Performance of SimCode: time 4.017e-06/1.739, allocations: 4 kB / 0.6411 GB, free: 76.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2712/2.01, allocations: 49.94 MB / 0.6898 GB, free: 26.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.28/34.29, allocations: 11.75 kB / 0.6898 GB, free: 26.7 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel_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_TestSlipBasedWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel.pipe 2>&1)