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.001442/0.001442, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.00192/0.00192, allocations: 194.7 kB / 16.25 MB, free: 6.633 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.325/1.325, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1733/0.1733, allocations: 9.103 MB / 299.2 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 361.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09971, allocations: 51.44 MB / 413 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2058/0.3055, allocations: 14.33 MB / 427.3 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00776/0.3133, allocations: 3.737 MB / 431 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003607/0.317, allocations: 48.56 kB / 431.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.3181, allocations: 250.4 kB / 431.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003305/0.3214, allocations: 1.057 MB / 432.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.3219, allocations: 70.16 kB / 432.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.3248, allocations: 2.054 MB / 434.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004858/0.3253, allocations: 176.7 kB / 434.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.3266, allocations: 0.6996 MB / 435.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.3282, allocations: 1.163 MB / 436.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006627/0.3289, allocations: 186.5 kB / 436.7 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.3303, allocations: 0.756 MB / 437.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007362/0.3311, allocations: 1.022 MB / 438.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008273/0.3319, allocations: 1.299 MB / 439.8 MB, free: 31.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002919/0.3348, allocations: 4.147 MB / 443.9 MB, free: 30.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3349, allocations: 8 kB / 443.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3349, allocations: 0 / 443.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.965e-05/0.3349, allocations: 3.938 kB / 443.9 MB, free: 30.32 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.006738/0.3417, allocations: 3.595 MB / 447.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.3417, allocations: 9.688 kB / 447.6 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004358/0.3422, allocations: 464.7 kB / 448 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005539/0.3477, allocations: 1.701 MB / 449.7 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/0.3496, allocations: 1.165 MB / 450.9 MB, free: 27.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.091e-05/0.3497, allocations: 116.8 kB / 451 MB, free: 27.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/0.35, allocations: 143.8 kB / 451.1 MB, free: 27.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008878/0.3589, allocations: 7.051 MB / 458.2 MB, free: 24.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.606e-05/0.359, allocations: 17.75 kB / 458.2 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.3592, allocations: 74.5 kB / 458.3 MB, free: 24.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/0.3618, allocations: 1.727 MB / 460 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.3756, allocations: 6.464 MB / 466.5 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03046/0.4061, allocations: 20.96 MB / 487.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003421/0.4095, allocations: 1.931 MB / 489.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007916/0.4103, allocations: 0.6023 MB / 489.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003576/0.4139, allocations: 3.34 MB / 493.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.4139, allocations: 39.12 kB / 493.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 3.587e-06/0.414, allocations: 0 / 493.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003299/0.4173, allocations: 1.822 MB / 495.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.4173, allocations: 67.84 kB / 495.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.4198, allocations: 2.196 MB / 497.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.4198, allocations: 37.7 kB / 497.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.4209, allocations: 1.813 MB / 499.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.4212, allocations: 367.3 kB / 499.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007535/0.4219, allocations: 0.6467 MB / 0.4885 GB, free: 12.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.422, allocations: 309.1 kB / 0.4888 GB, free: 11.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.4235, allocations: 0.9977 MB / 0.4898 GB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/0.4263, allocations: 2.901 MB / 0.4926 GB, free: 7.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.4304, allocations: 4.19 MB / 0.4967 GB, free: 1.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.919e-05/0.4304, allocations: 20 kB / 0.4968 GB, free: 1.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.005669/0.4361, allocations: 3.825 MB / 0.5005 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.233e-05/0.4362, allocations: 36.56 kB / 0.5005 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-05/0.4363, allocations: 68 kB / 0.5006 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.156e-05/0.4364, allocations: 96.03 kB / 0.5007 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.4383, allocations: 0.7096 MB / 0.5014 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.273e-05/0.4384, allocations: 135.5 kB / 0.5015 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.4405, allocations: 471 kB / 0.502 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.4408, allocations: 199.9 kB / 0.5021 GB, free: 12.42 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.001972/0.4427, allocations: 1.394 MB / 0.5035 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000252/0.443, allocations: 177.7 kB / 0.5037 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.4449, allocations: 1.185 MB / 0.5048 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.462e-05/0.445, allocations: 19.98 kB / 0.5048 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.445, allocations: 4.375 kB / 0.5049 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.445, allocations: 3.984 kB / 0.5049 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006094/0.4511, allocations: 3.947 MB / 0.5087 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4511, allocations: 0 / 0.5087 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005971/0.4518, allocations: 139.7 kB / 0.5088 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.4518, allocations: 8 kB / 0.5089 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.882e-05/0.4518, allocations: 16 kB / 0.5089 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.4518, allocations: 7.938 kB / 0.5089 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4519, allocations: 4 kB / 0.5089 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.4546, allocations: 1.953 MB / 0.5108 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004665/0.4551, allocations: 266.8 kB / 0.511 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.4553, allocations: 19.98 kB / 0.5111 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005609/0.4558, allocations: 35.91 kB / 0.5111 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/0.456, allocations: 48.44 kB / 0.5111 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/0.456, allocations: 31.98 kB / 0.5112 GB, free: 3.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001957/0.458, allocations: 1.42 MB / 0.5126 GB, free: 1.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.458, allocations: 0 / 0.5126 GB, free: 1.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002665/0.4607, allocations: 0.7003 MB / 0.5132 GB, free: 0.8906 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.002999/0.4637, allocations: 2.594 MB / 0.5158 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004467/0.4682, allocations: 2.763 MB / 0.5185 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.4682, allocations: 4 kB / 0.5185 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007079/0.4689, allocations: 0.5233 MB / 0.519 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.4705, allocations: 316.9 kB / 0.5193 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03407/0.5046, allocations: 24.46 MB / 0.5432 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/0.5068, allocations: 2.285 MB / 0.5454 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002286/0.5091, allocations: 0.9728 MB / 0.5464 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/0.5104, allocations: 1.038 MB / 0.5474 GB, free: 10.88 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5104, allocations: 4 kB / 0.5474 GB, free: 10.87 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2324/0.7428, allocations: 36.23 MB / 0.5828 GB, free: 128 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.743, allocations: 181.6 kB / 0.5829 GB, free: 127.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.643/3.386, allocations: 3.938 kB / 0.5829 GB, free: 127.7 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/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)