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.005435/0.005435, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001184/0.001184, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04662/0.04662, allocations: 9.129 MB / 299.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 59.91 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08208/0.08336, allocations: 51.45 MB / 465.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.009507/0.09291, allocations: 8.579 MB / 474.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005414/0.09837, allocations: 2.716 MB / 476.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.09968, allocations: 35.88 kB / 476.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.1009, allocations: 365.5 kB / 477.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003536/0.1045, allocations: 1.401 MB / 478.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.1051, allocations: 171.7 kB / 478.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003142/0.1083, allocations: 2.534 MB / 481.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.1096, allocations: 0.8618 MB / 482.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/0.1112, allocations: 0.9104 MB / 483.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00186/0.1131, allocations: 1.315 MB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006166/0.1137, allocations: 232 kB / 484.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.1154, allocations: 0.8777 MB / 485.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001297/0.1167, allocations: 1.215 MB / 486.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001972/0.1187, allocations: 1.565 MB / 488.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005476/0.1242, allocations: 5.054 MB / 493.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1243, allocations: 4 kB / 493.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1243, allocations: 7.938 kB / 493.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001467/0.1244, allocations: 0 / 493.4 MB, free: 6.215 MB / 366.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.01705/0.1415, allocations: 5.027 MB / 498.4 MB, free: 1.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1416, allocations: 8.031 kB / 498.4 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001205/0.1428, allocations: 0.5428 MB / 499 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006878/0.1497, allocations: 1.775 MB / 0.489 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002806/0.1525, allocations: 1.441 MB / 0.4904 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.1527, allocations: 144 kB / 0.4906 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000684/0.1534, allocations: 203.8 kB / 0.4908 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/0.1678, allocations: 8.448 MB / 0.499 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.7e-05/0.168, allocations: 27.77 kB / 0.499 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/0.1685, allocations: 83.88 kB / 0.4991 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003054/0.1715, allocations: 1.891 MB / 0.501 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2095/0.3811, allocations: 8.126 MB / 0.5089 GB, free: 38.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03367/0.4148, allocations: 25.84 MB / 0.5341 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008964/0.4238, allocations: 2.853 MB / 0.5369 GB, free: 19.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.4252, allocations: 1.075 MB / 0.538 GB, free: 18.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005328/0.4306, allocations: 5.031 MB / 0.5429 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.4306, allocations: 47.88 kB / 0.5429 GB, free: 14.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.687e-06/0.4307, allocations: 0 / 0.5429 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.01593/0.4466, allocations: 8.366 MB / 0.5511 GB, free: 5.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.4467, allocations: 72.7 kB / 0.5512 GB, free: 5.719 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002759/0.4494, allocations: 2.617 MB / 0.5537 GB, free: 3.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.4496, allocations: 57.53 kB / 0.5538 GB, free: 3.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008322/0.4504, allocations: 2.053 MB / 0.5558 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004408/0.4509, allocations: 0.6424 MB / 0.5564 GB, free: 324 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009736/0.4519, allocations: 0.7943 MB / 0.5572 GB, free: 15.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.452, allocations: 305.1 kB / 0.5575 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002138/0.4541, allocations: 1.366 MB / 0.5588 GB, free: 13.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/0.4578, allocations: 3.541 MB / 0.5623 GB, free: 9.234 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006221/0.4641, allocations: 5.295 MB / 0.5674 GB, free: 2.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.368e-05/0.4641, allocations: 20 kB / 0.5674 GB, free: 2.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.009497/0.4737, allocations: 5.116 MB / 0.5724 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.59e-05/0.4738, allocations: 43.94 kB / 0.5725 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.377e-05/0.4739, allocations: 72 kB / 0.5726 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008315/0.4747, allocations: 322.8 kB / 0.5729 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003023/0.4777, allocations: 0.8968 MB / 0.5737 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003874/0.4816, allocations: 3.281 MB / 0.5769 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.4845, allocations: 195.9 kB / 0.5771 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006253/0.4851, allocations: 236 kB / 0.5774 GB, free: 8.59 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.002783/0.4879, allocations: 1.574 MB / 0.5789 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005132/0.4884, allocations: 229.1 kB / 0.5791 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004158/0.4926, allocations: 2.35 MB / 0.5814 GB, free: 4.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001073/0.4927, allocations: 31.92 kB / 0.5814 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.4928, allocations: 8 kB / 0.5814 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.4928, allocations: 7.969 kB / 0.5815 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.5033, allocations: 6.21 MB / 0.5875 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.5033, allocations: 0 / 0.5875 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.5044, allocations: 256 kB / 0.5878 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000662/0.5051, allocations: 215.7 kB / 0.588 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.5052, allocations: 35.98 kB / 0.588 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.5083, allocations: 2.855 MB / 0.5908 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5083, allocations: 4.156 kB / 0.5908 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.5136, allocations: 3.594 MB / 0.5943 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007773/0.5144, allocations: 302.2 kB / 0.5946 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/0.5149, allocations: 31.94 kB / 0.5946 GB, free: 6.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.5159, allocations: 67.92 kB / 0.5947 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.5161, allocations: 101.1 kB / 0.5948 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.5162, allocations: 51.98 kB / 0.5948 GB, free: 6.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002535/0.5188, allocations: 1.695 MB / 0.5965 GB, free: 4.645 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5188, allocations: 288 / 0.5965 GB, free: 4.645 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0029/0.5217, allocations: 0.7076 MB / 0.5972 GB, free: 3.945 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.005623/0.5273, allocations: 4.254 MB / 0.6013 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005272/0.5326, allocations: 3.486 MB / 0.6047 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.5326, allocations: 0 / 0.6047 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.5343, allocations: 1.235 MB / 0.6059 GB, free: 10.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.5363, allocations: 394.3 kB / 0.6063 GB, free: 10.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04357/0.5799, allocations: 28.96 MB / 0.6346 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003528/0.5835, allocations: 2.59 MB / 0.6371 GB, free: 8.074 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003082/0.5866, allocations: 1.228 MB / 0.6383 GB, free: 6.84 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/0.5886, allocations: 1.323 MB / 0.6396 GB, free: 5.516 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5887, allocations: 4 kB / 0.6396 GB, free: 5.512 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08802/0.6767, allocations: 50.35 MB / 0.6888 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.54/17.22, allocations: 19.27 kB / 0.6888 GB, free: 3.387 MB / 0.5137 GB (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)