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.001338/0.001338, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00106/0.00106, allocations: 197 kB / 16.26 MB, free: 6.621 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.344/1.344, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1508/0.1508, allocations: 9.093 MB / 299.2 MB, free: 1.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 361.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09595, allocations: 51.43 MB / 413 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.1804/0.2764, allocations: 23.56 MB / 436.5 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.2875, allocations: 5.477 MB / 442 MB, free: 27.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004724/0.2923, allocations: 89.59 kB / 442.1 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008728/0.2932, allocations: 308.5 kB / 442.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003024/0.2963, allocations: 1.308 MB / 443.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.2968, allocations: 145 kB / 443.8 MB, free: 27.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/0.2993, allocations: 2.535 MB / 446.4 MB, free: 26.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008935/0.3003, allocations: 0.8914 MB / 447.3 MB, free: 25.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008634/0.3011, allocations: 0.8948 MB / 448.1 MB, free: 25.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.3023, allocations: 1.419 MB / 449.6 MB, free: 24.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002647/0.3026, allocations: 230.4 kB / 449.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.3038, allocations: 0.9009 MB / 450.7 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006761/0.3044, allocations: 1.223 MB / 451.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009042/0.3054, allocations: 1.573 MB / 453.5 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003231/0.3086, allocations: 4.841 MB / 458.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3086, allocations: 0 / 458.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3086, allocations: 0 / 458.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.949e-05/0.3087, allocations: 0 / 458.3 MB, free: 21.02 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.01516/0.3239, allocations: 5.037 MB / 463.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3239, allocations: 9.688 kB / 463.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005699/0.3245, allocations: 0.5406 MB / 463.9 MB, free: 18.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006021/0.3305, allocations: 1.779 MB / 465.7 MB, free: 18.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.3326, allocations: 1.433 MB / 467.1 MB, free: 17.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-05/0.3327, allocations: 147.3 kB / 467.3 MB, free: 17.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003852/0.3331, allocations: 199.5 kB / 467.5 MB, free: 17.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.3459, allocations: 8.457 MB / 475.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.346, allocations: 22.88 kB / 475.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002986/0.3463, allocations: 95.52 kB / 476 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002922/0.3493, allocations: 1.878 MB / 477.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01711/0.3664, allocations: 8.13 MB / 486 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.3979, allocations: 25.92 MB / 0.5 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009639/0.4076, allocations: 2.845 MB / 0.5027 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.4091, allocations: 1.078 MB / 0.5038 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006391/0.4155, allocations: 5.024 MB / 0.5087 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.4156, allocations: 47.86 kB / 0.5088 GB, free: 7.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.417e-06/0.4156, allocations: 0 / 0.5088 GB, free: 7.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.01742/0.433, allocations: 8.376 MB / 0.5169 GB, free: 14.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.4331, allocations: 65.47 kB / 0.517 GB, free: 14.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.4362, allocations: 2.613 MB / 0.5195 GB, free: 12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.4364, allocations: 53.7 kB / 0.5196 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4375, allocations: 2.058 MB / 0.5216 GB, free: 9.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004542/0.438, allocations: 0.636 MB / 0.5222 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009498/0.4389, allocations: 0.7981 MB / 0.523 GB, free: 8.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.439, allocations: 313 kB / 0.5233 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001964/0.441, allocations: 1.37 MB / 0.5246 GB, free: 6.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003167/0.4442, allocations: 3.533 MB / 0.5281 GB, free: 2.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005444/0.4496, allocations: 5.311 MB / 0.5333 GB, free: 11.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.294e-05/0.4497, allocations: 20 kB / 0.5333 GB, free: 11.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.007504/0.4572, allocations: 5.109 MB / 0.5383 GB, free: 6.621 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.4573, allocations: 40 kB / 0.5383 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.491e-05/0.4573, allocations: 76.08 kB / 0.5384 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007783/0.4581, allocations: 329.9 kB / 0.5387 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/0.4607, allocations: 0.9007 MB / 0.5396 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003522/0.4642, allocations: 3.278 MB / 0.5428 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002397/0.4666, allocations: 187.9 kB / 0.543 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003139/0.4669, allocations: 240 kB / 0.5432 GB, free: 1.438 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.002307/0.4693, allocations: 1.57 MB / 0.5447 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003517/0.4696, allocations: 229.1 kB / 0.545 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003717/0.4733, allocations: 2.359 MB / 0.5473 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001056/0.4735, allocations: 31.97 kB / 0.5473 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4735, allocations: 0 / 0.5473 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.4735, allocations: 7.984 kB / 0.5473 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009517/0.483, allocations: 6.245 MB / 0.5534 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.4831, allocations: 8 kB / 0.5534 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009915/0.4841, allocations: 251.6 kB / 0.5536 GB, free: 6.574 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006048/0.4847, allocations: 221.6 kB / 0.5539 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.865e-05/0.4848, allocations: 32 kB / 0.5539 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.4877, allocations: 2.857 MB / 0.5567 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.4877, allocations: 7.938 kB / 0.5567 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004852/0.4926, allocations: 3.59 MB / 0.5602 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005787/0.4932, allocations: 298.3 kB / 0.5605 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/0.4935, allocations: 31.98 kB / 0.5605 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008316/0.4943, allocations: 71.92 kB / 0.5606 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.4945, allocations: 97.12 kB / 0.5607 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.906e-05/0.4946, allocations: 47.98 kB / 0.5607 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002295/0.4969, allocations: 1.695 MB / 0.5624 GB, free: 13.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.497, allocations: 0 / 0.5624 GB, free: 13.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002824/0.4998, allocations: 0.7071 MB / 0.5631 GB, free: 12.7 MB / 446.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.005226/0.505, allocations: 4.253 MB / 0.5672 GB, free: 8.371 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008281/0.5133, allocations: 5.238 MB / 0.5723 GB, free: 3.113 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5134, allocations: 4 kB / 0.5723 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001682/0.515, allocations: 1.243 MB / 0.5735 GB, free: 1.832 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.517, allocations: 414 kB / 0.5739 GB, free: 1.449 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2035/0.7205, allocations: 32.92 MB / 0.6061 GB, free: 108.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/0.7227, allocations: 2.593 MB / 0.6086 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002659/0.7253, allocations: 1.228 MB / 0.6098 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.7267, allocations: 1.326 MB / 0.6111 GB, free: 106 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7267, allocations: 0 / 0.6111 GB, free: 106 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.83, allocations: 50.35 MB / 0.6603 GB, free: 75.05 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.8302, allocations: 248.9 kB / 0.6605 GB, free: 74.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.063/3.893, allocations: 0 / 0.6605 GB, free: 74.8 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)