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/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: "" <> 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/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 173.2 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 221.5 MB / 229.6 MB, free: 3.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009069/0.0009069, allocations: 90.88 kB / 280.5 MB, free: 1.156 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04049/0.04049, allocations: 8.838 MB / 340.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.709e-05, allocations: 0 / 398.8 MB, free: 66.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09335, allocations: 52.39 MB / 451.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4382/0.5316, allocations: 85.29 MB / 0.5239 GB, free: 7.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.532, allocations: 76.64 kB / 0.524 GB, free: 7.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1286/0.6606, allocations: 51.18 MB / 0.5739 GB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.6607, allocations: 0 / 0.5739 GB, free: 11.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.368e-05/0.6608, allocations: 40 kB / 0.574 GB, free: 11.57 MB / 394.7 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.009873/0.6706, allocations: 2.577 MB / 0.5765 GB, free: 8.941 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.6707, allocations: 12.02 kB / 0.5765 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009299/0.68, allocations: 1.864 MB / 0.5783 GB, free: 7.059 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00487/0.6849, allocations: 1.477 MB / 0.5798 GB, free: 5.539 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.6852, allocations: 76 kB / 0.5798 GB, free: 5.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001732/0.6869, allocations: 147.8 kB / 0.58 GB, free: 5.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00951/0.6964, allocations: 4.706 MB / 0.5846 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/0.7099, allocations: 6.172 MB / 0.5906 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-05/0.7101, allocations: 19.81 kB / 0.5906 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003473/0.7104, allocations: 12 kB / 0.5906 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001184/0.7116, allocations: 0.7819 MB / 0.5914 GB, free: 9.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03028/0.7419, allocations: 20.01 MB / 0.6109 GB, free: 4.887 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.7446, allocations: 1.766 MB / 0.6127 GB, free: 3.004 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008082/0.7454, allocations: 0.5549 MB / 0.6132 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005489/0.7509, allocations: 3.273 MB / 0.6164 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.751, allocations: 35.12 kB / 0.6164 GB, free: 14.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 5.561e-06/0.751, allocations: 0 / 0.6164 GB, free: 14.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.002653/0.7537, allocations: 1.165 MB / 0.6176 GB, free: 13.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.7538, allocations: 63.91 kB / 0.6176 GB, free: 13.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.7566, allocations: 1.652 MB / 0.6192 GB, free: 11.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.7567, allocations: 25.7 kB / 0.6193 GB, free: 11.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001495/0.7582, allocations: 1.882 MB / 0.6211 GB, free: 9.961 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000409/0.7586, allocations: 363.3 kB / 0.6215 GB, free: 9.602 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.7587, allocations: 4 kB / 0.6215 GB, free: 9.598 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000339/0.759, allocations: 489.9 kB / 0.6219 GB, free: 9.109 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.7605, allocations: 0.9631 MB / 0.6229 GB, free: 8.145 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003205/0.7637, allocations: 2.979 MB / 0.6258 GB, free: 4.152 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.7667, allocations: 1.732 MB / 0.6275 GB, free: 2.422 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-05/0.7667, allocations: 20 kB / 0.6275 GB, free: 2.402 MB / 442.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007154/0.7739, allocations: 3.524 MB / 0.6309 GB, free: 14.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/0.774, allocations: 36.19 kB / 0.631 GB, free: 14.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.592e-05/0.7741, allocations: 72 kB / 0.631 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001189/0.7742, allocations: 111.9 kB / 0.6311 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002405/0.7766, allocations: 0.7531 MB / 0.6319 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001212/0.7768, allocations: 147.4 kB / 0.632 GB, free: 13.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/0.7792, allocations: 395.3 kB / 0.6324 GB, free: 13.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003068/0.7795, allocations: 208 kB / 0.6326 GB, free: 13.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (410): * Single equations (assignments): 406 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003823/0.7799, allocations: 275 kB / 0.6329 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001543/0.7815, allocations: 0.9734 MB / 0.6338 GB, free: 11.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.7817, allocations: 150 kB / 0.6339 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.7834, allocations: 1.07 MB / 0.635 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/0.7836, allocations: 27.97 kB / 0.635 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.7836, allocations: 4.062 kB / 0.635 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.7836, allocations: 3.984 kB / 0.635 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006017/0.7896, allocations: 3.132 MB / 0.6381 GB, free: 7.434 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.7896, allocations: 4 kB / 0.6381 GB, free: 7.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006548/0.7903, allocations: 140.1 kB / 0.6382 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.7903, allocations: 4 kB / 0.6382 GB, free: 7.289 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/0.7904, allocations: 12 kB / 0.6382 GB, free: 7.277 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.7904, allocations: 4 kB / 0.6382 GB, free: 7.273 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.7904, allocations: 4 kB / 0.6382 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.7928, allocations: 1.936 MB / 0.6401 GB, free: 5.223 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004572/0.7933, allocations: 254.9 kB / 0.6404 GB, free: 4.953 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.7935, allocations: 8 kB / 0.6404 GB, free: 4.945 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005571/0.7941, allocations: 19.97 kB / 0.6404 GB, free: 4.926 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.7942, allocations: 56.39 kB / 0.6405 GB, free: 4.871 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.81e-05/0.7942, allocations: 27.98 kB / 0.6405 GB, free: 4.844 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001751/0.796, allocations: 1.113 MB / 0.6416 GB, free: 3.734 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.796, allocations: 0 / 0.6416 GB, free: 3.734 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003105/0.7991, allocations: 0.6764 MB / 0.6422 GB, free: 3.055 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.r[1],body.v[1],body.phi,slipBasedRolling.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2914/1.091, allocations: 3.157 MB / 0.6453 GB, free: 133.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004576/1.095, allocations: 2.116 MB / 0.6474 GB, free: 133.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/1.095, allocations: 0 / 0.6474 GB, free: 133.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007568/1.096, allocations: 496.7 kB / 0.6479 GB, free: 133.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/1.097, allocations: 171.6 kB / 0.648 GB, free: 133.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/1.111, allocations: 5.032 MB / 0.6529 GB, free: 132.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003038/1.114, allocations: 2.339 MB / 0.6552 GB, free: 131.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003371/1.117, allocations: 1 MB / 0.6562 GB, free: 131.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.119, allocations: 1.06 MB / 0.6572 GB, free: 131.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.234e-06/1.119, allocations: 5.188 kB / 0.6572 GB, free: 131.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07193/1.191, allocations: 36.47 MB / 0.6929 GB, free: 125.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/1.192, allocations: 137.1 kB / 0.693 GB, free: 125.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/3.908, allocations: 0 / 0.693 GB, free: 125.4 MB / 458.7 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/linux/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)