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.001367/0.001367, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.001014/0.001014, allocations: 93.12 kB / 280.5 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03742/0.03742, allocations: 8.831 MB / 340.1 MB, free: 6.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.798e-05/2.772e-05, allocations: 4 kB / 398.8 MB, free: 47.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 52.38 MB / 451.2 MB, free: 4.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1646/0.3046, allocations: 82.69 MB / 0.5213 GB, free: 1.688 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.3049, allocations: 71.97 kB / 0.5214 GB, free: 1.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3691/0.674, allocations: 46.59 MB / 0.5669 GB, free: 48.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6741, allocations: 0 / 0.5669 GB, free: 48.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.946e-05/0.6742, allocations: 36 kB / 0.5669 GB, free: 48.79 MB / 362.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.006086/0.6803, allocations: 2.173 MB / 0.5691 GB, free: 46.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.6803, allocations: 15.95 kB / 0.5691 GB, free: 46.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008635/0.689, allocations: 1.837 MB / 0.5709 GB, free: 44.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003579/0.6926, allocations: 1.419 MB / 0.5723 GB, free: 43.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.6927, allocations: 72 kB / 0.5723 GB, free: 43.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.6938, allocations: 127.9 kB / 0.5725 GB, free: 43.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006342/0.7002, allocations: 4.4 MB / 0.5767 GB, free: 38.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0093/0.7095, allocations: 5.683 MB / 0.5823 GB, free: 32.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.745e-05/0.7096, allocations: 15.88 kB / 0.5823 GB, free: 32.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003244/0.71, allocations: 8 kB / 0.5823 GB, free: 32.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008996/0.7109, allocations: 0.7113 MB / 0.583 GB, free: 31.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02126/0.7322, allocations: 17.27 MB / 0.5999 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.7338, allocations: 1.59 MB / 0.6014 GB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005157/0.7344, allocations: 494.8 kB / 0.6019 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003095/0.7375, allocations: 2.062 MB / 0.6039 GB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.7375, allocations: 35 kB / 0.604 GB, free: 9.953 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 2.735e-06/0.7375, allocations: 0 / 0.604 GB, free: 9.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=80): time 0.001622/0.7392, allocations: 0.9727 MB / 0.6049 GB, free: 8.973 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.23e-05/0.7392, allocations: 63.83 kB / 0.605 GB, free: 8.898 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/0.7411, allocations: 1.504 MB / 0.6064 GB, free: 7.383 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.7412, allocations: 33.64 kB / 0.6065 GB, free: 7.344 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007007/0.7419, allocations: 1.712 MB / 0.6081 GB, free: 5.605 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.7421, allocations: 319.9 kB / 0.6084 GB, free: 5.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.571e-05/0.7422, allocations: 0 / 0.6084 GB, free: 5.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.7424, allocations: 469 kB / 0.6089 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.7434, allocations: 0.8881 MB / 0.6098 GB, free: 3.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/0.7454, allocations: 2.665 MB / 0.6124 GB, free: 376 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.7476, allocations: 1.581 MB / 0.6139 GB, free: 14.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.94e-05/0.7476, allocations: 20 kB / 0.6139 GB, free: 14.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.00525/0.7528, allocations: 3.185 MB / 0.617 GB, free: 11.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.7529, allocations: 32 kB / 0.6171 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.007e-05/0.753, allocations: 64.91 kB / 0.6171 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001185/0.7531, allocations: 96 kB / 0.6172 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.7552, allocations: 0.6668 MB / 0.6179 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000109/0.7553, allocations: 127.5 kB / 0.618 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.7574, allocations: 343.9 kB / 0.6183 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000303/0.7577, allocations: 188 kB / 0.6185 GB, free: 10.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 290 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (358): * Single equations (assignments): 354 * 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.0003781/0.7581, allocations: 251.4 kB / 0.6187 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001468/0.7596, allocations: 0.8831 MB / 0.6196 GB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.7598, allocations: 126.3 kB / 0.6197 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.7613, allocations: 0.9616 MB / 0.6207 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001168/0.7614, allocations: 23.97 kB / 0.6207 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.7614, allocations: 0 / 0.6207 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.7615, allocations: 0 / 0.6207 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.7667, allocations: 2.818 MB / 0.6234 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.7667, allocations: 0 / 0.6234 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005192/0.7672, allocations: 103.9 kB / 0.6235 GB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.7672, allocations: 3.938 kB / 0.6235 GB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.7673, allocations: 16.27 kB / 0.6236 GB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.7673, allocations: 4.125 kB / 0.6236 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.7673, allocations: 7.953 kB / 0.6236 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.7695, allocations: 1.66 MB / 0.6252 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003882/0.7699, allocations: 227.3 kB / 0.6254 GB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.77, allocations: 4 kB / 0.6254 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.7705, allocations: 27.89 kB / 0.6254 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.7706, allocations: 36.39 kB / 0.6255 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/0.7707, allocations: 20 kB / 0.6255 GB, free: 2.738 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001471/0.7722, allocations: 1.026 MB / 0.6265 GB, free: 1.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7722, allocations: 0 / 0.6265 GB, free: 1.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002576/0.7747, allocations: 0.6219 MB / 0.6271 GB, free: 1.086 MB / 378.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 () * 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.002678/0.7774, allocations: 2.532 MB / 0.6296 GB, free: 14.49 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003099/0.7805, allocations: 1.915 MB / 0.6314 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7806, allocations: 0 / 0.6314 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005371/0.7811, allocations: 440 kB / 0.6319 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009038/0.782, allocations: 157.8 kB / 0.632 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.7929, allocations: 4.743 MB / 0.6366 GB, free: 7.195 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.7954, allocations: 2.208 MB / 0.6388 GB, free: 4.957 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002657/0.7981, allocations: 0.9034 MB / 0.6397 GB, free: 4.047 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/0.7997, allocations: 0.9327 MB / 0.6406 GB, free: 3.113 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.7997, allocations: 0 / 0.6406 GB, free: 3.113 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07225/0.8719, allocations: 33.08 MB / 0.6729 GB, free: 2.098 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.8722, allocations: 129.6 kB / 0.673 GB, free: 1.895 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/3.48, allocations: 3.938 kB / 0.673 GB, free: 1.891 MB / 426.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)