Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009441/0.0009441, allocations: 174.7 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.148/1.148, 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.0007761/0.0007761, allocations: 92.58 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03833/0.03833, allocations: 8.825 MB / 345.3 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.269e-05, allocations: 4 kB / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07048/0.07052, allocations: 52.4 MB / 458 MB, free: 9.059 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2923/0.3629, allocations: 88.51 MB / 0.5337 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001848/0.3631, allocations: 74.28 kB / 0.5337 GB, free: 13.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1763/0.5394, allocations: 74.28 MB / 0.6063 GB, free: 9.062 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.536e-06/0.5395, allocations: 4 kB / 0.6063 GB, free: 9.059 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000131/0.5396, allocations: 60 kB / 0.6063 GB, free: 9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01353/0.5532, allocations: 3.925 MB / 0.6102 GB, free: 5.016 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.5532, allocations: 15.97 kB / 0.6102 GB, free: 5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009229/0.5625, allocations: 2.007 MB / 0.6121 GB, free: 2.984 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004594/0.5671, allocations: 1.927 MB / 0.614 GB, free: 1.012 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/0.5674, allocations: 266.9 kB / 0.6143 GB, free: 0.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001626/0.569, allocations: 351.7 kB / 0.6146 GB, free: 416 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.589, allocations: 8.809 MB / 0.6232 GB, free: 7.121 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/0.5892, allocations: 27.69 kB / 0.6232 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001444/0.5907, allocations: 163.9 kB / 0.6234 GB, free: 6.934 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001711/0.5924, allocations: 1.03 MB / 0.6244 GB, free: 5.902 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.6088, allocations: 8.035 MB / 0.6322 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2416/0.8504, allocations: 29.96 MB / 0.6615 GB, free: 97.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007714/0.8582, allocations: 2.991 MB / 0.6644 GB, free: 97.08 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/0.8602, allocations: 1.074 MB / 0.6655 GB, free: 97.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008369/0.8686, allocations: 6.307 MB / 0.6716 GB, free: 93.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.8686, allocations: 46.31 kB / 0.6717 GB, free: 93.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.208e-06/0.8687, allocations: 1.625 kB / 0.6717 GB, free: 93.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=239): time 0.02279/0.8915, allocations: 10.53 MB / 0.682 GB, free: 91.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005846/0.8973, allocations: 6.409 MB / 0.6882 GB, free: 88.86 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003892/0.9013, allocations: 2.661 MB / 0.6908 GB, free: 88.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.9015, allocations: 61.11 kB / 0.6909 GB, free: 88.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.9025, allocations: 2.42 MB / 0.6932 GB, free: 87.26 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006405/0.9032, allocations: 0.8689 MB / 0.6941 GB, free: 86.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.9034, allocations: 98.36 kB / 0.6942 GB, free: 86.74 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.9036, allocations: 0.5129 MB / 0.6947 GB, free: 86.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001886/0.9055, allocations: 1.595 MB / 0.6962 GB, free: 86.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00275/0.9082, allocations: 4.199 MB / 0.7003 GB, free: 83.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002828/0.9111, allocations: 2.639 MB / 0.7029 GB, free: 82.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.241e-05/0.9111, allocations: 25.59 kB / 0.7029 GB, free: 82.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=666) (initialization): time 0.008104/0.9192, allocations: 6.447 MB / 0.7092 GB, free: 80.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/0.9193, allocations: 45.31 kB / 0.7093 GB, free: 80.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.15e-05/0.9194, allocations: 91.84 kB / 0.7094 GB, free: 80.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.9208, allocations: 0.6949 MB / 0.7101 GB, free: 80.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/0.9235, allocations: 1.06 MB / 0.7111 GB, free: 80.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00977/0.9333, allocations: 12.35 MB / 0.7231 GB, free: 71.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/0.9367, allocations: 280.6 kB / 0.7234 GB, free: 70.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004158/0.9371, allocations: 295.3 kB / 0.7237 GB, free: 70.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (588): * Single equations (assignments): 577 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005683/0.9377, allocations: 476.7 kB / 0.7242 GB, free: 70.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.938, allocations: 281.7 kB / 0.7244 GB, free: 70.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.9427, allocations: 3.348 MB / 0.7277 GB, free: 69.17 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003676/0.9463, allocations: 2.88 MB / 0.7305 GB, free: 68.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.9464, allocations: 11 kB / 0.7305 GB, free: 68.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.9464, allocations: 10.27 kB / 0.7305 GB, free: 68.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/0.9625, allocations: 10.47 MB / 0.7408 GB, free: 63.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.9626, allocations: 4 kB / 0.7408 GB, free: 63.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000904/0.9635, allocations: 273.3 kB / 0.741 GB, free: 62.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.965, allocations: 0.7161 MB / 0.7417 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.9652, allocations: 46.92 kB / 0.7418 GB, free: 62.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009889/0.975, allocations: 12.22 MB / 0.7537 GB, free: 50.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004933/0.98, allocations: 5.675 MB / 0.7592 GB, free: 45.04 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006486/0.9865, allocations: 5.128 MB / 0.7642 GB, free: 40.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000938/0.9875, allocations: 367.7 kB / 0.7646 GB, free: 39.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005914/0.9881, allocations: 44.86 kB / 0.7646 GB, free: 39.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.9895, allocations: 108.6 kB / 0.7647 GB, free: 39.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.9899, allocations: 160.4 kB / 0.7649 GB, free: 39.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.99, allocations: 68 kB / 0.765 GB, free: 39.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002885/0.9929, allocations: 1.872 MB / 0.7668 GB, free: 38 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9929, allocations: 0 / 0.7668 GB, free: 38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00422/0.9971, allocations: 0.9927 MB / 0.7678 GB, free: 37.02 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.00039/0.9975, allocations: 190.9 kB / 0.7679 GB, free: 36.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00549/1.003, allocations: 4.692 MB / 0.7725 GB, free: 32.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.003, allocations: 0 / 0.7725 GB, free: 32.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/1.005, allocations: 2.117 MB / 0.7746 GB, free: 30.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/1.007, allocations: 412.6 kB / 0.775 GB, free: 30.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/1.018, allocations: 6.707 MB / 0.7815 GB, free: 24.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002446/1.021, allocations: 3.04 MB / 0.7845 GB, free: 21.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003153/1.024, allocations: 1.402 MB / 0.7859 GB, free: 20.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/1.024, allocations: 222.9 kB / 0.7861 GB, free: 20.59 MB / 458.7 MB Notification: Performance of SimCode: time 1.312e-06/1.024, allocations: 4 kB / 0.7861 GB, free: 20.59 MB / 458.7 MB Notification: Performance of Templates: time 0.05582/1.08, allocations: 36.09 MB / 0.8213 GB, free: 2.289 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)