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.01109/0.01109, allocations: 99.84 kB / 15.73 MB, free: 6.004 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.002804/0.002804, allocations: 190.4 kB / 16.67 MB, free: 5.922 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.764/2.764, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.06153/0.06153, allocations: 9.125 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 59.91 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1884, allocations: 51.45 MB / 465.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01421/0.2026, allocations: 8.579 MB / 474.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008241/0.211, allocations: 2.725 MB / 476.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.2134, allocations: 31.94 kB / 476.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.2155, allocations: 361.6 kB / 477.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006003/0.2215, allocations: 1.44 MB / 478.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.2227, allocations: 175.7 kB / 478.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005929/0.2287, allocations: 2.522 MB / 481.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002685/0.2315, allocations: 0.8773 MB / 482.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.2339, allocations: 0.8987 MB / 483.2 MB, free: 500 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.2367, allocations: 1.323 MB / 484.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.2379, allocations: 232 kB / 484.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002817/0.2407, allocations: 0.8855 MB / 485.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002155/0.2429, allocations: 1.208 MB / 486.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003541/0.2465, allocations: 1.569 MB / 488.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009699/0.2562, allocations: 5.077 MB / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.585e-05/0.2563, allocations: 0 / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.2563, allocations: 0 / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003511/0.2567, allocations: 4 kB / 493.5 MB, free: 6.156 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.02318/0.2799, allocations: 5.119 MB / 498.6 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.268e-05/0.28, allocations: 8.031 kB / 498.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00173/0.2818, allocations: 0.535 MB / 499.1 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007819/0.2896, allocations: 1.804 MB / 0.4892 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005071/0.2947, allocations: 1.437 MB / 0.4906 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.295, allocations: 152 kB / 0.4907 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/0.2962, allocations: 199.8 kB / 0.4909 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02713/0.3233, allocations: 8.444 MB / 0.4992 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/0.3236, allocations: 23.83 kB / 0.4992 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006526/0.3242, allocations: 95.86 kB / 0.4993 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005451/0.3297, allocations: 1.879 MB / 0.5011 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4329/0.7627, allocations: 8.127 MB / 0.5091 GB, free: 38.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04761/0.8104, allocations: 25.91 MB / 0.5344 GB, free: 21.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01091/0.8214, allocations: 2.844 MB / 0.5371 GB, free: 19.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.8232, allocations: 1.072 MB / 0.5382 GB, free: 18.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008075/0.8313, allocations: 5.04 MB / 0.5431 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.8314, allocations: 47.88 kB / 0.5432 GB, free: 14.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.959e-06/0.8314, allocations: 3 kB / 0.5432 GB, free: 14.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.0189/0.8503, allocations: 8.421 MB / 0.5514 GB, free: 5.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.8504, allocations: 68.72 kB / 0.5514 GB, free: 5.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003573/0.854, allocations: 2.626 MB / 0.554 GB, free: 3.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/0.8542, allocations: 48.91 kB / 0.5541 GB, free: 3.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.8554, allocations: 2.141 MB / 0.5561 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006176/0.856, allocations: 0.6685 MB / 0.5568 GB, free: 244 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/0.8573, allocations: 0.8026 MB / 0.5576 GB, free: 15.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.8575, allocations: 305.1 kB / 0.5579 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.8602, allocations: 1.366 MB / 0.5592 GB, free: 13.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004781/0.8651, allocations: 3.544 MB / 0.5627 GB, free: 9.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007929/0.873, allocations: 5.296 MB / 0.5678 GB, free: 2.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.799e-05/0.8731, allocations: 24 kB / 0.5679 GB, free: 2.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01154/0.8847, allocations: 5.123 MB / 0.5729 GB, free: 13.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.8848, allocations: 39.94 kB / 0.5729 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001446/0.885, allocations: 76 kB / 0.573 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.886, allocations: 330 kB / 0.5733 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003586/0.8896, allocations: 0.8968 MB / 0.5742 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.8945, allocations: 3.276 MB / 0.5774 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003903/0.8984, allocations: 191.9 kB / 0.5776 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009119/0.8994, allocations: 243.8 kB / 0.5778 GB, free: 8.477 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.003466/0.9029, allocations: 1.573 MB / 0.5793 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006647/0.9035, allocations: 246.3 kB / 0.5796 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004726/0.9083, allocations: 2.335 MB / 0.5818 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001205/0.9084, allocations: 39.98 kB / 0.5819 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/0.9085, allocations: 11.56 kB / 0.5819 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.9085, allocations: 7.969 kB / 0.5819 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/0.9281, allocations: 6.207 MB / 0.588 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/0.9283, allocations: 4 kB / 0.588 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/0.9302, allocations: 252 kB / 0.5882 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.9312, allocations: 213.5 kB / 0.5884 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001968/0.9314, allocations: 35.98 kB / 0.5884 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00534/0.9368, allocations: 2.872 MB / 0.5912 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.9369, allocations: 4 kB / 0.5912 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/0.9471, allocations: 3.596 MB / 0.5948 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/0.9494, allocations: 323.5 kB / 0.5951 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000716/0.9501, allocations: 24 kB / 0.5951 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/0.9519, allocations: 67.92 kB / 0.5952 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004194/0.9524, allocations: 105.1 kB / 0.5953 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/0.9526, allocations: 46.66 kB / 0.5953 GB, free: 6.203 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005319/0.9579, allocations: 1.703 MB / 0.597 GB, free: 4.484 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.958, allocations: 0 / 0.597 GB, free: 4.484 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007866/0.9659, allocations: 0.703 MB / 0.5976 GB, free: 3.781 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.01128/0.9772, allocations: 4.259 MB / 0.6018 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01074/0.9881, allocations: 3.483 MB / 0.6052 GB, free: 11.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/0.9882, allocations: 0 / 0.6052 GB, free: 11.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/0.9915, allocations: 1.243 MB / 0.6064 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004548/0.996, allocations: 405.7 kB / 0.6068 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09016/1.086, 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.006305/1.093, allocations: 2.586 MB / 0.6377 GB, free: 7.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003593/1.096, allocations: 1.224 MB / 0.6389 GB, free: 6.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0025/1.099, allocations: 1.323 MB / 0.6402 GB, free: 5.195 MB / 478.1 MB Notification: Performance of SimCode: time 1.413e-06/1.099, allocations: 4 kB / 0.6402 GB, free: 5.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1502/1.249, allocations: 49.64 MB / 0.6887 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.98/33.23, allocations: 27.2 kB / 0.6887 GB, free: 3.77 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)