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.0007472/0.0007472, allocations: 84.22 kB / 15.06 MB, free: 1.09 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.0008537/0.0008538, allocations: 168.7 kB / 15.95 MB, free: 204 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.309/1.309, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1746/0.1746, allocations: 9.112 MB / 300.2 MB, free: 2.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 8 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08621, allocations: 52.43 MB / 415.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.2029/0.2891, allocations: 8.523 MB / 424.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004889/0.2941, allocations: 2.553 MB / 426.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008547/0.2949, allocations: 31.22 kB / 426.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007054/0.2957, allocations: 398 kB / 427.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002747/0.2984, allocations: 1.544 MB / 428.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.2986, allocations: 38.06 kB / 428.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001963/0.3005, allocations: 2.073 MB / 430.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.3008, allocations: 151.6 kB / 430.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005513/0.3013, allocations: 0.5673 MB / 431.5 MB, free: 33.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.3024, allocations: 0.9848 MB / 432.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.3026, allocations: 96.12 kB / 432.6 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009241/0.3035, allocations: 0.5961 MB / 433.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000644/0.3041, allocations: 0.8534 MB / 434 MB, free: 33.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.3045, allocations: 0.5073 MB / 434.5 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.3066, allocations: 3.007 MB / 437.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3066, allocations: 0 / 437.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3066, allocations: 0 / 437.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.531e-05/0.3067, allocations: 4 kB / 437.6 MB, free: 33.05 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.003468/0.3102, allocations: 2.123 MB / 439.7 MB, free: 31.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3102, allocations: 10.09 kB / 439.7 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000431/0.3107, allocations: 433.8 kB / 440.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.3159, allocations: 1.713 MB / 441.8 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3175, allocations: 1.075 MB / 442.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.298e-05/0.3176, allocations: 101.4 kB / 443 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002528/0.3178, allocations: 134 kB / 443.1 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007107/0.325, allocations: 6.482 MB / 449.6 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.325, allocations: 14.03 kB / 449.6 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.3252, allocations: 67.69 kB / 449.7 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002068/0.3273, allocations: 1.623 MB / 451.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008023/0.3353, allocations: 6.014 MB / 457.3 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02255/0.3579, allocations: 18.21 MB / 475.5 MB, free: 16.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/0.3604, allocations: 1.548 MB / 477.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008268/0.3613, allocations: 0.5319 MB / 477.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003461/0.3647, allocations: 2.14 MB / 479.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3648, allocations: 38.31 kB / 479.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.595e-06/0.3648, allocations: 4 kB / 479.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.002938/0.3677, allocations: 1.491 MB / 481.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.3678, allocations: 57.72 kB / 481.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.3706, allocations: 1.993 MB / 483.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.3707, allocations: 36.08 kB / 483.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.3717, allocations: 1.656 MB / 485 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.3719, allocations: 322.2 kB / 485.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.3721, allocations: 52.2 kB / 485.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002329/0.3723, allocations: 490.5 kB / 485.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.3736, allocations: 0.9122 MB / 486.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.3755, allocations: 2.562 MB / 489.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/0.3775, allocations: 1.548 MB / 490.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-05/0.3775, allocations: 16.5 kB / 490.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.0043/0.3818, allocations: 3.403 MB / 494.3 MB, free: 2.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.3819, allocations: 28 kB / 494.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.612e-05/0.3819, allocations: 60 kB / 494.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.614e-05/0.382, allocations: 84 kB / 494.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.3835, allocations: 0.616 MB / 495.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.014e-05/0.3835, allocations: 115.5 kB / 495.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.3853, allocations: 412.2 kB / 495.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.3855, allocations: 180 kB / 495.8 MB, free: 0.7109 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 (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.001865/0.3874, allocations: 1.311 MB / 497.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.3876, allocations: 150.7 kB / 497.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.3894, allocations: 1.059 MB / 498.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.665e-05/0.3895, allocations: 19.98 kB / 498.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3895, allocations: 0 / 498.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3895, allocations: 3.984 kB / 498.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006174/0.3957, allocations: 3.581 MB / 0.4901 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.3957, allocations: 0 / 0.4901 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/0.3962, allocations: 103.8 kB / 0.4902 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.3962, allocations: 4.656 kB / 0.4902 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.3963, allocations: 19.98 kB / 0.4903 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.3963, allocations: 4 kB / 0.4903 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3963, allocations: 0 / 0.4903 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.3987, allocations: 1.735 MB / 0.492 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004657/0.3992, allocations: 259 kB / 0.4922 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.3994, allocations: 19.02 kB / 0.4922 GB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.3998, allocations: 27.97 kB / 0.4923 GB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.973e-05/0.3999, allocations: 37.66 kB / 0.4923 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-05/0.4, allocations: 31.92 kB / 0.4923 GB, free: 8.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001851/0.4018, allocations: 1.302 MB / 0.4936 GB, free: 6.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4019, allocations: 0 / 0.4936 GB, free: 6.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002328/0.4042, allocations: 0.6325 MB / 0.4942 GB, free: 6.305 MB / 366.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 (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.00273/0.4069, allocations: 2.349 MB / 0.4965 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.4103, allocations: 1.996 MB / 0.4985 GB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4103, allocations: 128 / 0.4985 GB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000649/0.4109, allocations: 482.4 kB / 0.4989 GB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.4122, allocations: 273 kB / 0.4992 GB, free: 1.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02688/0.4391, allocations: 15.11 MB / 0.5139 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003072/0.4422, allocations: 2.165 MB / 0.516 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002395/0.4446, allocations: 0.8891 MB / 0.5169 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/0.4461, allocations: 0.9249 MB / 0.5178 GB, free: 12.87 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4461, allocations: 4 kB / 0.5178 GB, free: 12.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06426/0.5104, allocations: 37.73 MB / 0.5547 GB, free: 7.441 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/0.5106, allocations: 168 kB / 0.5548 GB, free: 7.203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.819, allocations: 3.984 kB / 0.5548 GB, free: 7.199 MB / 430.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: