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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004653/0.004653, allocations: 169.6 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.229/1.229, allocations: 223.2 MB / 239 MB, free: 1.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008333/0.0008333, allocations: 98.06 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04157/0.04157, allocations: 8.948 MB / 350.3 MB, free: 2.039 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 15.11 kB / 413.2 MB, free: 88.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.07541, allocations: 52.4 MB / 465.6 MB, free: 41.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2637/0.3392, allocations: 83.41 MB / 0.5361 GB, free: 16.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3394, allocations: 72.34 kB / 0.5362 GB, free: 16.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09829/0.4377, allocations: 47.45 MB / 0.5826 GB, free: 20.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4377, allocations: 7.938 kB / 0.5826 GB, free: 20.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.868e-05/0.4378, allocations: 38.94 kB / 0.5826 GB, free: 20.1 MB / 378.7 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.005898/0.4437, allocations: 2.233 MB / 0.5848 GB, free: 18.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.4438, allocations: 11.67 kB / 0.5848 GB, free: 18.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001354/0.4451, allocations: 468.5 kB / 0.5852 GB, free: 18.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007422/0.4526, allocations: 1.842 MB / 0.587 GB, free: 17.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.4556, allocations: 1.414 MB / 0.5884 GB, free: 17.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.4557, allocations: 174.2 kB / 0.5886 GB, free: 17.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000702/0.4564, allocations: 222.5 kB / 0.5888 GB, free: 17.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00731/0.4638, allocations: 6.09 MB / 0.5947 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.053e-05/0.4638, allocations: 18.27 kB / 0.5948 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.4642, allocations: 101.2 kB / 0.5949 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008111/0.465, allocations: 0.6992 MB / 0.5955 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007388/0.4724, allocations: 5.932 MB / 0.6013 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02135/0.4937, allocations: 18.18 MB / 0.6191 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.4962, allocations: 1.539 MB / 0.6206 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00343/0.4996, allocations: 2.142 MB / 0.6227 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.4996, allocations: 39 kB / 0.6227 GB, free: 8.965 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.535e-06/0.4996, allocations: 0 / 0.6227 GB, free: 8.965 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.002935/0.5026, allocations: 1.817 MB / 0.6245 GB, free: 7.066 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.5026, allocations: 59.84 kB / 0.6246 GB, free: 6.996 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.5049, allocations: 1.815 MB / 0.6263 GB, free: 5.176 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.5049, allocations: 29.7 kB / 0.6264 GB, free: 5.141 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009575/0.5059, allocations: 1.651 MB / 0.628 GB, free: 3.484 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.5061, allocations: 319.2 kB / 0.6283 GB, free: 3.176 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.5062, allocations: 63.69 kB / 0.6283 GB, free: 3.117 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002474/0.5065, allocations: 488.5 kB / 0.6288 GB, free: 2.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.5078, allocations: 0.8993 MB / 0.6297 GB, free: 1.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/0.51, allocations: 2.546 MB / 0.6322 GB, free: 14.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/0.512, allocations: 1.537 MB / 0.6337 GB, free: 12.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/0.512, allocations: 16 kB / 0.6337 GB, free: 12.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004605/0.5166, allocations: 3.388 MB / 0.637 GB, free: 9.414 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.5167, allocations: 28.19 kB / 0.637 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.006e-05/0.5167, allocations: 64 kB / 0.6371 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.466e-05/0.5168, allocations: 84 kB / 0.6372 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.5185, allocations: 0.6121 MB / 0.6378 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-05/0.5186, allocations: 115.5 kB / 0.6379 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.5202, allocations: 415.6 kB / 0.6383 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.5205, allocations: 175.7 kB / 0.6384 GB, free: 7.938 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001716/0.5222, allocations: 1.318 MB / 0.6397 GB, free: 6.609 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.5224, allocations: 150 kB / 0.6399 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.5239, allocations: 1.024 MB / 0.6409 GB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.283e-05/0.524, allocations: 23.92 kB / 0.6409 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.5241, allocations: 0 / 0.6409 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5241, allocations: 4.031 kB / 0.6409 GB, free: 5.402 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005497/0.5296, allocations: 3.559 MB / 0.6444 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.5296, allocations: 0 / 0.6444 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.5301, allocations: 108 kB / 0.6445 GB, free: 1.676 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5301, allocations: 0 / 0.6445 GB, free: 1.676 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.116e-05/0.5301, allocations: 23.55 kB / 0.6445 GB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.5301, allocations: 7.938 kB / 0.6445 GB, free: 1.648 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5302, allocations: 3.953 kB / 0.6445 GB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.5323, allocations: 1.759 MB / 0.6462 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.5326, allocations: 259 kB / 0.6465 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.5328, allocations: 11.94 kB / 0.6465 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/0.5333, allocations: 35.97 kB / 0.6465 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.5334, allocations: 32.39 kB / 0.6465 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.5334, allocations: 31.5 kB / 0.6466 GB, free: 15.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001623/0.535, allocations: 1.302 MB / 0.6478 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5351, allocations: 0 / 0.6478 GB, free: 14.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001862/0.5369, allocations: 0.6418 MB / 0.6485 GB, free: 13.51 MB / 426.7 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 (54): * Single equations (assignments): 50 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002525/0.5395, allocations: 2.646 MB / 0.6511 GB, free: 10.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002617/0.5421, allocations: 1.977 MB / 0.653 GB, free: 8.848 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5421, allocations: 0 / 0.653 GB, free: 8.848 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005893/0.5427, allocations: 466.1 kB / 0.6534 GB, free: 8.395 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009476/0.5437, allocations: 265.2 kB / 0.6537 GB, free: 8.141 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1881/0.7318, allocations: 54.95 MB / 0.7073 GB, free: 150.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002158/0.734, allocations: 2.212 MB / 0.7095 GB, free: 149.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002098/0.7361, allocations: 0.8933 MB / 0.7104 GB, free: 149.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.7371, allocations: 0.9296 MB / 0.7113 GB, free: 149.4 MB / 474.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7371, allocations: 0 / 0.7113 GB, free: 149.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05978/0.7969, allocations: 37.86 MB / 0.7483 GB, free: 141.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.7971, allocations: 164.7 kB / 0.7484 GB, free: 141.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.192, allocations: 0 / 0.7484 GB, free: 141.1 MB / 474.7 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/linux/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)