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.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001057/0.001057, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.147/0.147, allocations: 9.092 MB / 299 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 55.86 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09359, allocations: 51.45 MB / 412.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.1727/0.2663, allocations: 23.54 MB / 436.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009111/0.2755, allocations: 5.526 MB / 441.9 MB, free: 27.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.2789, allocations: 88.06 kB / 441.9 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000716/0.2796, allocations: 305 kB / 442.2 MB, free: 27.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.2822, allocations: 1.32 MB / 443.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.2826, allocations: 141.8 kB / 443.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002349/0.285, allocations: 3.475 MB / 447.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007434/0.2857, allocations: 0.7919 MB / 448 MB, free: 25.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006846/0.2864, allocations: 0.7601 MB / 448.7 MB, free: 25.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.2875, allocations: 1.324 MB / 450.1 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00022/0.2877, allocations: 131.8 kB / 450.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.2889, allocations: 0.8271 MB / 451 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006957/0.2896, allocations: 1.132 MB / 452.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008547/0.2904, allocations: 1.477 MB / 453.6 MB, free: 23.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003022/0.2935, allocations: 4.674 MB / 458.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2935, allocations: 0 / 458.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2935, allocations: 0 / 458.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.578e-05/0.2935, allocations: 7 kB / 458.3 MB, free: 21.42 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.01478/0.3083, allocations: 5.037 MB / 463.3 MB, free: 19.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3084, allocations: 13.22 kB / 463.3 MB, free: 19.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005993/0.309, allocations: 0.5343 MB / 463.9 MB, free: 19.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006393/0.3154, allocations: 1.774 MB / 465.7 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.3181, allocations: 1.434 MB / 467.1 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.3182, allocations: 148.9 kB / 467.2 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004902/0.3187, allocations: 202 kB / 467.4 MB, free: 17.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01331/0.3321, allocations: 8.453 MB / 475.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.3322, allocations: 26.38 kB / 475.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000295/0.3325, allocations: 96.8 kB / 476 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002913/0.3354, allocations: 1.878 MB / 477.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/0.3514, allocations: 8.129 MB / 486 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03219/0.3836, allocations: 25.93 MB / 0.4999 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009315/0.393, allocations: 2.835 MB / 0.5027 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.3946, allocations: 1.084 MB / 0.5038 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005933/0.4005, allocations: 5.02 MB / 0.5087 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.4006, allocations: 47.86 kB / 0.5087 GB, free: 7.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.667e-06/0.4006, allocations: 0 / 0.5087 GB, free: 7.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.0176/0.4182, allocations: 8.37 MB / 0.5169 GB, free: 14.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.4182, allocations: 64.72 kB / 0.517 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003634/0.4219, allocations: 2.621 MB / 0.5195 GB, free: 11.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.829e-05/0.422, allocations: 45.7 kB / 0.5196 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.4233, allocations: 2.062 MB / 0.5216 GB, free: 9.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/0.4238, allocations: 0.6321 MB / 0.5222 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009715/0.4247, allocations: 0.7981 MB / 0.523 GB, free: 8.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.932e-05/0.4248, allocations: 309.1 kB / 0.5233 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.4268, allocations: 1.374 MB / 0.5246 GB, free: 6.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003221/0.4301, allocations: 3.524 MB / 0.528 GB, free: 2.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005469/0.4355, allocations: 5.316 MB / 0.5332 GB, free: 11.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.702e-05/0.4356, allocations: 20 kB / 0.5333 GB, free: 11.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.007553/0.4431, allocations: 5.107 MB / 0.5382 GB, free: 6.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.502e-05/0.4432, allocations: 36.28 kB / 0.5383 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.258e-05/0.4433, allocations: 80.16 kB / 0.5384 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007627/0.444, allocations: 318.3 kB / 0.5387 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/0.4466, allocations: 0.9084 MB / 0.5395 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.4499, allocations: 3.026 MB / 0.5425 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002254/0.4522, allocations: 194.5 kB / 0.5427 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002804/0.4525, allocations: 240 kB / 0.5429 GB, free: 1.594 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.001982/0.4545, allocations: 1.57 MB / 0.5444 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003053/0.4548, allocations: 229.2 kB / 0.5447 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/0.4584, allocations: 2.347 MB / 0.547 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/0.4586, allocations: 38.45 kB / 0.547 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4586, allocations: 0 / 0.547 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.4586, allocations: 11.97 kB / 0.547 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009006/0.4676, allocations: 6.241 MB / 0.5531 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.4676, allocations: 4 kB / 0.5531 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009966/0.4686, allocations: 251.7 kB / 0.5533 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006161/0.4693, allocations: 213.9 kB / 0.5535 GB, free: 6.523 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.21e-05/0.4694, allocations: 44.03 kB / 0.5536 GB, free: 6.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002748/0.4721, allocations: 2.601 MB / 0.5561 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4721, allocations: 8.062 kB / 0.5561 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004849/0.477, allocations: 3.578 MB / 0.5596 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005254/0.4775, allocations: 306.2 kB / 0.5599 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002745/0.4778, allocations: 35.92 kB / 0.56 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008291/0.4786, allocations: 63.92 kB / 0.56 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.4788, allocations: 97.12 kB / 0.5601 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.515e-05/0.4789, allocations: 51.98 kB / 0.5602 GB, free: 15.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.4812, allocations: 1.695 MB / 0.5618 GB, free: 13.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4812, allocations: 0 / 0.5618 GB, free: 13.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00273/0.4839, allocations: 0.7032 MB / 0.5625 GB, free: 13.12 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.005224/0.4892, allocations: 4.257 MB / 0.5667 GB, free: 8.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004914/0.4941, allocations: 3.459 MB / 0.57 GB, free: 5.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4941, allocations: 4 kB / 0.57 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.4957, allocations: 1.238 MB / 0.5713 GB, free: 4.039 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.4976, allocations: 371 kB / 0.5716 GB, free: 3.684 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1854/0.683, allocations: 32.95 MB / 0.6038 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/0.6851, allocations: 2.588 MB / 0.6063 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002613/0.6877, allocations: 1.229 MB / 0.6075 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/0.6891, allocations: 1.329 MB / 0.6088 GB, free: 106.6 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6891, allocations: 3.469 kB / 0.6088 GB, free: 106.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0661/0.7552, allocations: 49.36 MB / 0.657 GB, free: 77.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.7554, allocations: 240.3 kB / 0.6572 GB, free: 77.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.455, allocations: 4.062 kB / 0.6572 GB, free: 77.58 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)