Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.005322/0.005322, allocations: 103 kB / 15.73 MB, free: 6.035 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.001216/0.001216, allocations: 190 kB / 16.67 MB, free: 5.965 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1778/0.1778, allocations: 9.107 MB / 299.6 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 60.05 kB / 414.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2526, allocations: 51.43 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.0058/0.2585, allocations: 5.85 MB / 471.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.2623, allocations: 2.017 MB / 473.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008717/0.2632, allocations: 29.06 kB / 473.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006742/0.2638, allocations: 262.7 kB / 473.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002311/0.2662, allocations: 1.098 MB / 474.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001377/0.2664, allocations: 30.34 kB / 474.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001805/0.2682, allocations: 1.885 MB / 476.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.2684, allocations: 162.7 kB / 476.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007196/0.2692, allocations: 0.6369 MB / 477.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009847/0.2702, allocations: 0.9958 MB / 478.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.2704, allocations: 177 kB / 478.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.2715, allocations: 0.7414 MB / 479.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006856/0.2722, allocations: 0.9472 MB / 480.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008222/0.2731, allocations: 1.194 MB / 481.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.2766, allocations: 4.058 MB / 485.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2766, allocations: 1.688 kB / 485.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2766, allocations: 4 kB / 485.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.035e-05/0.2767, allocations: 0 / 485.6 MB, free: 5.223 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.00492/0.2816, allocations: 2.564 MB / 488.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.2816, allocations: 13.45 kB / 488.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000461/0.2821, allocations: 426.4 kB / 488.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005728/0.2878, allocations: 1.676 MB / 490.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.2898, allocations: 1.082 MB / 491.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.419e-05/0.2899, allocations: 102.7 kB / 491.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002822/0.2902, allocations: 132.6 kB / 491.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00921/0.2994, allocations: 6.503 MB / 498.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.425e-05/0.2995, allocations: 19.78 kB / 498.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/0.2997, allocations: 59.89 kB / 498.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002619/0.3023, allocations: 1.625 MB / 499.8 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01066/0.313, allocations: 6.043 MB / 0.494 GB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02437/0.3374, allocations: 18.13 MB / 0.5117 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/0.3399, allocations: 1.558 MB / 0.5132 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000735/0.3406, allocations: 0.5382 MB / 0.5138 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00334/0.344, allocations: 2.135 MB / 0.5158 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.344, allocations: 39 kB / 0.5159 GB, free: 12.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.344e-06/0.344, allocations: 0 / 0.5159 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.002913/0.3469, allocations: 1.498 MB / 0.5173 GB, free: 11.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.347, allocations: 59.78 kB / 0.5174 GB, free: 10.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.3497, allocations: 2.011 MB / 0.5194 GB, free: 8.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3497, allocations: 37.69 kB / 0.5194 GB, free: 8.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.3508, allocations: 1.65 MB / 0.521 GB, free: 7.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.351, allocations: 323.9 kB / 0.5213 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006822/0.3517, allocations: 0.5596 MB / 0.5219 GB, free: 6.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3519, allocations: 365.9 kB / 0.5222 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.3534, allocations: 0.9188 MB / 0.5231 GB, free: 5.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002686/0.3561, allocations: 2.581 MB / 0.5256 GB, free: 1.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/0.3606, allocations: 3.722 MB / 0.5293 GB, free: 13.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.859e-05/0.3606, allocations: 20 kB / 0.5293 GB, free: 13.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.00575/0.3664, allocations: 3.415 MB / 0.5326 GB, free: 9.652 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.3665, allocations: 32.91 kB / 0.5327 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.123e-05/0.3665, allocations: 60 kB / 0.5327 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.646e-05/0.3666, allocations: 76 kB / 0.5328 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.3683, allocations: 0.6199 MB / 0.5334 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-05/0.3684, allocations: 115.8 kB / 0.5335 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.3702, allocations: 415.7 kB / 0.5339 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/0.3705, allocations: 168 kB / 0.5341 GB, free: 8.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * 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 (334): * Single equations (assignments): 330 * 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.001717/0.3722, allocations: 1.309 MB / 0.5353 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.3724, allocations: 150 kB / 0.5355 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.3741, allocations: 1.067 MB / 0.5365 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.559e-05/0.3742, allocations: 23.92 kB / 0.5365 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3742, allocations: 0 / 0.5365 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3742, allocations: 3.984 kB / 0.5365 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005431/0.3796, allocations: 3.588 MB / 0.5401 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3797, allocations: 0 / 0.5401 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004738/0.3801, allocations: 111.8 kB / 0.5402 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.3802, allocations: 4 kB / 0.5402 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.3802, allocations: 16 kB / 0.5402 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.321e-05/0.3802, allocations: 4 kB / 0.5402 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3802, allocations: 4.125 kB / 0.5402 GB, free: 1.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.3824, allocations: 1.736 MB / 0.5419 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004429/0.3829, allocations: 247.1 kB / 0.5421 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.3831, allocations: 12 kB / 0.5421 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.3836, allocations: 35.95 kB / 0.5422 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.3837, allocations: 40.41 kB / 0.5422 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.3837, allocations: 24 kB / 0.5422 GB, free: 15.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001815/0.3855, allocations: 1.31 MB / 0.5435 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3856, allocations: 0 / 0.5435 GB, free: 14.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002226/0.3878, allocations: 0.6418 MB / 0.5441 GB, free: 13.71 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * 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 (55): * Single equations (assignments): 51 * 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.002675/0.3905, allocations: 2.351 MB / 0.5464 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.3941, allocations: 2.021 MB / 0.5484 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.3942, allocations: 0 / 0.5484 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006933/0.3949, allocations: 470.5 kB / 0.5488 GB, free: 8.848 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.3964, allocations: 300.5 kB / 0.5491 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02732/0.4237, allocations: 19.97 MB / 0.5686 GB, free: 2.453 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002134/0.4259, allocations: 2.164 MB / 0.5707 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001873/0.4278, allocations: 0.8889 MB / 0.5716 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/0.429, allocations: 0.9288 MB / 0.5725 GB, free: 14.43 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4291, allocations: 4 kB / 0.5725 GB, free: 14.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2675/0.6966, allocations: 33.86 MB / 0.6056 GB, free: 112.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.41, allocations: 7.875 kB / 0.6056 GB, free: 112.5 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)