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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0009919/0.0009918, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001028/0.001028, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1533/0.1533, allocations: 9.102 MB / 300.1 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003263, allocations: 12 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1143, allocations: 52.43 MB / 415.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.208/0.3223, allocations: 12.15 MB / 427.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006824/0.3292, allocations: 3.654 MB / 431.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001686/0.3309, allocations: 49.56 kB / 431.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.3321, allocations: 0.5615 MB / 431.9 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004816/0.337, allocations: 1.9 MB / 433.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.3373, allocations: 76.28 kB / 433.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00171/0.339, allocations: 1.101 MB / 435 MB, free: 33.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.3393, allocations: 166.2 kB / 435.2 MB, free: 33.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005139/0.3399, allocations: 0.5204 MB / 435.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006914/0.3406, allocations: 0.7734 MB / 436.5 MB, free: 33.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.3407, allocations: 101.2 kB / 436.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000881/0.3416, allocations: 0.5894 MB / 437.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005254/0.3422, allocations: 0.8576 MB / 438 MB, free: 33.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003488/0.3425, allocations: 0.5376 MB / 438.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.3446, allocations: 3.211 MB / 441.8 MB, free: 32.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3446, allocations: 0 / 441.8 MB, free: 32.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3446, allocations: 0 / 441.8 MB, free: 32.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.574e-05/0.3447, allocations: 3.938 kB / 441.8 MB, free: 32.54 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.006185/0.3508, allocations: 3.139 MB / 444.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3509, allocations: 13.02 kB / 444.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004849/0.3514, allocations: 468.2 kB / 445.4 MB, free: 30.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006613/0.358, allocations: 2.101 MB / 447.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00285/0.3609, allocations: 1.149 MB / 448.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.649e-05/0.361, allocations: 114.2 kB / 448.7 MB, free: 29.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.3613, allocations: 147.5 kB / 448.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00889/0.3702, allocations: 7.052 MB / 455.9 MB, free: 26.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.639e-05/0.3703, allocations: 16.75 kB / 455.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.3706, allocations: 75.11 kB / 456 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002461/0.373, allocations: 1.726 MB / 457.7 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.3869, allocations: 6.461 MB / 464.2 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03275/0.4197, allocations: 20.94 MB / 485.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.4263, allocations: 1.935 MB / 487.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00125/0.4276, allocations: 1.05 MB / 488.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.4277, allocations: 48.31 kB / 488.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=114): time 5.841e-06/0.4277, allocations: 3.938 kB / 488.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=114): time 0.01059/0.4383, allocations: 2.608 MB / 490.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.4384, allocations: 60.81 kB / 490.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00479/0.4432, allocations: 2.097 MB / 493 MB, free: 5.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.4434, allocations: 37.7 kB / 493 MB, free: 5.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.4448, allocations: 1.768 MB / 494.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005167/0.4453, allocations: 439 kB / 495.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.4454, allocations: 60 kB / 495.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.4457, allocations: 444.9 kB / 495.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002369/0.448, allocations: 1.017 MB / 496.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/0.4524, allocations: 2.91 MB / 499.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004384/0.4568, allocations: 1.739 MB / 0.4896 GB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.746e-05/0.4569, allocations: 20 kB / 0.4896 GB, free: 11.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01073/0.4676, allocations: 3.862 MB / 0.4934 GB, free: 7.941 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.641e-05/0.4677, allocations: 39.95 kB / 0.4934 GB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.4679, allocations: 68 kB / 0.4935 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.468, allocations: 96.78 kB / 0.4936 GB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.4718, allocations: 0.7291 MB / 0.4943 GB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001663/0.472, allocations: 131.5 kB / 0.4944 GB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/0.4758, allocations: 463 kB / 0.4949 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003581/0.4762, allocations: 196.1 kB / 0.495 GB, free: 6.234 MB / 366.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 (393): * Single equations (assignments): 389 * 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.003093/0.4793, allocations: 1.401 MB / 0.4964 GB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004206/0.4797, allocations: 173.8 kB / 0.4966 GB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.4834, allocations: 1.515 MB / 0.4981 GB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001366/0.4835, allocations: 19.98 kB / 0.4981 GB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.4836, allocations: 4 kB / 0.4981 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.4836, allocations: 7.984 kB / 0.4981 GB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0123/0.4959, allocations: 4.516 MB / 0.5025 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.496, allocations: 4 kB / 0.5025 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.4971, allocations: 168.4 kB / 0.5027 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.699e-05/0.4971, allocations: 8 kB / 0.5027 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.4972, allocations: 36.05 kB / 0.5027 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.646e-05/0.4973, allocations: 8 kB / 0.5027 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-05/0.4973, allocations: 11.94 kB / 0.5027 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005137/0.5025, allocations: 2.624 MB / 0.5053 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001436/0.5039, allocations: 286.5 kB / 0.5056 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004471/0.5044, allocations: 23.95 kB / 0.5056 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.5054, allocations: 45.59 kB / 0.5056 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5056, allocations: 68.38 kB / 0.5057 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/0.5057, allocations: 36 kB / 0.5057 GB, free: 10.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002563/0.5082, allocations: 1.368 MB / 0.5071 GB, free: 9.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5083, allocations: 3.938 kB / 0.5071 GB, free: 9.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002934/0.5112, allocations: 0.7095 MB / 0.5078 GB, free: 8.883 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (87): * Single equations (assignments): 83 * 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.004363/0.5156, allocations: 4.619 MB / 0.5123 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004438/0.52, allocations: 2.335 MB / 0.5145 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.5201, allocations: 0 / 0.5145 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009384/0.521, allocations: 0.6155 MB / 0.5152 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.5228, allocations: 293.9 kB / 0.5154 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05495/0.5778, allocations: 62.76 MB / 0.5767 GB, free: 52 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2253/0.8032, allocations: 2.343 MB / 0.579 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002561/0.8058, allocations: 1.03 MB / 0.58 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.8072, allocations: 1.044 MB / 0.581 GB, free: 119.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8072, allocations: 0 / 0.581 GB, free: 119.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08236/0.8896, allocations: 41.57 MB / 0.6216 GB, free: 107.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.8898, allocations: 164 kB / 0.6218 GB, free: 107.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.757/3.647, allocations: 4 kB / 0.6218 GB, free: 107.6 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/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) Environment - environmentSimulation: