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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-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: translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001852/0.001852, allocations: 195.2 kB / 16.14 MB, free: 6.656 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.507/1.507, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2075/0.2075, allocations: 9.115 MB / 299.1 MB, free: 1.926 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.88 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 51.43 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.01036/0.114, allocations: 9.577 MB / 422.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.202/0.316, allocations: 2.732 MB / 425 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.3177, allocations: 30.53 kB / 425 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007924/0.3186, allocations: 231.8 kB / 425.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002568/0.3211, allocations: 1.042 MB / 426.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.3214, allocations: 33.62 kB / 426.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002345/0.3237, allocations: 2.691 MB / 429 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.3241, allocations: 146.3 kB / 429.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008363/0.3249, allocations: 0.5323 MB / 429.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.3261, allocations: 0.9941 MB / 430.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.3264, allocations: 96 kB / 430.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.3275, allocations: 0.6951 MB / 431.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00069/0.3282, allocations: 0.8739 MB / 432.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.3293, allocations: 1.118 MB / 433.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003702/0.333, allocations: 3.746 MB / 437.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.333, allocations: 3.219 kB / 437.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.333, allocations: 1.219 kB / 437.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.839e-05/0.3331, allocations: 0 / 437.2 MB, free: 32.98 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.005565/0.3387, allocations: 2.572 MB / 439.8 MB, free: 31.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3388, allocations: 8.938 kB / 439.8 MB, free: 31.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006381/0.3452, allocations: 1.678 MB / 441.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.3473, allocations: 1.084 MB / 442.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.3475, allocations: 104 kB / 442.7 MB, free: 30.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006474/0.3481, allocations: 131.5 kB / 442.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009354/0.3575, allocations: 6.502 MB / 449.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/0.3576, allocations: 17.12 kB / 449.3 MB, free: 27.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002826/0.3579, allocations: 62.19 kB / 449.4 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/0.3603, allocations: 1.625 MB / 451 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.3733, allocations: 6.046 MB / 457.1 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03249/0.4058, allocations: 18.19 MB / 475.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.4086, allocations: 1.554 MB / 476.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.4098, allocations: 0.5294 MB / 477.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004819/0.4147, allocations: 2.145 MB / 479.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.4148, allocations: 42.3 kB / 479.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 5.3e-06/0.4148, allocations: 0 / 479.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003644/0.4184, allocations: 1.485 MB / 481 MB, free: 11.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.4185, allocations: 60.91 kB / 481.1 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.4222, allocations: 2.011 MB / 483.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001359/0.4223, allocations: 36.33 kB / 483.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008764/0.4232, allocations: 1.659 MB / 484.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/0.4235, allocations: 315.9 kB / 485.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006739/0.4242, allocations: 0.5668 MB / 485.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4243, allocations: 362.1 kB / 486 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.4258, allocations: 0.9213 MB / 486.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/0.4282, allocations: 2.573 MB / 489.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003468/0.4317, allocations: 3.731 MB / 493.2 MB, free: 88 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.258e-05/0.4318, allocations: 16 kB / 493.2 MB, free: 72 kB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.007668/0.4395, allocations: 3.423 MB / 496.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.4395, allocations: 32.97 kB / 496.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/0.4397, allocations: 56 kB / 496.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/0.4398, allocations: 84 kB / 496.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/0.4421, allocations: 0.6082 MB / 497.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001209/0.4423, allocations: 119.7 kB / 497.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002949/0.4453, allocations: 415.8 kB / 498 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004589/0.4457, allocations: 172 kB / 498.1 MB, free: 11.18 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.002364/0.4481, allocations: 1.314 MB / 499.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004634/0.4486, allocations: 154.6 kB / 499.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.4508, allocations: 1.056 MB / 0.4889 GB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/0.4509, allocations: 19.97 kB / 0.4889 GB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.4509, allocations: 7.938 kB / 0.4889 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.4509, allocations: 0 / 0.4889 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007028/0.458, allocations: 3.588 MB / 0.4924 GB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.458, allocations: 4.734 kB / 0.4924 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005051/0.4585, allocations: 107.9 kB / 0.4925 GB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.4585, allocations: 8.125 kB / 0.4926 GB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.4586, allocations: 12 kB / 0.4926 GB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.4586, allocations: 3.984 kB / 0.4926 GB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4586, allocations: 4 kB / 0.4926 GB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.461, allocations: 1.741 MB / 0.4943 GB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005052/0.4615, allocations: 239.1 kB / 0.4945 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/0.4619, allocations: 19.94 kB / 0.4945 GB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007316/0.4627, allocations: 29.31 kB / 0.4946 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.461e-05/0.4628, allocations: 36.39 kB / 0.4946 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.491e-05/0.4629, allocations: 26.81 kB / 0.4946 GB, free: 2.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002565/0.4654, allocations: 1.321 MB / 0.4959 GB, free: 1.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4654, allocations: 0 / 0.4959 GB, free: 1.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002623/0.4681, allocations: 0.6301 MB / 0.4965 GB, free: 0.7461 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 (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.000424/0.4685, allocations: 137.2 kB / 0.4966 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003601/0.4721, allocations: 2.006 MB / 0.4986 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4722, allocations: 4 kB / 0.4986 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007855/0.473, allocations: 480.5 kB / 0.4991 GB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.4749, allocations: 270.9 kB / 0.4993 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4859, allocations: 6.135 MB / 0.5053 GB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003306/0.4892, allocations: 2.168 MB / 0.5074 GB, free: 5.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002708/0.492, allocations: 0.8929 MB / 0.5083 GB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.4924, allocations: 119.4 kB / 0.5084 GB, free: 4.535 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4925, allocations: 0 / 0.5084 GB, free: 4.535 MB / 382.1 MB Notification: Performance of Templates: time 0.03296/0.5254, allocations: 16.56 MB / 0.5246 GB, free: 4.125 MB / 398.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)