Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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: translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008443/0.0008441, allocations: 90.83 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03806/0.03806, allocations: 8.834 MB / 345.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.93e-05/1.932e-05, allocations: 0 / 405.6 MB, free: 61.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07184/0.07187, allocations: 52.39 MB / 457.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2917/0.3636, allocations: 95.95 MB / 0.5409 GB, free: 5.887 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.3639, allocations: 82.58 kB / 0.541 GB, free: 5.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1112/0.4751, allocations: 51.12 MB / 0.5909 GB, free: 9.215 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4751, allocations: 0 / 0.5909 GB, free: 9.215 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.173e-05/0.4752, allocations: 63.94 kB / 0.591 GB, free: 9.152 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.007443/0.4826, allocations: 2.939 MB / 0.5938 GB, free: 6.156 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.4827, allocations: 8.031 kB / 0.5938 GB, free: 6.148 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005099/0.4832, allocations: 308.9 kB / 0.5941 GB, free: 5.844 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.485, allocations: 1.193 MB / 0.5953 GB, free: 4.605 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.4852, allocations: 221.9 kB / 0.5955 GB, free: 4.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003793/0.4856, allocations: 299.9 kB / 0.5958 GB, free: 4.094 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007146/0.4927, allocations: 4.785 MB / 0.6005 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.273e-05/0.4928, allocations: 39.62 kB / 0.6005 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002446/0.4931, allocations: 132 kB / 0.6006 GB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003855/0.4935, allocations: 348.2 kB / 0.601 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00602/0.4995, allocations: 3.562 MB / 0.6045 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02043/0.5199, allocations: 21.76 MB / 0.6257 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004447/0.5244, allocations: 1.882 MB / 0.6275 GB, free: 2.297 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009058/0.5253, allocations: 0.6559 MB / 0.6282 GB, free: 1.641 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006242/0.5316, allocations: 5.502 MB / 0.6336 GB, free: 11.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.5316, allocations: 39.56 kB / 0.6336 GB, free: 11.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=102): time 2.836e-06/0.5316, allocations: 0 / 0.6336 GB, free: 11.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=140): time 0.01892/0.5506, allocations: 8.536 MB / 0.6419 GB, free: 2.953 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.5506, allocations: 64.72 kB / 0.642 GB, free: 2.875 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/0.5527, allocations: 1.567 MB / 0.6435 GB, free: 1.312 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.988e-05/0.5528, allocations: 45.7 kB / 0.6436 GB, free: 1.262 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.198/0.7508, allocations: 1.727 MB / 0.6452 GB, free: 125.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/0.7514, allocations: 0.5253 MB / 0.6458 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.7517, allocations: 77.31 kB / 0.6458 GB, free: 125.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003256/0.752, allocations: 0.506 MB / 0.6463 GB, free: 125.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/0.7537, allocations: 1.151 MB / 0.6475 GB, free: 125.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002397/0.7561, allocations: 3.326 MB / 0.6507 GB, free: 122.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/0.7585, allocations: 1.859 MB / 0.6525 GB, free: 122.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.072e-05/0.7586, allocations: 23.94 kB / 0.6525 GB, free: 122.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.006661/0.7653, allocations: 4.667 MB / 0.6571 GB, free: 122.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.983e-05/0.7653, allocations: 38.67 kB / 0.6571 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-05/0.7654, allocations: 77 kB / 0.6572 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008326/0.7663, allocations: 367.5 kB / 0.6576 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/0.7689, allocations: 0.8951 MB / 0.6584 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/0.7734, allocations: 3.857 MB / 0.6622 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.7758, allocations: 210.2 kB / 0.6624 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003013/0.7761, allocations: 236.1 kB / 0.6626 GB, free: 120.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004388/0.7765, allocations: 389.9 kB / 0.663 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.7768, allocations: 192.9 kB / 0.6632 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/0.7805, allocations: 2.55 MB / 0.6657 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.7806, allocations: 10.91 kB / 0.6657 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.7806, allocations: 3.562 kB / 0.6657 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.7806, allocations: 12.14 kB / 0.6657 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008023/0.7886, allocations: 6.296 MB / 0.6718 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.7886, allocations: 3.562 kB / 0.6718 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009352/0.7896, allocations: 273 kB / 0.6721 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005428/0.7901, allocations: 268.2 kB / 0.6724 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.22e-05/0.7902, allocations: 26.94 kB / 0.6724 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002722/0.793, allocations: 3.163 MB / 0.6755 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.793, allocations: 15.38 kB / 0.6755 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003802/0.7968, allocations: 4.067 MB / 0.6795 GB, free: 115.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.7971, allocations: 251 kB / 0.6797 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.7973, allocations: 27.34 kB / 0.6797 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007446/0.798, allocations: 102.2 kB / 0.6798 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.7982, allocations: 100.2 kB / 0.6799 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-05/0.7983, allocations: 35.25 kB / 0.68 GB, free: 115.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001083/0.7994, allocations: 1.047 MB / 0.681 GB, free: 115 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7994, allocations: 4 kB / 0.681 GB, free: 115 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002273/0.8017, allocations: 0.643 MB / 0.6816 GB, free: 114.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001957/0.8019, allocations: 143.5 kB / 0.6817 GB, free: 114.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003384/0.8053, allocations: 3.2 MB / 0.6849 GB, free: 113.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8053, allocations: 5.5 kB / 0.6849 GB, free: 113.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.8065, allocations: 1.235 MB / 0.6861 GB, free: 113 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.8077, allocations: 384.1 kB / 0.6865 GB, free: 112.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.8125, allocations: 4.053 MB / 0.6904 GB, free: 111.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.8136, allocations: 1.881 MB / 0.6922 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001787/0.8154, allocations: 0.8594 MB / 0.6931 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.8158, allocations: 150.4 kB / 0.6932 GB, free: 110.2 MB / 458.7 MB Notification: Performance of SimCode: time 4.61e-07/0.8158, allocations: 0 / 0.6932 GB, free: 110.2 MB / 458.7 MB Notification: Performance of Templates: time 0.02908/0.8449, allocations: 24.21 MB / 0.7169 GB, free: 99.96 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)