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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.00135/0.00135, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001984/0.001985, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2069/0.2069, allocations: 9.106 MB / 300.1 MB, free: 2.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004494, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1533, allocations: 52.43 MB / 415.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.009125/0.1625, allocations: 8.092 MB / 423.6 MB, free: 372 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2874/0.4499, allocations: 2.616 MB / 426.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.4512, allocations: 34.47 kB / 426.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008836/0.4521, allocations: 380.5 kB / 426.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003126/0.4552, allocations: 1.285 MB / 427.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.4554, allocations: 29.06 kB / 427.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.457, allocations: 0.9981 MB / 428.9 MB, free: 34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.4573, allocations: 148.3 kB / 429.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005304/0.4578, allocations: 479.4 kB / 429.6 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008992/0.4587, allocations: 0.72 MB / 430.3 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.4589, allocations: 96.06 kB / 430.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009478/0.4599, allocations: 0.5876 MB / 431 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005512/0.4604, allocations: 0.7983 MB / 431.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.4608, allocations: 0.5017 MB / 432.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002615/0.4634, allocations: 3.014 MB / 435.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.4634, allocations: 0 / 435.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4634, allocations: 0 / 435.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.659e-05/0.4635, allocations: 0 / 435.3 MB, free: 33.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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.004551/0.468, allocations: 2.146 MB / 437.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.4681, allocations: 15.14 kB / 437.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005725/0.4687, allocations: 428 kB / 437.9 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007067/0.4758, allocations: 2.079 MB / 439.9 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/0.4786, allocations: 1.067 MB / 441 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.4787, allocations: 99.77 kB / 441.1 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004276/0.4792, allocations: 131.2 kB / 441.2 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009194/0.4884, allocations: 6.484 MB / 447.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.215e-05/0.4885, allocations: 16.69 kB / 447.7 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.4887, allocations: 65.38 kB / 447.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.4914, allocations: 1.624 MB / 449.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.5044, allocations: 6.032 MB / 455.4 MB, free: 27.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.5409, allocations: 18.18 MB / 473.6 MB, free: 16.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003204/0.5442, allocations: 1.552 MB / 475.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000464/0.5447, allocations: 360 kB / 475.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.5447, allocations: 39.31 kB / 475.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.895e-06/0.5447, allocations: 0 / 475.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=96): time 0.005137/0.5499, allocations: 2.124 MB / 477.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.5499, allocations: 59.22 kB / 477.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/0.5538, allocations: 1.938 MB / 479.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.5539, allocations: 36.7 kB / 479.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/0.5553, allocations: 1.612 MB / 481.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004871/0.5558, allocations: 374 kB / 481.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.5559, allocations: 51 kB / 481.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003276/0.5562, allocations: 497 kB / 482.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.558, allocations: 0.9357 MB / 483.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/0.5605, allocations: 2.579 MB / 485.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00232/0.5628, allocations: 1.591 MB / 487.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.265e-05/0.5629, allocations: 17.84 kB / 487.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=366) (initialization): time 0.00605/0.5689, allocations: 3.458 MB / 490.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.569, allocations: 33.91 kB / 490.9 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.719e-05/0.5691, allocations: 61.5 kB / 490.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.76e-05/0.5692, allocations: 84 kB / 491 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.5708, allocations: 0.6316 MB / 491.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.331e-05/0.5709, allocations: 111.6 kB / 491.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.5732, allocations: 414.5 kB / 492.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/0.5734, allocations: 172 kB / 492.3 MB, free: 4.141 MB / 350.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 (340): * Single equations (assignments): 336 * 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.001972/0.5754, allocations: 1.32 MB / 493.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000249/0.5756, allocations: 150 kB / 493.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.5775, allocations: 1.336 MB / 495.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-05/0.5776, allocations: 23.97 kB / 495.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.5776, allocations: 4 kB / 495.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5776, allocations: 0 / 495.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007625/0.5853, allocations: 4.016 MB / 499.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/0.5853, allocations: 4 kB / 499.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006089/0.5859, allocations: 131.9 kB / 499.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/0.586, allocations: 12 kB / 499.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/0.586, allocations: 19.98 kB / 499.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.746e-06/0.586, allocations: 4 kB / 499.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.5861, allocations: 8.125 kB / 499.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.5892, allocations: 2.161 MB / 0.4897 GB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008014/0.59, allocations: 270.3 kB / 0.49 GB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.5902, allocations: 22.41 kB / 0.49 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005685/0.5908, allocations: 35.88 kB / 0.4901 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.5909, allocations: 52.5 kB / 0.4901 GB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-05/0.591, allocations: 31.98 kB / 0.4901 GB, free: 10.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002443/0.5935, allocations: 1.274 MB / 0.4914 GB, free: 9.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.5935, allocations: 0 / 0.4914 GB, free: 9.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003712/0.5972, allocations: 0.6326 MB / 0.492 GB, free: 8.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (68): * Single equations (assignments): 64 * 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.003677/0.6009, allocations: 3.517 MB / 0.4954 GB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003897/0.6048, allocations: 2.088 MB / 0.4975 GB, free: 2.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.6048, allocations: 1.75 kB / 0.4975 GB, free: 2.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.6056, allocations: 0.5351 MB / 0.498 GB, free: 2.184 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.6072, allocations: 268.9 kB / 0.4982 GB, free: 1.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04576/0.653, allocations: 55.26 MB / 0.5522 GB, free: 9.035 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002165/0.6552, allocations: 2.225 MB / 0.5544 GB, free: 6.777 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002312/0.6575, allocations: 0.9322 MB / 0.5553 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/0.6587, allocations: 0.9366 MB / 0.5562 GB, free: 4.902 MB / 430.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6588, allocations: 0 / 0.5562 GB, free: 4.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2577/0.9165, allocations: 38.21 MB / 0.5935 GB, free: 120.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.9167, allocations: 164.4 kB / 0.5937 GB, free: 120.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.614/3.531, allocations: 3.938 kB / 0.5937 GB, free: 120.1 MB / 446.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/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) Environment - environmentSimulation: