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.001651/0.001651, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1863/0.1863, allocations: 9.107 MB / 299.5 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 67.89 kB / 362.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09807, allocations: 51.42 MB / 413.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01095/0.1091, allocations: 8.598 MB / 422.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1864/0.2955, allocations: 2.712 MB / 424.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.2973, allocations: 35.69 kB / 424.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.2986, allocations: 365.9 kB / 425.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003707/0.3023, allocations: 1.401 MB / 426.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005272/0.3029, allocations: 169.4 kB / 426.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00254/0.3054, allocations: 2.519 MB / 429.3 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009037/0.3064, allocations: 0.8736 MB / 430.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009624/0.3073, allocations: 0.8904 MB / 431 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.3085, allocations: 1.318 MB / 432.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003625/0.3089, allocations: 231 kB / 432.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.3103, allocations: 0.8893 MB / 433.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008331/0.3112, allocations: 1.212 MB / 434.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.3122, allocations: 1.565 MB / 436.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003415/0.3157, allocations: 4.807 MB / 441 MB, free: 31.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3157, allocations: 3.125 kB / 441 MB, free: 31.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3157, allocations: 3.188 kB / 441.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.688e-05/0.3158, allocations: 0 / 441.1 MB, free: 31.68 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.01545/0.3312, allocations: 5.039 MB / 446.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3313, allocations: 9.344 kB / 446.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006152/0.3319, allocations: 0.5355 MB / 446.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006301/0.3382, allocations: 1.779 MB / 448.4 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.3404, allocations: 1.43 MB / 449.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.961e-05/0.3405, allocations: 148 kB / 450 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003858/0.3409, allocations: 202.5 kB / 450.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01211/0.353, allocations: 8.445 MB / 458.6 MB, free: 24.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.3532, allocations: 23.95 kB / 458.7 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003219/0.3535, allocations: 94.56 kB / 458.7 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/0.3567, allocations: 1.88 MB / 460.6 MB, free: 24.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01794/0.3747, allocations: 8.132 MB / 468.8 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03418/0.4089, allocations: 25.92 MB / 494.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.419, allocations: 2.849 MB / 497.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/0.4208, allocations: 1.076 MB / 498.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007275/0.4281, allocations: 5.02 MB / 0.4918 GB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.4282, allocations: 47.81 kB / 0.4919 GB, free: 7.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 3.847e-06/0.4282, allocations: 3.938 kB / 0.4919 GB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=173): time 0.0199/0.4481, allocations: 8.369 MB / 0.5 GB, free: 14.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.4482, allocations: 68.72 kB / 0.5001 GB, free: 14.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004206/0.4524, allocations: 2.621 MB / 0.5027 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.4526, allocations: 56.38 kB / 0.5027 GB, free: 12.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.4541, allocations: 2.049 MB / 0.5047 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006793/0.4548, allocations: 0.6345 MB / 0.5053 GB, free: 9.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.456, allocations: 0.8004 MB / 0.5061 GB, free: 8.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.693e-05/0.4561, allocations: 305.1 kB / 0.5064 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/0.4583, allocations: 1.378 MB / 0.5078 GB, free: 6.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003656/0.462, allocations: 3.536 MB / 0.5112 GB, free: 2.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006817/0.4688, allocations: 5.298 MB / 0.5164 GB, free: 12.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.143e-05/0.4689, allocations: 20 kB / 0.5164 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.009214/0.4781, allocations: 5.109 MB / 0.5214 GB, free: 6.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/0.4782, allocations: 40 kB / 0.5214 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.4784, allocations: 72 kB / 0.5215 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009005/0.4793, allocations: 330.2 kB / 0.5218 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/0.4822, allocations: 0.9007 MB / 0.5227 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003944/0.4861, allocations: 3.287 MB / 0.5259 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/0.4891, allocations: 198.2 kB / 0.5261 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006347/0.4898, allocations: 240 kB / 0.5263 GB, free: 1.695 MB / 398.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.002779/0.4926, allocations: 1.578 MB / 0.5279 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004906/0.4931, allocations: 229 kB / 0.5281 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004156/0.4972, allocations: 2.35 MB / 0.5304 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/0.4974, allocations: 35.97 kB / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.4974, allocations: 0 / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.4974, allocations: 3.984 kB / 0.5304 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.5092, allocations: 6.235 MB / 0.5365 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.5093, allocations: 4 kB / 0.5365 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.5104, allocations: 251.6 kB / 0.5368 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007393/0.5112, allocations: 226.5 kB / 0.537 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.5114, allocations: 34.97 kB / 0.537 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/0.5151, allocations: 2.848 MB / 0.5398 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.5152, allocations: 11.88 kB / 0.5398 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005784/0.521, allocations: 3.589 MB / 0.5433 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007829/0.5218, allocations: 306.5 kB / 0.5436 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006282/0.5224, allocations: 31.92 kB / 0.5436 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.5237, allocations: 75.92 kB / 0.5437 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.524, allocations: 97.06 kB / 0.5438 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.5241, allocations: 54.34 kB / 0.5438 GB, free: 15.42 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003237/0.5274, allocations: 1.695 MB / 0.5455 GB, free: 13.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5274, allocations: 0 / 0.5455 GB, free: 13.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00409/0.5315, allocations: 0.7031 MB / 0.5462 GB, free: 13 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.006181/0.5377, allocations: 4.257 MB / 0.5503 GB, free: 8.684 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009165/0.5469, allocations: 5.23 MB / 0.5554 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.5469, allocations: 5.062 kB / 0.5554 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.5486, allocations: 1.246 MB / 0.5567 GB, free: 2.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.5511, allocations: 392.6 kB / 0.557 GB, free: 1.793 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2117/0.7629, allocations: 31.46 MB / 0.5878 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003753/0.7667, allocations: 2.59 MB / 0.5903 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003355/0.7701, allocations: 1.231 MB / 0.5915 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/0.7723, allocations: 1.327 MB / 0.5928 GB, free: 137.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.884e-06/0.7724, allocations: 2.188 kB / 0.5928 GB, free: 137.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08507/0.8574, allocations: 50.42 MB / 0.642 GB, free: 121.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.35, allocations: 15.5 kB / 0.642 GB, free: 121.1 MB / 462.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)