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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 106.6 kB / 16.35 MB, free: 5.824 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.001855/0.001855, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04314/0.04314, allocations: 9.122 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.89 kB / 363.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.235, allocations: 51.42 MB / 414.8 MB, free: 24.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.006941/0.242, allocations: 8.593 MB / 423.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004322/0.2463, allocations: 2.723 MB / 426.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008012/0.2472, allocations: 31.94 kB / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006614/0.2479, allocations: 369.5 kB / 426.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.2504, allocations: 1.397 MB / 427.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.2508, allocations: 171.7 kB / 428.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002483/0.2533, allocations: 2.526 MB / 430.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.2546, allocations: 0.8773 MB / 431.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.2558, allocations: 0.8909 MB / 432.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.2571, allocations: 1.323 MB / 433.7 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002889/0.2574, allocations: 228 kB / 433.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.2587, allocations: 0.8855 MB / 434.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007221/0.2594, allocations: 1.208 MB / 436 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009632/0.2604, allocations: 1.569 MB / 437.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004708/0.2651, allocations: 5.029 MB / 442.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.2651, allocations: 0 / 442.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2651, allocations: 0 / 442.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.441e-05/0.2652, allocations: 0 / 442.6 MB, free: 12.92 MB / 318.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.01587/0.2811, allocations: 5.035 MB / 447.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.2812, allocations: 8.031 kB / 447.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006237/0.2874, allocations: 1.759 MB / 449.4 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/0.2901, allocations: 1.421 MB / 450.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.2902, allocations: 151.9 kB / 451 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004064/0.2907, allocations: 199.9 kB / 451.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01353/0.3042, allocations: 8.452 MB / 459.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.677e-05/0.3043, allocations: 23.72 kB / 459.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002784/0.3046, allocations: 95.86 kB / 459.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002824/0.3074, allocations: 1.883 MB / 461.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/0.3224, allocations: 8.128 MB / 469.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0347/0.3571, allocations: 25.84 MB / 495.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009395/0.3666, allocations: 2.859 MB / 498.4 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.3684, allocations: 1.076 MB / 499.5 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007452/0.3759, allocations: 5.015 MB / 0.4927 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.3759, allocations: 47.81 kB / 0.4928 GB, free: 13.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.407e-06/0.3759, allocations: 0 / 0.4928 GB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=173): time 0.0161/0.3921, allocations: 7.935 MB / 0.5005 GB, free: 5.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.3921, allocations: 68.72 kB / 0.5006 GB, free: 5.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003765/0.3959, allocations: 2.597 MB / 0.5031 GB, free: 2.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.3961, allocations: 45.7 kB / 0.5032 GB, free: 2.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.3975, allocations: 2.062 MB / 0.5052 GB, free: 344 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1856/0.5831, allocations: 0.6292 MB / 0.5058 GB, free: 88.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.5845, allocations: 0.799 MB / 0.5066 GB, free: 88.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.038e-05/0.5846, allocations: 306.4 kB / 0.5069 GB, free: 88.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/0.5866, allocations: 1.372 MB / 0.5082 GB, free: 88.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.5895, allocations: 3.533 MB / 0.5116 GB, free: 84.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00578/0.5953, allocations: 5.303 MB / 0.5168 GB, free: 80.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.635e-05/0.5953, allocations: 21.12 kB / 0.5168 GB, free: 80.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.006918/0.6023, allocations: 5.11 MB / 0.5218 GB, free: 78.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.906e-05/0.6023, allocations: 45.36 kB / 0.5219 GB, free: 78.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.955e-05/0.6024, allocations: 73.88 kB / 0.5219 GB, free: 78.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/0.603, allocations: 310.5 kB / 0.5222 GB, free: 78.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/0.6053, allocations: 0.8985 MB / 0.5231 GB, free: 78.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003007/0.6083, allocations: 3.282 MB / 0.5263 GB, free: 76.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/0.6108, allocations: 201.3 kB / 0.5265 GB, free: 76.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002842/0.6111, allocations: 239.8 kB / 0.5267 GB, free: 75.8 MB / 382.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.001717/0.6129, allocations: 1.572 MB / 0.5283 GB, free: 74.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.6131, allocations: 222.7 kB / 0.5285 GB, free: 74.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003058/0.6162, allocations: 2.35 MB / 0.5308 GB, free: 72.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.835e-05/0.6163, allocations: 32.81 kB / 0.5308 GB, free: 72.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6163, allocations: 4 kB / 0.5308 GB, free: 72.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.6163, allocations: 11.5 kB / 0.5308 GB, free: 72.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008025/0.6244, allocations: 6.22 MB / 0.5369 GB, free: 66.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-06/0.6244, allocations: 4 kB / 0.5369 GB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009192/0.6253, allocations: 253.4 kB / 0.5372 GB, free: 66.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004868/0.6258, allocations: 210.6 kB / 0.5374 GB, free: 66.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.203e-05/0.6259, allocations: 35.83 kB / 0.5374 GB, free: 66.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00223/0.6281, allocations: 2.864 MB / 0.5402 GB, free: 63.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6282, allocations: 8 kB / 0.5402 GB, free: 63.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/0.632, allocations: 3.583 MB / 0.5437 GB, free: 59.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/0.6326, allocations: 298.3 kB / 0.544 GB, free: 59.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.6328, allocations: 28 kB / 0.544 GB, free: 59.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007562/0.6336, allocations: 67.92 kB / 0.5441 GB, free: 59.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.6337, allocations: 104.1 kB / 0.5442 GB, free: 59.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-05/0.6338, allocations: 59.98 kB / 0.5442 GB, free: 59.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001809/0.6357, allocations: 1.672 MB / 0.5459 GB, free: 57.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6357, allocations: 0 / 0.5459 GB, free: 57.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002679/0.6384, allocations: 0.7043 MB / 0.5465 GB, free: 56.69 MB / 382.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.0004132/0.6388, allocations: 179.8 kB / 0.5467 GB, free: 56.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004761/0.6435, allocations: 3.489 MB / 0.5501 GB, free: 53.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.6436, allocations: 0 / 0.5501 GB, free: 53.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.6448, allocations: 1.238 MB / 0.5513 GB, free: 51.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/0.6464, allocations: 394.8 kB / 0.5517 GB, free: 51.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00794/0.6544, allocations: 6.787 MB / 0.5583 GB, free: 44.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/0.6563, allocations: 2.593 MB / 0.5609 GB, free: 41.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00218/0.6585, allocations: 1.216 MB / 0.5621 GB, free: 40.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.6589, allocations: 183.4 kB / 0.5622 GB, free: 40.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6589, allocations: 0 / 0.5622 GB, free: 40.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03732/0.6962, allocations: 25.32 MB / 0.587 GB, free: 15.4 MB / 382.1 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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)