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.00544/0.00544, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.002703/0.002703, allocations: 192 kB / 16.67 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1586/0.1586, allocations: 9.106 MB / 299.7 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.89 kB / 414.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2284, allocations: 51.43 MB / 465.6 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.007852/0.2363, allocations: 8.588 MB / 474.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004781/0.2411, allocations: 2.709 MB / 476.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007701/0.2419, allocations: 34.19 kB / 476.9 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007159/0.2426, allocations: 377.7 kB / 477.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.2453, allocations: 1.407 MB / 478.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004622/0.2458, allocations: 176.6 kB / 478.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003061/0.2489, allocations: 2.518 MB / 481.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.2499, allocations: 0.8736 MB / 482.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.251, allocations: 0.8886 MB / 483.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.2523, allocations: 1.316 MB / 484.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003877/0.2527, allocations: 230.4 kB / 484.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.2543, allocations: 0.8901 MB / 485.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008448/0.2552, allocations: 1.208 MB / 486.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009986/0.2562, allocations: 1.567 MB / 488.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004483/0.2607, allocations: 5.071 MB / 493.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2607, allocations: 5.312 kB / 493.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2607, allocations: 3.938 kB / 493.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001049/0.2608, allocations: 0 / 493.4 MB, free: 15.6 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.01693/0.2778, allocations: 5.124 MB / 498.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2778, allocations: 12.03 kB / 498.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008936/0.2787, allocations: 0.535 MB / 499.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007088/0.2858, allocations: 1.804 MB / 0.4892 GB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/0.2888, allocations: 1.441 MB / 0.4906 GB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.2889, allocations: 144 kB / 0.4907 GB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004558/0.2894, allocations: 203.8 kB / 0.4909 GB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.3047, allocations: 8.448 MB / 0.4991 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.458e-05/0.3048, allocations: 23.77 kB / 0.4992 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.3052, allocations: 95.86 kB / 0.4993 GB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003324/0.3085, allocations: 1.879 MB / 0.5011 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.3256, allocations: 8.128 MB / 0.509 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03591/0.3616, allocations: 25.9 MB / 0.5343 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009898/0.3715, allocations: 2.85 MB / 0.5371 GB, free: 6.535 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.3733, allocations: 1.076 MB / 0.5382 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007025/0.3803, allocations: 5.033 MB / 0.5431 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.3804, allocations: 47.81 kB / 0.5431 GB, free: 15.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 3.236e-06/0.3804, allocations: 0 / 0.5431 GB, free: 15.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=173): time 0.01874/0.3992, allocations: 8.425 MB / 0.5513 GB, free: 7.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3992, allocations: 68.72 kB / 0.5514 GB, free: 7.242 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003991/0.4032, allocations: 2.622 MB / 0.554 GB, free: 4.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.4034, allocations: 45.7 kB / 0.554 GB, free: 4.539 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.405, allocations: 2.146 MB / 0.5561 GB, free: 2.371 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006633/0.4057, allocations: 0.6665 MB / 0.5568 GB, free: 1.699 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/0.4068, allocations: 0.8026 MB / 0.5575 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.407, allocations: 313.1 kB / 0.5578 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.4092, allocations: 1.366 MB / 0.5592 GB, free: 15.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003943/0.4132, allocations: 3.54 MB / 0.5626 GB, free: 10.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006603/0.4198, allocations: 5.302 MB / 0.5678 GB, free: 4.254 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.035e-05/0.4199, allocations: 28 kB / 0.5678 GB, free: 4.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.008489/0.4284, allocations: 5.115 MB / 0.5728 GB, free: 15.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.731e-05/0.4284, allocations: 40.25 kB / 0.5729 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.471e-05/0.4285, allocations: 79.94 kB / 0.5729 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008462/0.4294, allocations: 327.1 kB / 0.5733 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/0.4321, allocations: 0.8968 MB / 0.5741 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00413/0.4362, allocations: 3.281 MB / 0.5773 GB, free: 10.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.4388, allocations: 191.9 kB / 0.5775 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003849/0.4392, allocations: 240 kB / 0.5778 GB, free: 9.91 MB / 462.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.002507/0.4417, allocations: 1.574 MB / 0.5793 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/0.4421, allocations: 242.4 kB / 0.5795 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004136/0.4462, allocations: 2.347 MB / 0.5818 GB, free: 5.719 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/0.4464, allocations: 27.98 kB / 0.5818 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.4464, allocations: 4 kB / 0.5818 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.4464, allocations: 7.969 kB / 0.5819 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2092/0.6556, allocations: 6.205 MB / 0.5879 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.6557, allocations: 3.094 kB / 0.5879 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.6569, allocations: 254 kB / 0.5882 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006993/0.6576, allocations: 215.7 kB / 0.5884 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/0.6577, allocations: 36.41 kB / 0.5884 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.6608, allocations: 2.86 MB / 0.5912 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6608, allocations: 3.094 kB / 0.5912 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0057/0.6665, allocations: 3.598 MB / 0.5947 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006853/0.6672, allocations: 319.1 kB / 0.595 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/0.6675, allocations: 29.89 kB / 0.595 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008544/0.6683, allocations: 70.64 kB / 0.5951 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.6686, allocations: 103.3 kB / 0.5952 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.6687, allocations: 53.52 kB / 0.5953 GB, free: 107.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.6716, allocations: 1.699 MB / 0.5969 GB, free: 106.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6716, allocations: 0 / 0.5969 GB, free: 106.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00301/0.6746, allocations: 0.7059 MB / 0.5976 GB, free: 106.8 MB / 462.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.005386/0.68, allocations: 4.256 MB / 0.6018 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00548/0.6855, allocations: 3.498 MB / 0.6052 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.6855, allocations: 1.531 kB / 0.6052 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.6871, allocations: 1.241 MB / 0.6064 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.6892, allocations: 388.3 kB / 0.6068 GB, free: 102.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03257/0.7218, allocations: 29.08 MB / 0.6352 GB, free: 82.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/0.7239, allocations: 2.595 MB / 0.6377 GB, free: 79.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002229/0.7261, allocations: 1.224 MB / 0.6389 GB, free: 78.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.7274, allocations: 1.327 MB / 0.6402 GB, free: 77.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.7274, allocations: 0 / 0.6402 GB, free: 77.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07599/0.8034, allocations: 49.65 MB / 0.6887 GB, free: 27.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/17.94, allocations: 24.17 kB / 0.6887 GB, free: 27.8 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)