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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004905/0.004905, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001124/0.001124, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1574/0.1574, allocations: 9.112 MB / 299.6 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 60.14 kB / 414.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2875, allocations: 51.43 MB / 466.1 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01075/0.2983, allocations: 10.46 MB / 476.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008255/0.3066, allocations: 2.979 MB / 479.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002886/0.3096, allocations: 42.16 kB / 479.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.3113, allocations: 457 kB / 480 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004551/0.3159, allocations: 1.58 MB / 481.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007437/0.3166, allocations: 219 kB / 481.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004365/0.321, allocations: 3.022 MB / 484.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/0.3229, allocations: 1.183 MB / 486 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.3256, allocations: 1.098 MB / 487.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002927/0.3285, allocations: 1.551 MB / 488.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001236/0.3298, allocations: 276.1 kB / 488.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.3321, allocations: 0.8701 MB / 489.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001717/0.3338, allocations: 1.401 MB / 491.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002643/0.3365, allocations: 1.859 MB / 493.1 MB, free: 164 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.3466, allocations: 5.749 MB / 498.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.3467, allocations: 0 / 498.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3467, allocations: 0 / 498.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002605/0.3469, allocations: 0 / 498.8 MB, free: 11.33 MB / 366.1 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.01651/0.3635, allocations: 5.823 MB / 0.4928 GB, free: 5.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3635, allocations: 15.95 kB / 0.4928 GB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007532/0.3711, allocations: 1.855 MB / 0.4946 GB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/0.3757, allocations: 1.573 MB / 0.4962 GB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3759, allocations: 188.6 kB / 0.4963 GB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005532/0.3765, allocations: 239.8 kB / 0.4966 GB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.3924, allocations: 9.307 MB / 0.5057 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.307e-05/0.3925, allocations: 35.64 kB / 0.5057 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/0.3929, allocations: 123.8 kB / 0.5058 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.3962, allocations: 2.068 MB / 0.5078 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0174/0.4136, allocations: 8.253 MB / 0.5159 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05053/0.4642, allocations: 29.98 MB / 0.5452 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008181/0.4725, allocations: 3.038 MB / 0.5481 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/0.4746, allocations: 1.112 MB / 0.5492 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.4852, allocations: 6.289 MB / 0.5554 GB, free: 3.391 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.043e-05/0.4853, allocations: 47.88 kB / 0.5554 GB, free: 3.336 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 1.108e-05/0.4854, allocations: 3.984 kB / 0.5554 GB, free: 3.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03297/0.5183, allocations: 12.41 MB / 0.5675 GB, free: 6.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008834/0.5272, allocations: 6.957 MB / 0.5743 GB, free: 15.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005995/0.5333, allocations: 3.081 MB / 0.5773 GB, free: 12.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003507/0.5337, allocations: 57.7 kB / 0.5774 GB, free: 12.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001862/0.5355, allocations: 2.525 MB / 0.5799 GB, free: 9.793 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.5367, allocations: 0.9028 MB / 0.5807 GB, free: 8.883 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002288/0.539, allocations: 1.005 MB / 0.5817 GB, free: 7.867 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.5391, allocations: 305.1 kB / 0.582 GB, free: 7.566 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003022/0.5422, allocations: 1.72 MB / 0.5837 GB, free: 5.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004677/0.5469, allocations: 4.331 MB / 0.5879 GB, free: 232 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2824/0.8292, allocations: 6.522 MB / 0.5943 GB, free: 102.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.333e-05/0.8294, allocations: 28.16 kB / 0.5943 GB, free: 102.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01427/0.8437, allocations: 6.679 MB / 0.6008 GB, free: 100.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.391e-05/0.8438, allocations: 46.48 kB / 0.6009 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/0.844, allocations: 91.41 kB / 0.601 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001915/0.8459, allocations: 0.7054 MB / 0.6017 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/0.8496, allocations: 1.07 MB / 0.6027 GB, free: 99.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/0.8649, allocations: 12.19 MB / 0.6146 GB, free: 91.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004876/0.8699, allocations: 300.2 kB / 0.6149 GB, free: 91.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/0.8711, allocations: 293.6 kB / 0.6152 GB, free: 91.36 MB / 462.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.004108/0.8752, allocations: 1.796 MB / 0.6169 GB, free: 90.51 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008795/0.8761, allocations: 298.8 kB / 0.6172 GB, free: 90.51 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006951/0.8831, allocations: 3.509 MB / 0.6206 GB, free: 89.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004478/0.8876, allocations: 3.027 MB / 0.6236 GB, free: 88.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.8876, allocations: 7.781 kB / 0.6236 GB, free: 88.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.8876, allocations: 15.42 kB / 0.6236 GB, free: 88.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.9034, allocations: 10.6 MB / 0.634 GB, free: 82.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.9035, allocations: 0 / 0.634 GB, free: 82.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000929/0.9044, allocations: 280 kB / 0.6342 GB, free: 82.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001885/0.9063, allocations: 0.7773 MB / 0.635 GB, free: 81.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.9065, allocations: 51.92 kB / 0.635 GB, free: 81.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/0.9165, allocations: 12.02 MB / 0.6468 GB, free: 69.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005234/0.9218, allocations: 6.019 MB / 0.6527 GB, free: 62.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006696/0.9285, allocations: 5.116 MB / 0.6576 GB, free: 57.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008929/0.9294, allocations: 381.2 kB / 0.658 GB, free: 57.41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/0.9297, allocations: 40 kB / 0.6581 GB, free: 57.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.9308, allocations: 119.8 kB / 0.6582 GB, free: 57.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.9312, allocations: 161.6 kB / 0.6583 GB, free: 57.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.9313, allocations: 67.73 kB / 0.6584 GB, free: 57.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002372/0.9337, allocations: 1.964 MB / 0.6603 GB, free: 55.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9337, allocations: 0 / 0.6603 GB, free: 55.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004749/0.9384, allocations: 1 MB / 0.6613 GB, free: 54.07 MB / 462.1 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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (4,12,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004366/0.9389, allocations: 193.8 kB / 0.6615 GB, free: 53.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006615/0.9455, allocations: 4.869 MB / 0.6662 GB, free: 48.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.9456, allocations: 4 kB / 0.6662 GB, free: 48.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002518/0.9481, allocations: 2.231 MB / 0.6684 GB, free: 46.67 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.9503, allocations: 472.5 kB / 0.6689 GB, free: 46.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/0.9633, allocations: 8.36 MB / 0.677 GB, free: 37.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002473/0.9659, allocations: 2.957 MB / 0.6799 GB, free: 34.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002962/0.9688, allocations: 1.382 MB / 0.6813 GB, free: 33.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005748/0.9694, allocations: 215.4 kB / 0.6815 GB, free: 33.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.9694, allocations: 0 / 0.6815 GB, free: 33.2 MB / 462.1 MB Notification: Performance of Templates: time 0.0751/1.045, allocations: 36.7 MB / 0.7173 GB, free: 12.74 MB / 478.1 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)