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.001037/0.001038, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001075/0.001075, allocations: 189.4 kB / 16.14 MB, free: 6.66 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.263/1.263, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1461/0.1461, allocations: 9.094 MB / 299 MB, free: 1.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 59.91 kB / 361.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08478/0.08597, allocations: 51.44 MB / 412.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.162/0.248, allocations: 14.33 MB / 427.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005791/0.2539, allocations: 3.77 MB / 430.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.2558, allocations: 52.03 kB / 430.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005762/0.2564, allocations: 249.2 kB / 431.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001902/0.2583, allocations: 1.063 MB / 432.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.2585, allocations: 69.3 kB / 432.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.2602, allocations: 2.89 MB / 435.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.2605, allocations: 167 kB / 435.4 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.261, allocations: 0.5827 MB / 435.9 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008192/0.2618, allocations: 1.075 MB / 437 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.262, allocations: 102.8 kB / 437.1 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008812/0.2629, allocations: 0.7037 MB / 437.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005191/0.2634, allocations: 0.9354 MB / 438.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006615/0.2641, allocations: 1.215 MB / 440 MB, free: 32.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00233/0.2664, allocations: 4.014 MB / 444 MB, free: 30.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2664, allocations: 4.75 kB / 444 MB, free: 30.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2665, allocations: 3.312 kB / 444 MB, free: 30.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.2665, allocations: 0 / 444 MB, free: 30.75 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.006273/0.2728, allocations: 3.602 MB / 447.6 MB, free: 29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.2728, allocations: 9.75 kB / 447.6 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004318/0.2733, allocations: 465.5 kB / 448.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005575/0.2789, allocations: 1.696 MB / 449.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.2804, allocations: 1.163 MB / 450.9 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.2805, allocations: 114.6 kB / 451 MB, free: 27.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002858/0.2808, allocations: 149.7 kB / 451.2 MB, free: 27.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007487/0.2883, allocations: 7.051 MB / 458.2 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/0.2883, allocations: 21.44 kB / 458.2 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.2886, allocations: 71.28 kB / 458.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/0.291, allocations: 1.72 MB / 460 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.3016, allocations: 6.474 MB / 466.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02431/0.3259, allocations: 20.96 MB / 487.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/0.3294, allocations: 1.93 MB / 489.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/0.3302, allocations: 0.6033 MB / 490 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003586/0.3338, allocations: 3.338 MB / 493.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.3338, allocations: 44 kB / 493.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.816e-06/0.3338, allocations: 0 / 493.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003463/0.3373, allocations: 1.815 MB / 495.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.3373, allocations: 59.97 kB / 495.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/0.3399, allocations: 2.196 MB / 497.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.3399, allocations: 33.7 kB / 497.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001078/0.341, allocations: 1.825 MB / 499.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002818/0.3413, allocations: 367.3 kB / 499.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007709/0.3421, allocations: 0.6428 MB / 0.4886 GB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.3422, allocations: 301.1 kB / 0.4889 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.3437, allocations: 1.002 MB / 0.4898 GB, free: 10.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.3463, allocations: 2.909 MB / 0.4927 GB, free: 7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004256/0.3506, allocations: 4.193 MB / 0.4968 GB, free: 1.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.463e-05/0.3506, allocations: 20 kB / 0.4968 GB, free: 1.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.00568/0.3563, allocations: 3.82 MB / 0.5005 GB, free: 14.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.3564, allocations: 39.94 kB / 0.5006 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/0.3564, allocations: 68.09 kB / 0.5006 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.098e-05/0.3565, allocations: 92 kB / 0.5007 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.3585, allocations: 0.7135 MB / 0.5014 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.014e-05/0.3586, allocations: 127.5 kB / 0.5015 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.3606, allocations: 471 kB / 0.502 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.3608, allocations: 200 kB / 0.5022 GB, free: 12.33 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.001646/0.3625, allocations: 1.39 MB / 0.5035 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.3627, allocations: 177.7 kB / 0.5037 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.3646, allocations: 1.201 MB / 0.5049 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-05/0.3647, allocations: 19.98 kB / 0.5049 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3647, allocations: 0 / 0.5049 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3647, allocations: 3.984 kB / 0.5049 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.3707, allocations: 3.933 MB / 0.5087 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3707, allocations: 4 kB / 0.5087 GB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005933/0.3713, allocations: 131.8 kB / 0.5089 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.3713, allocations: 4 kB / 0.5089 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/0.3714, allocations: 27.97 kB / 0.5089 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-05/0.3714, allocations: 7.938 kB / 0.5089 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3714, allocations: 7.938 kB / 0.5089 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.3739, allocations: 1.954 MB / 0.5108 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.3743, allocations: 263.2 kB / 0.5111 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002245/0.3745, allocations: 19.98 kB / 0.5111 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.3751, allocations: 35.91 kB / 0.5111 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.523e-05/0.3752, allocations: 52.44 kB / 0.5112 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.993e-05/0.3753, allocations: 31.94 kB / 0.5112 GB, free: 2.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001849/0.3771, allocations: 1.416 MB / 0.5126 GB, free: 1.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3771, allocations: 0 / 0.5126 GB, free: 1.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002256/0.3794, allocations: 0.7081 MB / 0.5133 GB, free: 0.7969 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.002988/0.3824, allocations: 2.587 MB / 0.5158 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.3858, allocations: 2.24 MB / 0.518 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3858, allocations: 0.5 kB / 0.518 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000708/0.3865, allocations: 0.5228 MB / 0.5185 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.388, allocations: 297.4 kB / 0.5188 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/0.4211, allocations: 24.45 MB / 0.5427 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002419/0.4235, allocations: 2.29 MB / 0.5449 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002317/0.4259, allocations: 0.9884 MB / 0.5459 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/0.4272, allocations: 1.034 MB / 0.5469 GB, free: 11.31 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4272, allocations: 4 kB / 0.5469 GB, free: 11.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1898/0.617, allocations: 35.63 MB / 0.5817 GB, free: 125.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.6172, allocations: 189 kB / 0.5819 GB, free: 124.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.472/3.089, allocations: 0 / 0.5819 GB, free: 124.9 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)