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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.001117/0.001117, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001329/0.001329, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2288/0.2288, allocations: 9.098 MB / 300.1 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003438, allocations: 8 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1303, allocations: 52.43 MB / 415.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.2783/0.4087, allocations: 20.01 MB / 435.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.4213, allocations: 5.461 MB / 441 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00596/0.4273, allocations: 84.22 kB / 441.1 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006139/0.4335, allocations: 0.9567 MB / 442 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.014/0.4476, allocations: 3.002 MB / 445 MB, free: 28.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.4495, allocations: 146 kB / 445.2 MB, free: 28.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003857/0.4534, allocations: 1.416 MB / 446.6 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001142/0.4546, allocations: 0.7774 MB / 447.4 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009665/0.4555, allocations: 0.6678 MB / 448 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.4566, allocations: 0.983 MB / 449 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002562/0.4569, allocations: 127.7 kB / 449.1 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.4581, allocations: 0.6997 MB / 449.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007552/0.4589, allocations: 1.036 MB / 450.9 MB, free: 26.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.4593, allocations: 0.6368 MB / 451.5 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003229/0.4626, allocations: 3.704 MB / 455.2 MB, free: 24.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4626, allocations: 0 / 455.2 MB, free: 24.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.4626, allocations: 0 / 455.2 MB, free: 24.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.691e-05/0.4627, allocations: 0 / 455.2 MB, free: 24.78 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.01507/0.4778, allocations: 4.513 MB / 459.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4779, allocations: 8.656 kB / 459.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001296/0.4792, allocations: 0.5388 MB / 460.3 MB, free: 22.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007965/0.4871, allocations: 2.185 MB / 462.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004361/0.4915, allocations: 1.395 MB / 463.9 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.4918, allocations: 147.4 kB / 464 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.4928, allocations: 192.2 kB / 464.2 MB, free: 21.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.5116, allocations: 8.478 MB / 472.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-05/0.5117, allocations: 22.28 kB / 472.7 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003538/0.5121, allocations: 93.05 kB / 472.8 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003628/0.5157, allocations: 1.882 MB / 474.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02232/0.5381, allocations: 8.15 MB / 482.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04259/0.5807, allocations: 25.72 MB / 0.4966 GB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/0.5912, allocations: 2.857 MB / 0.4994 GB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002033/0.5933, allocations: 1.743 MB / 0.5011 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.5933, allocations: 43.88 kB / 0.5012 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 4.218e-06/0.5933, allocations: 0 / 0.5012 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of matching and sorting (n=197): time 0.03024/0.6236, allocations: 10.1 MB / 0.511 GB, free: 6.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.6237, allocations: 73.41 kB / 0.5111 GB, free: 6.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003613/0.6273, allocations: 2.513 MB / 0.5135 GB, free: 3.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002961/0.6276, allocations: 53.7 kB / 0.5136 GB, free: 3.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.629, allocations: 1.989 MB / 0.5155 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007977/0.6298, allocations: 0.7129 MB / 0.5162 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.63, allocations: 83.94 kB / 0.5163 GB, free: 1.105 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002571/0.6302, allocations: 491 kB / 0.5168 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002256/0.6325, allocations: 1.382 MB / 0.5181 GB, free: 15.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003642/0.6362, allocations: 3.533 MB / 0.5216 GB, free: 10.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.6396, allocations: 2.235 MB / 0.5238 GB, free: 8.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.533e-05/0.6397, allocations: 20 kB / 0.5238 GB, free: 8.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=537) (initialization): time 0.008673/0.6484, allocations: 5.139 MB / 0.5288 GB, free: 3.211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.73e-05/0.6485, allocations: 36 kB / 0.5288 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.204e-05/0.6486, allocations: 76 kB / 0.5289 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/0.6494, allocations: 334.3 kB / 0.5292 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/0.6524, allocations: 0.9085 MB / 0.5301 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003659/0.6561, allocations: 3.079 MB / 0.5331 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002999/0.6591, allocations: 199.9 kB / 0.5333 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004766/0.6596, allocations: 240 kB / 0.5335 GB, free: 14.21 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 (496): * Single equations (assignments): 490 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002772/0.6624, allocations: 1.574 MB / 0.5351 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003822/0.6628, allocations: 233 kB / 0.5353 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004319/0.6671, allocations: 2.756 MB / 0.538 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/0.6672, allocations: 31.97 kB / 0.538 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.6672, allocations: 7.938 kB / 0.538 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.6673, allocations: 7.969 kB / 0.538 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/0.6811, allocations: 6.922 MB / 0.5448 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/0.6812, allocations: 8 kB / 0.5448 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.6824, allocations: 284.4 kB / 0.5451 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006686/0.6831, allocations: 230 kB / 0.5453 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.6832, allocations: 39.98 kB / 0.5453 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003303/0.6865, allocations: 2.67 MB / 0.5479 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.6866, allocations: 7.938 kB / 0.5479 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006473/0.6931, allocations: 4.445 MB / 0.5523 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.6941, allocations: 326.1 kB / 0.5526 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.6944, allocations: 39.95 kB / 0.5526 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/0.6953, allocations: 71.92 kB / 0.5527 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.6955, allocations: 129 kB / 0.5528 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.6956, allocations: 56 kB / 0.5529 GB, free: 9.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002528/0.6982, allocations: 1.636 MB / 0.5545 GB, free: 8.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6982, allocations: 0 / 0.5545 GB, free: 8.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003325/0.7015, allocations: 0.7148 MB / 0.5552 GB, free: 7.344 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (159): * Single equations (assignments): 153 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006521/0.708, allocations: 6.741 MB / 0.5618 GB, free: 400 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005782/0.7138, allocations: 3.555 MB / 0.5652 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/0.7139, allocations: 4 kB / 0.5652 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.7157, allocations: 1.353 MB / 0.5666 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.7176, allocations: 349.6 kB / 0.5669 GB, free: 11.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2694/0.987, allocations: 73.56 MB / 0.6387 GB, free: 54.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002693/0.9897, allocations: 2.662 MB / 0.6413 GB, free: 53.28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003234/0.993, allocations: 1.284 MB / 0.6426 GB, free: 53.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/0.995, allocations: 1.336 MB / 0.6439 GB, free: 53.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.995, allocations: 0 / 0.6439 GB, free: 53.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09301/1.088, allocations: 54.84 MB / 0.6974 GB, free: 23.88 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/1.088, allocations: 217.4 kB / 0.6977 GB, free: 23.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.16/4.248, allocations: 0 / 0.6977 GB, free: 23.64 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/linux/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) Environment - environmentSimulation: