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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") translateModel(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 183.2 kB / 15.98 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009737/0.0009737, allocations: 100.8 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04004/0.04004, allocations: 8.931 MB / 349 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000974/0.000974, allocations: 51.67 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08546/0.08645, allocations: 51.4 MB / 462.5 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.2015/0.288, allocations: 23.56 MB / 486.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009631/0.2976, allocations: 5.543 MB / 491.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003305/0.301, allocations: 87.38 kB / 491.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007331/0.3018, allocations: 306.8 kB / 492 MB, free: 9.973 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002629/0.3044, allocations: 1.323 MB / 493.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/0.3048, allocations: 140.2 kB / 493.5 MB, free: 9.438 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.3083, allocations: 3.517 MB / 497 MB, free: 8.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.3093, allocations: 0.798 MB / 497.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.3104, allocations: 0.7702 MB / 498.5 MB, free: 7.805 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.3119, allocations: 1.323 MB / 499.9 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002859/0.3122, allocations: 132.7 kB / 500 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.3137, allocations: 0.8284 MB / 0.4891 GB, free: 7.266 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.3147, allocations: 1.127 MB / 0.4902 GB, free: 6.875 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.3158, allocations: 1.477 MB / 0.4916 GB, free: 5.75 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003996/0.3199, allocations: 4.675 MB / 0.4962 GB, free: 2.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3199, allocations: 1.375 kB / 0.4962 GB, free: 2.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3199, allocations: 0 / 0.4962 GB, free: 2.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.065e-05/0.32, allocations: 0 / 0.4962 GB, free: 2.68 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1163 * Number of variables: 1163 Notification: Performance of Generate backend data structure: time 0.01768/0.3376, allocations: 5.04 MB / 0.5011 GB, free: 15.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/0.3377, allocations: 10.41 kB / 0.5011 GB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006816/0.3445, allocations: 1.769 MB / 0.5029 GB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004249/0.3488, allocations: 1.443 MB / 0.5043 GB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.349, allocations: 147.5 kB / 0.5044 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005051/0.3495, allocations: 195.1 kB / 0.5046 GB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.3635, allocations: 8.46 MB / 0.5129 GB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.34e-05/0.3637, allocations: 23.78 kB / 0.5129 GB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002881/0.364, allocations: 95.62 kB / 0.513 GB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002984/0.3669, allocations: 1.886 MB / 0.5148 GB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/0.3835, allocations: 8.127 MB / 0.5227 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0534/0.4369, allocations: 26.01 MB / 0.5482 GB, free: 308 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01345/0.4504, allocations: 2.862 MB / 0.5509 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002681/0.4532, allocations: 1.072 MB / 0.552 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/0.4643, allocations: 5.025 MB / 0.5569 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/0.4644, allocations: 43.88 kB / 0.5569 GB, free: 6.691 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 7.364e-06/0.4645, allocations: 4 kB / 0.5569 GB, free: 6.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=173): time 0.02411/0.4886, allocations: 7.935 MB / 0.5647 GB, free: 14.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.4887, allocations: 64.72 kB / 0.5648 GB, free: 14.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00568/0.4944, allocations: 2.602 MB / 0.5673 GB, free: 11.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004119/0.4948, allocations: 51.73 kB / 0.5673 GB, free: 11.87 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002084/0.4969, allocations: 2.062 MB / 0.5694 GB, free: 9.805 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/0.498, allocations: 0.6366 MB / 0.57 GB, free: 9.172 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/0.4996, allocations: 0.8043 MB / 0.5708 GB, free: 8.359 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4998, allocations: 313 kB / 0.5711 GB, free: 8.051 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003407/0.5032, allocations: 1.37 MB / 0.5724 GB, free: 6.676 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005161/0.5084, allocations: 3.537 MB / 0.5759 GB, free: 2.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009453/0.5178, allocations: 5.323 MB / 0.5811 GB, free: 11.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-05/0.518, allocations: 20 kB / 0.5811 GB, free: 11.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01444/0.5324, allocations: 5.128 MB / 0.5861 GB, free: 6.543 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.837e-05/0.5325, allocations: 38.66 kB / 0.5861 GB, free: 6.508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.5327, allocations: 76 kB / 0.5862 GB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.5338, allocations: 316.5 kB / 0.5865 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004081/0.5379, allocations: 0.8968 MB / 0.5874 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004993/0.5429, allocations: 3.028 MB / 0.5903 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004767/0.5477, allocations: 195.9 kB / 0.5905 GB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008531/0.5486, allocations: 239.1 kB / 0.5907 GB, free: 1.637 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * 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 (491): * Single equations (assignments): 485 * 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.004155/0.5527, allocations: 1.578 MB / 0.5923 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006292/0.5534, allocations: 237 kB / 0.5925 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005752/0.5591, allocations: 2.335 MB / 0.5948 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001467/0.5593, allocations: 35.11 kB / 0.5948 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.5593, allocations: 0 / 0.5948 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.5594, allocations: 7.969 kB / 0.5948 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.5725, allocations: 6.215 MB / 0.6009 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.5726, allocations: 0 / 0.6009 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009872/0.5736, allocations: 251.6 kB / 0.6011 GB, free: 6.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005601/0.5741, allocations: 205.5 kB / 0.6013 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.425e-05/0.5742, allocations: 38.09 kB / 0.6014 GB, free: 6.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.5771, allocations: 2.605 MB / 0.6039 GB, free: 3.879 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5771, allocations: 4 kB / 0.6039 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02451/0.6016, allocations: 15.85 MB / 0.6194 GB, free: 3.637 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/0.6022, allocations: 302.2 kB / 0.6197 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.6025, allocations: 35.92 kB / 0.6197 GB, free: 3.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008655/0.6033, allocations: 78.41 kB / 0.6198 GB, free: 3.211 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.6035, allocations: 93.12 kB / 0.6199 GB, free: 3.117 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.6037, allocations: 47.98 kB / 0.6199 GB, free: 3.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00239/0.6061, allocations: 1.684 MB / 0.6216 GB, free: 1.371 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6061, allocations: 0 / 0.6216 GB, free: 1.371 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003265/0.6093, allocations: 0.9323 MB / 0.6225 GB, free: 452 kB / 442.7 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.0004341/0.6098, allocations: 212.1 kB / 0.6227 GB, free: 236 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005527/0.6153, allocations: 3.468 MB / 0.6261 GB, free: 12.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6153, allocations: 0 / 0.6261 GB, free: 12.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.6169, allocations: 1.245 MB / 0.6273 GB, free: 11.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/0.6188, allocations: 363.1 kB / 0.6276 GB, free: 11.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.6325, allocations: 9.763 MB / 0.6372 GB, free: 1.238 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.171/0.8036, allocations: 2.644 MB / 0.6398 GB, free: 152.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003552/0.8072, allocations: 1.245 MB / 0.641 GB, free: 152.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005695/0.8078, allocations: 183.5 kB / 0.6411 GB, free: 152.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8078, allocations: 3.781 kB / 0.6411 GB, free: 152.6 MB / 458.7 MB Notification: Performance of Templates: time 0.04733/0.8551, allocations: 30.7 MB / 0.6711 GB, free: 138.4 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.makefile (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 & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)