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.0008247/0.0008248, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004782/0.004782, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.209/1.209, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1388/0.1388, allocations: 9.111 MB / 300.5 MB, free: 2.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002932, allocations: 8 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08471, allocations: 52.44 MB / 416.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.1731/0.2578, allocations: 22.78 MB / 439 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009095/0.267, allocations: 5.484 MB / 444.5 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002642/0.2697, allocations: 88.41 kB / 444.6 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006739/0.2703, allocations: 305.2 kB / 444.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002184/0.2725, allocations: 1.313 MB / 446.2 MB, free: 26.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.2729, allocations: 140.4 kB / 446.3 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.275, allocations: 3.485 MB / 449.8 MB, free: 25.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000687/0.2757, allocations: 0.7811 MB / 450.6 MB, free: 25.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005982/0.2763, allocations: 0.7522 MB / 451.4 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.2774, allocations: 1.305 MB / 452.7 MB, free: 24.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.2776, allocations: 129.5 kB / 452.8 MB, free: 24.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.2786, allocations: 0.8272 MB / 453.6 MB, free: 24.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006179/0.2792, allocations: 1.132 MB / 454.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007707/0.28, allocations: 1.493 MB / 456.2 MB, free: 22.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002621/0.2826, allocations: 4.569 MB / 460.8 MB, free: 21.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2826, allocations: 0 / 460.8 MB, free: 21.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2826, allocations: 0 / 460.8 MB, free: 21.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.306e-05/0.2827, allocations: 0 / 460.8 MB, free: 21.57 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.01336/0.2961, allocations: 4.393 MB / 465.2 MB, free: 19.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2961, allocations: 9 kB / 465.2 MB, free: 19.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009512/0.2971, allocations: 0.5328 MB / 465.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00671/0.3038, allocations: 1.825 MB / 467.6 MB, free: 19.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/0.3062, allocations: 1.431 MB / 469 MB, free: 18.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.3063, allocations: 148.5 kB / 469.1 MB, free: 18.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000471/0.3068, allocations: 205.3 kB / 469.3 MB, free: 18.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.3195, allocations: 8.451 MB / 477.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.731e-05/0.3196, allocations: 20.72 kB / 477.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002935/0.3199, allocations: 97.52 kB / 477.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002975/0.3228, allocations: 1.882 MB / 479.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/0.3375, allocations: 8.123 MB / 487.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02889/0.3665, allocations: 25.96 MB / 0.5018 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009204/0.3757, allocations: 2.859 MB / 0.5046 GB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.3772, allocations: 1.076 MB / 0.5057 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00561/0.3829, allocations: 5.027 MB / 0.5106 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3829, allocations: 47.88 kB / 0.5106 GB, free: 7.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.106e-06/0.3829, allocations: 0 / 0.5106 GB, free: 7.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.01676/0.3997, allocations: 8.365 MB / 0.5188 GB, free: 14.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.3998, allocations: 68.72 kB / 0.5189 GB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003237/0.403, allocations: 2.621 MB / 0.5214 GB, free: 12.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.4031, allocations: 53.64 kB / 0.5215 GB, free: 12.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.4043, allocations: 2.058 MB / 0.5235 GB, free: 9.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004607/0.4047, allocations: 0.636 MB / 0.5241 GB, free: 9.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003641/0.4051, allocations: 330.7 kB / 0.5244 GB, free: 8.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.497e-05/0.4052, allocations: 305.1 kB / 0.5247 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002021/0.4072, allocations: 1.378 MB / 0.5261 GB, free: 7.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003116/0.4103, allocations: 3.528 MB / 0.5295 GB, free: 2.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005438/0.4158, allocations: 5.31 MB / 0.5347 GB, free: 12.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.957e-05/0.4158, allocations: 20 kB / 0.5347 GB, free: 12.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.007691/0.4235, allocations: 5.113 MB / 0.5397 GB, free: 7.172 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.4236, allocations: 40 kB / 0.5397 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.614e-05/0.4237, allocations: 76 kB / 0.5398 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007678/0.4245, allocations: 322.2 kB / 0.5401 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.427, allocations: 0.8968 MB / 0.541 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.4305, allocations: 3.029 MB / 0.5439 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002597/0.4331, allocations: 195.9 kB / 0.5441 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003186/0.4334, allocations: 236 kB / 0.5444 GB, free: 2.25 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.002107/0.4356, allocations: 1.582 MB / 0.5459 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.4358, allocations: 232.9 kB / 0.5461 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/0.4394, allocations: 2.339 MB / 0.5484 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.835e-05/0.4395, allocations: 31.98 kB / 0.5484 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.4396, allocations: 0 / 0.5484 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.4396, allocations: 7.969 kB / 0.5485 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/0.4483, allocations: 6.253 MB / 0.5546 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4483, allocations: 4 kB / 0.5546 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009638/0.4492, allocations: 255.6 kB / 0.5548 GB, free: 7.387 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/0.4499, allocations: 210 kB / 0.555 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-05/0.45, allocations: 36.23 kB / 0.555 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.4526, allocations: 2.607 MB / 0.5576 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4526, allocations: 7.984 kB / 0.5576 GB, free: 4.398 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004662/0.4573, allocations: 3.582 MB / 0.5611 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004735/0.4578, allocations: 318.2 kB / 0.5614 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.458, allocations: 31.92 kB / 0.5614 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008043/0.4588, allocations: 71.92 kB / 0.5615 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.459, allocations: 93.19 kB / 0.5616 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-05/0.4591, allocations: 47.98 kB / 0.5616 GB, free: 184 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002186/0.4613, allocations: 1.695 MB / 0.5633 GB, free: 14.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4613, allocations: 0 / 0.5633 GB, free: 14.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002501/0.4638, allocations: 0.7071 MB / 0.564 GB, free: 13.76 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.005041/0.4689, allocations: 4.257 MB / 0.5681 GB, free: 9.434 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004889/0.4738, allocations: 3.467 MB / 0.5715 GB, free: 5.949 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4738, allocations: 0 / 0.5715 GB, free: 5.949 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.4753, allocations: 1.246 MB / 0.5727 GB, free: 4.668 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/0.4778, allocations: 361.7 kB / 0.5731 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1934/0.6712, allocations: 33.06 MB / 0.6054 GB, free: 92.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.6733, allocations: 2.59 MB / 0.6079 GB, free: 91.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002567/0.6759, allocations: 1.227 MB / 0.6091 GB, free: 91.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/0.6772, allocations: 1.324 MB / 0.6104 GB, free: 89.97 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6772, allocations: 0 / 0.6104 GB, free: 89.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4438/1.121, allocations: 48.88 MB / 0.6581 GB, free: 60.83 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/1.121, allocations: 249.8 kB / 0.6584 GB, free: 60.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.84/3.962, allocations: 0 / 0.6584 GB, free: 60.56 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)