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.008264/0.008264, allocations: 102.1 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.001909/0.001909, allocations: 195.7 kB / 16.67 MB, free: 5.98 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1402/0.1402, allocations: 9.093 MB / 299.6 MB, free: 1.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 56.12 kB / 414.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2273, allocations: 51.43 MB / 465.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestSlipBasedWheel): time 0.007937/0.2353, allocations: 8.791 MB / 474.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004839/0.2402, allocations: 2.742 MB / 477.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009296/0.2411, allocations: 34 kB / 477.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007492/0.2419, allocations: 357.2 kB / 477.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002676/0.2446, allocations: 1.41 MB / 478.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.2451, allocations: 180.6 kB / 479.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002563/0.2477, allocations: 2.548 MB / 481.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009614/0.2487, allocations: 0.878 MB / 482.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009793/0.2497, allocations: 0.9036 MB / 483.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.2509, allocations: 1.334 MB / 484.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003548/0.2512, allocations: 231.7 kB / 485 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.2526, allocations: 0.8922 MB / 485.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000792/0.2534, allocations: 1.218 MB / 487.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.2545, allocations: 1.577 MB / 488.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004411/0.2589, allocations: 5.078 MB / 493.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2589, allocations: 4 kB / 493.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2589, allocations: 0 / 493.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.259, allocations: 1 kB / 493.7 MB, free: 15.36 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.01672/0.2757, allocations: 5.053 MB / 498.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2758, allocations: 12.03 kB / 498.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007237/0.2765, allocations: 0.5312 MB / 499.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006797/0.2833, allocations: 1.787 MB / 0.4894 GB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.2863, allocations: 1.441 MB / 0.4908 GB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.2864, allocations: 148 kB / 0.4909 GB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.287, allocations: 211.7 kB / 0.4911 GB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/0.3019, allocations: 8.464 MB / 0.4994 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.034e-05/0.3021, allocations: 15.88 kB / 0.4994 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003481/0.3024, allocations: 95.8 kB / 0.4995 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/0.3054, allocations: 1.887 MB / 0.5013 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01567/0.3211, allocations: 8.14 MB / 0.5093 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.3604, allocations: 25.9 MB / 0.5346 GB, free: 9.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01005/0.3705, allocations: 2.852 MB / 0.5374 GB, free: 6.238 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.3723, allocations: 1.086 MB / 0.5384 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007528/0.3798, allocations: 5.037 MB / 0.5433 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.3799, allocations: 51.86 kB / 0.5434 GB, free: 15.56 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 4.629e-06/0.3799, allocations: 3.938 kB / 0.5434 GB, free: 15.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=175): time 0.0189/0.3988, allocations: 8.419 MB / 0.5516 GB, free: 7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.3989, allocations: 68.72 kB / 0.5517 GB, free: 6.922 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/0.4035, allocations: 2.638 MB / 0.5543 GB, free: 4.254 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.4037, allocations: 57.62 kB / 0.5543 GB, free: 4.191 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.405, allocations: 2.063 MB / 0.5563 GB, free: 2.098 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005359/0.4056, allocations: 0.6398 MB / 0.557 GB, free: 1.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/0.4068, allocations: 0.8138 MB / 0.5577 GB, free: 0.625 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.4069, allocations: 305.1 kB / 0.558 GB, free: 332 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/0.4092, allocations: 1.378 MB / 0.5594 GB, free: 14.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003445/0.4126, allocations: 3.54 MB / 0.5628 GB, free: 10.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005882/0.4185, allocations: 5.334 MB / 0.5681 GB, free: 3.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-05/0.4186, allocations: 24 kB / 0.5681 GB, free: 3.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.008672/0.4273, allocations: 5.122 MB / 0.5731 GB, free: 14.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.4274, allocations: 40.06 kB / 0.5731 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.4275, allocations: 76 kB / 0.5732 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008824/0.4284, allocations: 327.4 kB / 0.5735 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/0.4313, allocations: 0.9007 MB / 0.5744 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00385/0.4351, allocations: 3.279 MB / 0.5776 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/0.4379, allocations: 195.9 kB / 0.5778 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004683/0.4384, allocations: 244 kB / 0.578 GB, free: 9.594 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.002589/0.441, allocations: 1.577 MB / 0.5795 GB, free: 8.008 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004339/0.4414, allocations: 233 kB / 0.5798 GB, free: 7.777 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004186/0.4456, allocations: 2.37 MB / 0.5821 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/0.4457, allocations: 27.98 kB / 0.5821 GB, free: 5.359 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.4457, allocations: 4.062 kB / 0.5821 GB, free: 5.355 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.4458, allocations: 11.97 kB / 0.5821 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2167/0.6624, allocations: 6.257 MB / 0.5882 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.6625, allocations: 2.719 kB / 0.5882 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.6636, allocations: 260.8 kB / 0.5885 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006709/0.6643, allocations: 218.6 kB / 0.5887 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.6644, allocations: 35.08 kB / 0.5887 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.6673, allocations: 2.854 MB / 0.5915 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.6673, allocations: 8.328 kB / 0.5915 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005392/0.6727, allocations: 3.612 MB / 0.595 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006267/0.6734, allocations: 306.3 kB / 0.5953 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.6737, allocations: 30.28 kB / 0.5954 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008652/0.6745, allocations: 74.23 kB / 0.5954 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.6748, allocations: 102.6 kB / 0.5955 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6749, allocations: 52.34 kB / 0.5956 GB, free: 107.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002774/0.6777, allocations: 1.703 MB / 0.5972 GB, free: 107.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6777, allocations: 0 / 0.5972 GB, free: 107.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003049/0.6807, allocations: 0.7116 MB / 0.5979 GB, free: 107 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.005368/0.6861, allocations: 4.292 MB / 0.6021 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.6913, allocations: 3.497 MB / 0.6056 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6913, allocations: 1.344 kB / 0.6056 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.6929, allocations: 1.247 MB / 0.6068 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.6949, allocations: 395.5 kB / 0.6071 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03536/0.7302, allocations: 28.91 MB / 0.6354 GB, free: 82.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002844/0.7331, allocations: 2.597 MB / 0.6379 GB, free: 79.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002444/0.7356, allocations: 1.236 MB / 0.6391 GB, free: 78.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/0.7372, allocations: 1.339 MB / 0.6404 GB, free: 76.94 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.7372, allocations: 0 / 0.6404 GB, free: 76.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06869/0.8059, allocations: 49.95 MB / 0.6892 GB, free: 27.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.55/17.36, allocations: 7.688 kB / 0.6892 GB, free: 27.24 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)