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.001169/0.001169, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1639/0.1639, allocations: 9.1 MB / 299.5 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 60.09 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1108, allocations: 51.44 MB / 413.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008507/0.1194, allocations: 6.858 MB / 420.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.1237, allocations: 2.367 MB / 422.7 MB, free: 172 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.1243, allocations: 24 kB / 422.7 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1777/0.3021, allocations: 285 kB / 423 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002872/0.305, allocations: 1.133 MB / 424.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.3054, allocations: 77.7 kB / 424.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002161/0.3075, allocations: 2.031 MB / 426.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003054/0.3079, allocations: 175.2 kB / 426.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007871/0.3087, allocations: 0.7058 MB / 427.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008779/0.3095, allocations: 1.058 MB / 428.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.3098, allocations: 188.1 kB / 428.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.3109, allocations: 0.7519 MB / 429.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000588/0.3115, allocations: 1.012 MB / 430.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008475/0.3123, allocations: 1.29 MB / 431.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.3159, allocations: 4.138 MB / 435.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3159, allocations: 2.438 kB / 435.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3159, allocations: 0.9375 kB / 435.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.048e-05/0.316, allocations: 0 / 435.6 MB, free: 34.04 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.007633/0.3236, allocations: 3.588 MB / 439.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3237, allocations: 9.625 kB / 439.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005039/0.3242, allocations: 467.1 kB / 439.6 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006031/0.3302, allocations: 1.702 MB / 441.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/0.3323, allocations: 1.158 MB / 442.5 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.842e-05/0.3324, allocations: 112.7 kB / 442.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003321/0.3327, allocations: 142.9 kB / 442.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008/0.3407, allocations: 7.057 MB / 449.8 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.599e-05/0.3408, allocations: 18.5 kB / 449.8 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002124/0.341, allocations: 72.98 kB / 449.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/0.3433, allocations: 1.723 MB / 451.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.3537, allocations: 6.47 MB / 458.1 MB, free: 25.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02782/0.3815, allocations: 20.96 MB / 479 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004561/0.3861, allocations: 1.931 MB / 480.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009722/0.3871, allocations: 0.6028 MB / 481.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004423/0.3916, allocations: 3.337 MB / 484.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.3916, allocations: 45.58 kB / 484.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.725e-06/0.3916, allocations: 0 / 484.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003578/0.3952, allocations: 1.821 MB / 486.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.3953, allocations: 59.06 kB / 486.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/0.3979, allocations: 2.188 MB / 489 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.812e-05/0.3979, allocations: 37.7 kB / 489 MB, free: 6.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007219/0.3987, allocations: 1.816 MB / 490.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.3989, allocations: 375.7 kB / 491.2 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006627/0.3996, allocations: 0.6415 MB / 491.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.3996, allocations: 305.1 kB / 492.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.401, allocations: 1.006 MB / 493.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/0.4035, allocations: 2.91 MB / 496.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005072/0.4086, allocations: 4.185 MB / 0.4885 GB, free: 9.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.309e-05/0.4087, allocations: 20 kB / 0.4886 GB, free: 9 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006343/0.415, allocations: 3.827 MB / 0.4923 GB, free: 5.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.04e-05/0.4151, allocations: 34.03 kB / 0.4923 GB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.315e-05/0.4152, allocations: 71.94 kB / 0.4924 GB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.801e-05/0.4153, allocations: 88 kB / 0.4925 GB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/0.4172, allocations: 0.7096 MB / 0.4932 GB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001061/0.4174, allocations: 131.5 kB / 0.4933 GB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.4195, allocations: 463 kB / 0.4937 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002519/0.4198, allocations: 206.4 kB / 0.4939 GB, free: 3.496 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001938/0.4217, allocations: 1.392 MB / 0.4953 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.422, allocations: 169.8 kB / 0.4955 GB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.424, allocations: 1.2 MB / 0.4966 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/0.4241, allocations: 23.98 kB / 0.4966 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4241, allocations: 3.938 kB / 0.4967 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.4241, allocations: 3.984 kB / 0.4967 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006905/0.431, allocations: 3.933 MB / 0.5005 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.4311, allocations: 4 kB / 0.5005 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000601/0.4317, allocations: 131.8 kB / 0.5006 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.4317, allocations: 4 kB / 0.5006 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.4318, allocations: 28.33 kB / 0.5007 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.748e-06/0.4318, allocations: 15.88 kB / 0.5007 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4318, allocations: 3.938 kB / 0.5007 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002789/0.4346, allocations: 1.956 MB / 0.5026 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005212/0.4351, allocations: 262.6 kB / 0.5028 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001948/0.4353, allocations: 18.53 kB / 0.5029 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005665/0.4359, allocations: 43.89 kB / 0.5029 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.796e-05/0.436, allocations: 47.31 kB / 0.5029 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.956e-05/0.4361, allocations: 28 kB / 0.503 GB, free: 10.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.4382, allocations: 1.412 MB / 0.5043 GB, free: 8.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4382, allocations: 0 / 0.5043 GB, free: 8.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003052/0.4412, allocations: 0.7042 MB / 0.505 GB, free: 7.996 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.003446/0.4447, allocations: 2.592 MB / 0.5076 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004678/0.4494, allocations: 2.777 MB / 0.5103 GB, free: 2.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4494, allocations: 1.125 kB / 0.5103 GB, free: 2.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007231/0.4501, allocations: 0.5266 MB / 0.5108 GB, free: 2.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.4517, allocations: 314.3 kB / 0.5111 GB, free: 1.773 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03224/0.484, allocations: 23.22 MB / 0.5338 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.4864, allocations: 2.278 MB / 0.536 GB, free: 5.258 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002506/0.4889, allocations: 0.9806 MB / 0.537 GB, free: 4.273 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/0.4903, allocations: 1.034 MB / 0.538 GB, free: 3.238 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4903, allocations: 3.938 kB / 0.538 GB, free: 3.234 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/0.5974, allocations: 36.34 MB / 0.5735 GB, free: 15.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.311/8.909, allocations: 2.5 kB / 0.5735 GB, free: 15.1 MB / 462.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)