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.006413/0.006413, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001661/0.001661, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04875/0.04875, allocations: 9.12 MB / 299.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001883, allocations: 67.89 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08974, allocations: 51.44 MB / 465.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008139/0.09793, allocations: 6.845 MB / 472.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004202/0.1022, allocations: 2.351 MB / 474.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004414/0.1026, allocations: 24 kB / 474.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006386/0.1033, allocations: 298.2 kB / 475.1 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.1055, allocations: 1.136 MB / 476.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.1057, allocations: 75.84 kB / 476.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002158/0.1079, allocations: 2.046 MB / 478.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.1082, allocations: 171.1 kB / 478.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007958/0.109, allocations: 0.7042 MB / 479.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.1103, allocations: 1.063 MB / 480.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002759/0.1106, allocations: 188 kB / 480.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.1118, allocations: 0.7489 MB / 481.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009001/0.1127, allocations: 1.009 MB / 482.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.114, allocations: 1.297 MB / 483.5 MB, free: 148 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006774/0.1208, allocations: 4.358 MB / 487.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.338e-05/0.1208, allocations: 0 / 487.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1208, allocations: 0 / 487.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.258e-05/0.1209, allocations: 0 / 487.9 MB, free: 11.77 MB / 366.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.0118/0.1327, allocations: 3.666 MB / 491.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1328, allocations: 8.031 kB / 491.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005791/0.1334, allocations: 471.2 kB / 492 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006477/0.1399, allocations: 1.715 MB / 493.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.1418, allocations: 1.173 MB / 494.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.132e-05/0.1419, allocations: 111.1 kB / 495 MB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003213/0.1422, allocations: 144.2 kB / 495.1 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.1534, allocations: 7.058 MB / 0.4904 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.748e-05/0.1535, allocations: 23.86 kB / 0.4905 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.1537, allocations: 71.88 kB / 0.4905 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002968/0.1567, allocations: 1.719 MB / 0.4922 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.1691, allocations: 6.466 MB / 0.4985 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2248/0.394, allocations: 20.93 MB / 0.519 GB, free: 28.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003858/0.3979, allocations: 1.933 MB / 0.5208 GB, free: 27.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008362/0.3987, allocations: 0.6005 MB / 0.5214 GB, free: 27.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003464/0.4022, allocations: 3.349 MB / 0.5247 GB, free: 25.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.4022, allocations: 40.47 kB / 0.5247 GB, free: 25.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 2.475e-06/0.4023, allocations: 2.406 kB / 0.5247 GB, free: 25.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.004329/0.4066, allocations: 1.825 MB / 0.5265 GB, free: 24.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.864e-05/0.4066, allocations: 64.75 kB / 0.5266 GB, free: 24.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/0.4105, allocations: 2.194 MB / 0.5287 GB, free: 23.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.166e-05/0.4105, allocations: 37.67 kB / 0.5288 GB, free: 23.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000992/0.4115, allocations: 1.899 MB / 0.5306 GB, free: 22.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/0.4118, allocations: 388.3 kB / 0.531 GB, free: 22.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009518/0.4128, allocations: 0.6429 MB / 0.5316 GB, free: 21.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.4128, allocations: 301.1 kB / 0.5319 GB, free: 21.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/0.415, allocations: 1.005 MB / 0.5329 GB, free: 21.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002995/0.418, allocations: 2.907 MB / 0.5357 GB, free: 17.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005141/0.4231, allocations: 4.2 MB / 0.5398 GB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.504e-05/0.4232, allocations: 19.12 kB / 0.5398 GB, free: 13.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007693/0.4309, allocations: 3.82 MB / 0.5436 GB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.108e-05/0.431, allocations: 42.98 kB / 0.5436 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.839e-05/0.431, allocations: 75.94 kB / 0.5437 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.902e-05/0.4311, allocations: 88 kB / 0.5438 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/0.4342, allocations: 0.7096 MB / 0.5445 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-05/0.4343, allocations: 131.5 kB / 0.5446 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/0.4374, allocations: 475.4 kB / 0.545 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002928/0.4377, allocations: 201.6 kB / 0.5452 GB, free: 10.04 MB / 382.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.002128/0.4398, allocations: 1.402 MB / 0.5466 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/0.4401, allocations: 178.8 kB / 0.5468 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/0.4425, allocations: 1.192 MB / 0.5479 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/0.4426, allocations: 23.92 kB / 0.548 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4426, allocations: 3.938 kB / 0.548 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4426, allocations: 3.984 kB / 0.548 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004867/0.4475, allocations: 3.944 MB / 0.5518 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4475, allocations: 0 / 0.5518 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/0.4481, allocations: 135.8 kB / 0.5519 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.4481, allocations: 8 kB / 0.552 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.4482, allocations: 16 kB / 0.552 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.4482, allocations: 4 kB / 0.552 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4482, allocations: 7.938 kB / 0.552 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.4502, allocations: 1.963 MB / 0.5539 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.4505, allocations: 287.6 kB / 0.5542 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.4507, allocations: 20.31 kB / 0.5542 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/0.4512, allocations: 31.97 kB / 0.5542 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/0.4513, allocations: 51.64 kB / 0.5543 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/0.4514, allocations: 27.98 kB / 0.5543 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001775/0.4531, allocations: 1.427 MB / 0.5557 GB, free: 15.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4531, allocations: 0 / 0.5557 GB, free: 15.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002328/0.4555, allocations: 0.7088 MB / 0.5564 GB, free: 14.48 MB / 398.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.003322/0.4588, allocations: 2.603 MB / 0.5589 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003672/0.4625, allocations: 2.247 MB / 0.5611 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4625, allocations: 1.438 kB / 0.5611 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007796/0.4633, allocations: 0.5233 MB / 0.5616 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.4648, allocations: 314.6 kB / 0.5619 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03015/0.4949, allocations: 22.13 MB / 0.5835 GB, free: 148 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002481/0.4974, allocations: 2.281 MB / 0.5858 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002158/0.4996, allocations: 0.9728 MB / 0.5867 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.501, allocations: 1.03 MB / 0.5877 GB, free: 11.82 MB / 430.1 MB Notification: Performance of SimCode: time 6.62e-07/0.501, allocations: 0 / 0.5877 GB, free: 11.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07089/0.5719, allocations: 35.58 MB / 0.6225 GB, free: 8.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.11, allocations: 14.34 kB / 0.6225 GB, free: 8.418 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)