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.001248/0.001248, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.517/1.517, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.001026/0.001026, allocations: 85.56 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04118/0.04118, allocations: 8.829 MB / 345.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.746e-05/2.748e-05, allocations: 4 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.08919, allocations: 52.39 MB / 458.1 MB, free: 8.934 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3393/0.4285, allocations: 85.64 MB / 0.531 GB, free: 132 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.4288, allocations: 69.78 kB / 0.531 GB, free: 100 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1269/0.5557, allocations: 52.16 MB / 0.582 GB, free: 2.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5557, allocations: 0 / 0.582 GB, free: 2.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.144e-05/0.5558, allocations: 44 kB / 0.582 GB, free: 2.035 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.01097/0.5668, allocations: 2.577 MB / 0.5845 GB, free: 15.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.5668, allocations: 12.03 kB / 0.5845 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001788/0.5686, allocations: 0.4951 MB / 0.585 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008917/0.5776, allocations: 1.864 MB / 0.5868 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/0.5824, allocations: 1.481 MB / 0.5883 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.5826, allocations: 180.7 kB / 0.5884 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001424/0.584, allocations: 243.8 kB / 0.5887 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/0.597, allocations: 6.576 MB / 0.5951 GB, free: 4.191 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.5971, allocations: 23.81 kB / 0.5951 GB, free: 4.168 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.5976, allocations: 111.9 kB / 0.5952 GB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001254/0.5988, allocations: 0.778 MB / 0.596 GB, free: 3.277 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/0.6114, allocations: 6.264 MB / 0.6021 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03413/0.6456, allocations: 20.96 MB / 0.6226 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003933/0.6495, allocations: 1.902 MB / 0.6244 GB, free: 5.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008577/0.6504, allocations: 0.5814 MB / 0.625 GB, free: 4.988 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005221/0.6557, allocations: 3.35 MB / 0.6283 GB, free: 1.324 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.6557, allocations: 39.12 kB / 0.6283 GB, free: 1.277 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 4.148e-06/0.6557, allocations: 0 / 0.6283 GB, free: 1.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.003317/0.6591, allocations: 1.332 MB / 0.6296 GB, free: 15.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.6591, allocations: 59.97 kB / 0.6297 GB, free: 15.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002998/0.6621, allocations: 1.956 MB / 0.6316 GB, free: 13.91 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.6622, allocations: 33.7 kB / 0.6316 GB, free: 13.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.6633, allocations: 1.813 MB / 0.6334 GB, free: 12.03 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.6636, allocations: 375.2 kB / 0.6337 GB, free: 11.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.6637, allocations: 63.98 kB / 0.6338 GB, free: 11.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.664, allocations: 448.6 kB / 0.6342 GB, free: 11.15 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.6654, allocations: 0.9472 MB / 0.6352 GB, free: 10.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002466/0.6679, allocations: 2.842 MB / 0.6379 GB, free: 6.418 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/0.6701, allocations: 1.665 MB / 0.6396 GB, free: 4.754 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-05/0.6701, allocations: 23.94 kB / 0.6396 GB, free: 4.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.005446/0.6756, allocations: 3.716 MB / 0.6432 GB, free: 1.008 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.6756, allocations: 37.25 kB / 0.6432 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.346e-05/0.6757, allocations: 68 kB / 0.6433 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.832e-05/0.6758, allocations: 96.78 kB / 0.6434 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/0.678, allocations: 0.7135 MB / 0.6441 GB, free: 100 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2747/0.9526, allocations: 129.7 kB / 0.6442 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.9565, allocations: 461.8 kB / 0.6447 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006791/0.9572, allocations: 195.5 kB / 0.6449 GB, free: 128.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 305 * 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 (386): * Single equations (assignments): 382 * 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.0006122/0.9578, allocations: 333.4 kB / 0.6452 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005408/0.9584, allocations: 173.6 kB / 0.6453 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.961, allocations: 1.139 MB / 0.6464 GB, free: 128.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001281/0.9612, allocations: 22.11 kB / 0.6465 GB, free: 128.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.9612, allocations: 0 / 0.6465 GB, free: 128.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.9612, allocations: 4.516 kB / 0.6465 GB, free: 128.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007634/0.9689, allocations: 3.887 MB / 0.6503 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.9689, allocations: 2.922 kB / 0.6503 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006601/0.9696, allocations: 131.5 kB / 0.6504 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/0.9696, allocations: 9.844 kB / 0.6504 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.965e-05/0.9697, allocations: 23.3 kB / 0.6504 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.9697, allocations: 9.625 kB / 0.6504 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.9697, allocations: 1.969 kB / 0.6504 GB, free: 128 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.9724, allocations: 2.017 MB / 0.6524 GB, free: 127.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000765/0.9732, allocations: 283.9 kB / 0.6527 GB, free: 127.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.9734, allocations: 19.69 kB / 0.6527 GB, free: 127.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.974, allocations: 38.22 kB / 0.6527 GB, free: 127.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.9742, allocations: 44.42 kB / 0.6528 GB, free: 127.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.568e-05/0.9742, allocations: 34.62 kB / 0.6528 GB, free: 127.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002607/0.9769, allocations: 1.379 MB / 0.6542 GB, free: 127.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.9769, allocations: 0 / 0.6542 GB, free: 127.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003494/0.9804, allocations: 0.711 MB / 0.6549 GB, free: 127.1 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.003145/0.9835, allocations: 3.241 MB / 0.658 GB, free: 125.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004563/0.9881, allocations: 2.169 MB / 0.6601 GB, free: 125.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.9882, allocations: 0 / 0.6601 GB, free: 125.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008556/0.989, allocations: 0.4985 MB / 0.6606 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.9909, allocations: 280.6 kB / 0.6609 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/1.003, allocations: 5.175 MB / 0.6659 GB, free: 124.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/1.005, allocations: 2.337 MB / 0.6682 GB, free: 123.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002518/1.008, allocations: 0.998 MB / 0.6692 GB, free: 123.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/1.009, allocations: 1.054 MB / 0.6702 GB, free: 123 MB / 458.7 MB Notification: Performance of SimCode: time 9.21e-07/1.009, allocations: 0 / 0.6702 GB, free: 123 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06244/1.072, allocations: 41.51 MB / 0.7108 GB, free: 105.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/1.072, allocations: 142.2 kB / 0.7109 GB, free: 105.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.046/4.118, allocations: 0 / 0.7109 GB, free: 105.1 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)