Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",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.0007593/0.0007593, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004172/0.004172, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.24/1.24, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1377/0.1377, allocations: 9.099 MB / 300.5 MB, free: 2.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002808, allocations: 12 kB / 363.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08523/0.08552, allocations: 52.44 MB / 416.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.1682/0.2538, allocations: 13.74 MB / 430 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.2589, allocations: 3.728 MB / 433.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009698/0.2599, allocations: 46.38 kB / 433.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.2604, allocations: 249.5 kB / 434 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001619/0.262, allocations: 1.069 MB / 435.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.2622, allocations: 71.42 kB / 435.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.264, allocations: 2.883 MB / 438 MB, free: 33.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.2642, allocations: 179.7 kB / 438.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.2646, allocations: 0.5815 MB / 438.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000821/0.2655, allocations: 1.057 MB / 439.8 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.2656, allocations: 106.1 kB / 439.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007905/0.2664, allocations: 0.7003 MB / 440.6 MB, free: 32.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.267, allocations: 0.9569 MB / 441.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006721/0.2676, allocations: 1.235 MB / 442.8 MB, free: 31.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.2699, allocations: 3.93 MB / 446.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.2699, allocations: 0 / 446.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2699, allocations: 0 / 446.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.457e-05/0.2699, allocations: 0 / 446.8 MB, free: 30.71 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.005193/0.2751, allocations: 3.08 MB / 449.8 MB, free: 29.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2752, allocations: 12.44 kB / 449.8 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003904/0.2756, allocations: 465.3 kB / 450.3 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005507/0.2811, allocations: 1.743 MB / 452 MB, free: 28.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.2824, allocations: 1.16 MB / 453.2 MB, free: 28.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/0.2824, allocations: 108.9 kB / 453.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.2827, allocations: 145.4 kB / 453.5 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006818/0.2895, allocations: 7.05 MB / 460.5 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.2896, allocations: 32.19 kB / 460.5 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.2898, allocations: 68.88 kB / 460.6 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/0.2922, allocations: 1.724 MB / 462.3 MB, free: 24.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/0.3023, allocations: 6.461 MB / 468.8 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.3249, allocations: 20.97 MB / 489.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003356/0.3283, allocations: 1.934 MB / 491.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007809/0.3291, allocations: 0.6038 MB / 492.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0032/0.3323, allocations: 3.346 MB / 495.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.3324, allocations: 43.12 kB / 495.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.344e-06/0.3324, allocations: 0 / 495.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003204/0.3356, allocations: 1.819 MB / 497.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.3356, allocations: 59.97 kB / 497.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002368/0.338, allocations: 2.188 MB / 499.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.2e-05/0.3381, allocations: 37.7 kB / 499.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009791/0.3391, allocations: 1.824 MB / 0.4898 GB, free: 13.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.3393, allocations: 371.3 kB / 0.4902 GB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.3396, allocations: 264.4 kB / 0.4905 GB, free: 12.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.849e-05/0.3397, allocations: 301.1 kB / 0.4907 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.3411, allocations: 0.9977 MB / 0.4917 GB, free: 11.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002467/0.3436, allocations: 2.905 MB / 0.4946 GB, free: 7.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004069/0.3477, allocations: 4.191 MB / 0.4986 GB, free: 2.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.7e-05/0.3477, allocations: 20 kB / 0.4987 GB, free: 2.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.005519/0.3533, allocations: 3.822 MB / 0.5024 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.3533, allocations: 42.28 kB / 0.5024 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-05/0.3534, allocations: 64 kB / 0.5025 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.122e-05/0.3535, allocations: 92 kB / 0.5026 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/0.3554, allocations: 0.7174 MB / 0.5033 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.818e-05/0.3555, allocations: 127.5 kB / 0.5034 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.3573, allocations: 471 kB / 0.5039 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.3575, allocations: 196.5 kB / 0.504 GB, free: 12.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (387): * Single equations (assignments): 383 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001791/0.3593, allocations: 1.386 MB / 0.5054 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.3595, allocations: 177.7 kB / 0.5056 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.3613, allocations: 1.196 MB / 0.5067 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.502e-05/0.3615, allocations: 31.92 kB / 0.5068 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3615, allocations: 0 / 0.5068 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3615, allocations: 3.984 kB / 0.5068 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005353/0.3668, allocations: 3.936 MB / 0.5106 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3669, allocations: 3.938 kB / 0.5106 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/0.3674, allocations: 131.8 kB / 0.5107 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3674, allocations: 8 kB / 0.5107 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.3675, allocations: 28.25 kB / 0.5108 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.3675, allocations: 7.938 kB / 0.5108 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3675, allocations: 4 kB / 0.5108 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/0.3699, allocations: 1.953 MB / 0.5127 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002894/0.3702, allocations: 274.7 kB / 0.513 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.3704, allocations: 16 kB / 0.513 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.371, allocations: 43.89 kB / 0.513 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.371, allocations: 45.23 kB / 0.5131 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.3711, allocations: 28 kB / 0.5131 GB, free: 3.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001727/0.3728, allocations: 1.42 MB / 0.5145 GB, free: 1.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3728, allocations: 0 / 0.5145 GB, free: 1.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002045/0.3749, allocations: 0.7081 MB / 0.5152 GB, free: 1.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.phi) * 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 (69): * Single equations (assignments): 65 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002834/0.3777, allocations: 2.591 MB / 0.5177 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003304/0.3811, allocations: 2.24 MB / 0.5199 GB, free: 12.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3811, allocations: 0 / 0.5199 GB, free: 12.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000679/0.3818, allocations: 0.5305 MB / 0.5204 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.3837, allocations: 286.4 kB / 0.5207 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0305/0.4142, allocations: 24.56 MB / 0.5447 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/0.4163, allocations: 2.278 MB / 0.5469 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002172/0.4185, allocations: 1 MB / 0.5479 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/0.4196, allocations: 1.03 MB / 0.5489 GB, free: 11.41 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4197, allocations: 0 / 0.5489 GB, free: 11.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2088/0.6285, allocations: 35.37 MB / 0.5834 GB, free: 122.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001256/0.6287, allocations: 182.1 kB / 0.5836 GB, free: 122.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.32/2.949, allocations: 3 kB / 0.5836 GB, free: 122.2 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CounterSpin_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CounterSpin.fmu > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)