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.000772/0.0007719, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.000923/0.0009231, allocations: 168.7 kB / 15.95 MB, free: 204 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.313/1.313, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.191/0.191, allocations: 9.108 MB / 300.2 MB, free: 2.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003344, allocations: 8 kB / 363.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09667, allocations: 52.43 MB / 415.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.1922/0.2889, allocations: 12.85 MB / 428.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00639/0.2953, allocations: 3.54 MB / 432 MB, free: 33.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.2968, allocations: 50.91 kB / 432.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.2978, allocations: 0.583 MB / 432.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003938/0.3018, allocations: 2.188 MB / 434.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.3021, allocations: 81.78 kB / 434.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001953/0.304, allocations: 2.249 MB / 437.2 MB, free: 32.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.3043, allocations: 184.4 kB / 437.4 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005885/0.3049, allocations: 0.6215 MB / 438 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009626/0.3059, allocations: 1.047 MB / 439 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.306, allocations: 100.1 kB / 439.1 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008578/0.3069, allocations: 0.6053 MB / 439.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006012/0.3075, allocations: 0.9205 MB / 440.6 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.3079, allocations: 0.5407 MB / 441.2 MB, free: 32.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002047/0.3099, allocations: 3.207 MB / 444.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3099, allocations: 0 / 444.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3099, allocations: 0 / 444.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.366e-05/0.31, allocations: 0 / 444.4 MB, free: 31.66 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.005072/0.3151, allocations: 3.097 MB / 447.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3151, allocations: 9.344 kB / 447.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000419/0.3155, allocations: 466.4 kB / 448 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005242/0.3208, allocations: 1.747 MB / 449.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.3224, allocations: 1.144 MB / 450.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.715e-05/0.3225, allocations: 113.9 kB / 451 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/0.3227, allocations: 153.4 kB / 451.1 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008604/0.3313, allocations: 7.028 MB / 458.1 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.163e-05/0.3314, allocations: 19.75 kB / 458.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001992/0.3316, allocations: 75.8 kB / 458.2 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002144/0.3338, allocations: 1.725 MB / 459.9 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.3446, allocations: 6.43 MB / 466.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02888/0.3735, allocations: 20.97 MB / 487.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/0.3772, allocations: 1.932 MB / 489.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008543/0.3781, allocations: 0.5948 MB / 489.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004281/0.3824, allocations: 3.356 MB / 493.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.3824, allocations: 37.88 kB / 493.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.895e-06/0.3824, allocations: 0 / 493.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.004007/0.3864, allocations: 1.803 MB / 495.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.3865, allocations: 59.97 kB / 495.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002956/0.3894, allocations: 2.18 MB / 497.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.3895, allocations: 37.7 kB / 497.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.3907, allocations: 1.818 MB / 499.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.3911, allocations: 369 kB / 499.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3912, allocations: 63.94 kB / 499.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.3915, allocations: 448.8 kB / 0.4883 GB, free: 14.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.3932, allocations: 0.9938 MB / 0.4893 GB, free: 13.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002959/0.3962, allocations: 2.886 MB / 0.4921 GB, free: 9.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002577/0.3988, allocations: 1.711 MB / 0.4938 GB, free: 7.727 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.644e-05/0.3988, allocations: 20 kB / 0.4938 GB, free: 7.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006442/0.4053, allocations: 3.806 MB / 0.4975 GB, free: 3.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.259e-05/0.4054, allocations: 32 kB / 0.4975 GB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.4055, allocations: 68 kB / 0.4976 GB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001025/0.4056, allocations: 100 kB / 0.4977 GB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/0.4076, allocations: 0.7096 MB / 0.4984 GB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000113/0.4077, allocations: 135.4 kB / 0.4985 GB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.4099, allocations: 471.3 kB / 0.499 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/0.4102, allocations: 192 kB / 0.4991 GB, free: 2.211 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 (387): * Single equations (assignments): 383 * 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.00217/0.4124, allocations: 1.397 MB / 0.5005 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.4126, allocations: 169.8 kB / 0.5007 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.4148, allocations: 1.194 MB / 0.5018 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.503e-05/0.4149, allocations: 20.88 kB / 0.5019 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.4149, allocations: 3.984 kB / 0.5019 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.4149, allocations: 0 / 0.5019 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00794/0.4229, allocations: 3.935 MB / 0.5057 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.4229, allocations: 4 kB / 0.5057 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005686/0.4235, allocations: 132.1 kB / 0.5058 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.4235, allocations: 8 kB / 0.5058 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.804e-05/0.4236, allocations: 25.42 kB / 0.5059 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.111e-05/0.4236, allocations: 12 kB / 0.5059 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.4236, allocations: 4 kB / 0.5059 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.4262, allocations: 1.945 MB / 0.5078 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004831/0.4267, allocations: 278.2 kB / 0.508 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000298/0.427, allocations: 17.88 kB / 0.5081 GB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.4276, allocations: 35.92 kB / 0.5081 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.4277, allocations: 48.5 kB / 0.5081 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.897e-05/0.4278, allocations: 33.16 kB / 0.5082 GB, free: 8.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.4299, allocations: 1.4 MB / 0.5095 GB, free: 7.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4299, allocations: 0 / 0.5095 GB, free: 7.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002822/0.4327, allocations: 0.7092 MB / 0.5102 GB, free: 6.723 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 (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.003191/0.4359, allocations: 2.585 MB / 0.5128 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003793/0.4397, allocations: 2.231 MB / 0.5149 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4398, allocations: 0 / 0.5149 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007398/0.4405, allocations: 0.52 MB / 0.5154 GB, free: 1.344 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.4422, allocations: 294 kB / 0.5157 GB, free: 1.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/0.4736, allocations: 16.52 MB / 0.5319 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003233/0.4769, allocations: 2.282 MB / 0.5341 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002621/0.4795, allocations: 0.9924 MB / 0.5351 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.4811, allocations: 1.034 MB / 0.5361 GB, free: 10.61 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4811, allocations: 0 / 0.5361 GB, free: 10.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06598/0.5471, allocations: 41.1 MB / 0.5762 GB, free: 1.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.5474, allocations: 172.7 kB / 0.5764 GB, free: 1.598 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/2.892, allocations: 0 / 0.5764 GB, free: 1.598 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: