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.001059/0.001059, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00757/0.00757, allocations: 173 kB / 16.27 MB, free: 6.652 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.304/1.304, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1821/0.1821, allocations: 9.094 MB / 300.5 MB, free: 2.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 8 kB / 363.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09257, allocations: 52.43 MB / 416.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.1894/0.2821, allocations: 9.098 MB / 425.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005074/0.2872, allocations: 2.694 MB / 428 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006593/0.2879, allocations: 32.22 kB / 428 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005127/0.2884, allocations: 230.5 kB / 428.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001652/0.29, allocations: 1.038 MB / 429.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001049/0.2902, allocations: 33.52 kB / 429.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001892/0.2921, allocations: 2.684 MB / 432 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.2923, allocations: 153.1 kB / 432.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.2928, allocations: 0.5328 MB / 432.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008684/0.2936, allocations: 0.9895 MB / 433.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.2938, allocations: 95.5 kB / 433.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007993/0.2946, allocations: 0.6928 MB / 434.5 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005245/0.2951, allocations: 0.8914 MB / 435.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006624/0.2958, allocations: 1.146 MB / 436.5 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.298, allocations: 3.667 MB / 440.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.298, allocations: 0 / 440.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.298, allocations: 0 / 440.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.982e-05/0.298, allocations: 3.344 kB / 440.2 MB, free: 32.73 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.003095/0.3011, allocations: 2.092 MB / 442.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3012, allocations: 9.531 kB / 442.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003736/0.3016, allocations: 429.2 kB / 442.7 MB, free: 31.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005712/0.3073, allocations: 1.719 MB / 444.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3085, allocations: 1.083 MB / 445.5 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.3086, allocations: 99.2 kB / 445.6 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.3089, allocations: 128 kB / 445.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006645/0.3155, allocations: 6.508 MB / 452.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.814e-05/0.3156, allocations: 14.88 kB / 452.3 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/0.3158, allocations: 59.59 kB / 452.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002228/0.318, allocations: 1.635 MB / 454 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008083/0.3261, allocations: 6.04 MB / 460 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0208/0.3469, allocations: 18.22 MB / 478.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002267/0.3492, allocations: 1.549 MB / 479.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007112/0.35, allocations: 0.5315 MB / 480.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002878/0.3529, allocations: 2.143 MB / 482.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.3529, allocations: 38.41 kB / 482.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.275e-06/0.3529, allocations: 3.938 kB / 482.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.002711/0.3556, allocations: 1.493 MB / 484 MB, free: 10.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.3556, allocations: 65.28 kB / 484 MB, free: 10.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.3578, allocations: 2.008 MB / 486 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.3579, allocations: 32.3 kB / 486.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006361/0.3585, allocations: 1.649 MB / 487.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.3587, allocations: 328.6 kB / 488 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.3589, allocations: 223.2 kB / 488.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.36e-05/0.359, allocations: 367.8 kB / 488.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.3602, allocations: 0.9205 MB / 489.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.362, allocations: 2.567 MB / 492.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002905/0.3649, allocations: 3.738 MB / 495.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.608e-05/0.3649, allocations: 16 kB / 495.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004917/0.3698, allocations: 3.429 MB / 499.3 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.3699, allocations: 32 kB / 499.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.542e-05/0.37, allocations: 58.02 kB / 499.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.204e-05/0.37, allocations: 80 kB / 499.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.3717, allocations: 0.6121 MB / 0.4883 GB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.942e-05/0.3718, allocations: 111.6 kB / 0.4885 GB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.3735, allocations: 419.8 kB / 0.4889 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/0.3737, allocations: 176 kB / 0.489 GB, free: 10.53 MB / 366.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.001689/0.3754, allocations: 1.306 MB / 0.4903 GB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.3756, allocations: 150 kB / 0.4904 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.3773, allocations: 1.056 MB / 0.4915 GB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.785e-05/0.3774, allocations: 27.2 kB / 0.4915 GB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.3775, allocations: 4 kB / 0.4915 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3775, allocations: 3.984 kB / 0.4915 GB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005419/0.3829, allocations: 3.585 MB / 0.495 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3829, allocations: 0 / 0.495 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/0.3834, allocations: 103.9 kB / 0.4951 GB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.3834, allocations: 4 kB / 0.4951 GB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.299e-05/0.3834, allocations: 11.98 kB / 0.4951 GB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.3835, allocations: 7.938 kB / 0.4951 GB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3835, allocations: 4 kB / 0.4951 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.3857, allocations: 1.735 MB / 0.4968 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/0.386, allocations: 262.9 kB / 0.4971 GB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.3862, allocations: 16 kB / 0.4971 GB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.3867, allocations: 28.22 kB / 0.4971 GB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-05/0.3868, allocations: 40.33 kB / 0.4972 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.3868, allocations: 28.27 kB / 0.4972 GB, free: 2.043 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001659/0.3885, allocations: 1.313 MB / 0.4985 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3885, allocations: 0 / 0.4985 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001881/0.3904, allocations: 0.6443 MB / 0.4991 GB, free: 92 kB / 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 (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.002557/0.3929, allocations: 2.35 MB / 0.5014 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.3957, allocations: 2.008 MB / 0.5034 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3957, allocations: 4.562 kB / 0.5034 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.3964, allocations: 478.5 kB / 0.5038 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.3978, allocations: 261.7 kB / 0.5041 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02834/0.4262, allocations: 22.19 MB / 0.5257 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002013/0.4282, allocations: 2.165 MB / 0.5278 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002038/0.4303, allocations: 0.8852 MB / 0.5287 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/0.4314, allocations: 0.9366 MB / 0.5296 GB, free: 14.38 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4314, allocations: 0 / 0.5296 GB, free: 14.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04592/0.4773, allocations: 31.98 MB / 0.5608 GB, free: 14.66 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.4775, allocations: 181.9 kB / 0.561 GB, free: 14.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.269/2.746, allocations: 0 / 0.561 GB, free: 14.4 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/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)