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.006863/0.006863, allocations: 100.8 kB / 15.73 MB, free: 5.98 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.001548/0.001548, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04555/0.04555, allocations: 9.134 MB / 299.7 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.91 kB / 414.6 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 51.44 MB / 466.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01142/0.1135, allocations: 10.48 MB / 476.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00606/0.1196, allocations: 2.971 MB / 479.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.1215, allocations: 47.88 kB / 479.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1231, allocations: 448.8 kB / 480 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004212/0.1273, allocations: 1.579 MB / 481.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006241/0.128, allocations: 227.6 kB / 481.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.1319, allocations: 3.027 MB / 484.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.1334, allocations: 1.171 MB / 486 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.1348, allocations: 1.105 MB / 487.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001794/0.1366, allocations: 1.537 MB / 488.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004598/0.137, allocations: 283.9 kB / 488.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001405/0.1385, allocations: 0.8738 MB / 489.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.1397, allocations: 1.398 MB / 491.2 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.1414, allocations: 1.864 MB / 493.1 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006294/0.1477, allocations: 5.714 MB / 498.8 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1478, allocations: 0 / 498.8 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1478, allocations: 0 / 498.8 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.1479, allocations: 0 / 498.8 MB, free: 0.8047 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.01267/0.1606, allocations: 5.736 MB / 0.4927 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1606, allocations: 12.03 kB / 0.4927 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006646/0.1673, allocations: 1.825 MB / 0.4945 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.1699, allocations: 1.568 MB / 0.496 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.17, allocations: 192.6 kB / 0.4962 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004249/0.1704, allocations: 243.8 kB / 0.4964 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2149/0.3853, allocations: 9.307 MB / 0.5055 GB, free: 39.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.363e-05/0.3855, allocations: 30.77 kB / 0.5056 GB, free: 39.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003317/0.3858, allocations: 122.2 kB / 0.5057 GB, free: 39.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004308/0.3901, allocations: 2.072 MB / 0.5077 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/0.4064, allocations: 8.238 MB / 0.5157 GB, free: 36.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03235/0.4388, allocations: 29.92 MB / 0.545 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006195/0.445, allocations: 3.042 MB / 0.5479 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.4463, allocations: 1.112 MB / 0.549 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006054/0.4524, allocations: 6.279 MB / 0.5552 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.4524, allocations: 47.88 kB / 0.5552 GB, free: 2.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.268e-06/0.4524, allocations: 0 / 0.5552 GB, free: 2.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.02874/0.4812, allocations: 12.33 MB / 0.5672 GB, free: 5.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008791/0.49, allocations: 6.947 MB / 0.574 GB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004764/0.4948, allocations: 3.069 MB / 0.577 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002823/0.4951, allocations: 61.61 kB / 0.5771 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/0.4967, allocations: 2.422 MB / 0.5794 GB, free: 8.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009186/0.4977, allocations: 0.8593 MB / 0.5803 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.4989, allocations: 1.008 MB / 0.5813 GB, free: 7.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.499, allocations: 305.1 kB / 0.5816 GB, free: 6.758 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.5018, allocations: 1.716 MB / 0.5832 GB, free: 5.035 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004391/0.5062, allocations: 4.327 MB / 0.5875 GB, free: 15.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007614/0.5138, allocations: 6.532 MB / 0.5938 GB, free: 7.621 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.365e-05/0.5139, allocations: 28 kB / 0.5939 GB, free: 7.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01167/0.5256, allocations: 6.671 MB / 0.6004 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.797e-05/0.5257, allocations: 44 kB / 0.6004 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.657e-05/0.5258, allocations: 91.98 kB / 0.6005 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.5274, allocations: 0.7107 MB / 0.6012 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/0.5306, allocations: 1.068 MB / 0.6022 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/0.5439, allocations: 12.18 MB / 0.6141 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003972/0.5479, allocations: 303.7 kB / 0.6144 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000724/0.5487, allocations: 292 kB / 0.6147 GB, free: 1.664 MB / 446.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.003105/0.5518, allocations: 1.801 MB / 0.6165 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005544/0.5523, allocations: 288.3 kB / 0.6167 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005986/0.5583, allocations: 3.491 MB / 0.6202 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004702/0.5631, allocations: 3.024 MB / 0.6231 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.5631, allocations: 8 kB / 0.6231 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.5631, allocations: 11.97 kB / 0.6231 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/0.5822, allocations: 10.61 MB / 0.6335 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.5823, allocations: 4 kB / 0.6335 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.5833, allocations: 267.6 kB / 0.6337 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/0.5853, allocations: 0.78 MB / 0.6345 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.5855, allocations: 47.97 kB / 0.6345 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/0.599, allocations: 12.01 MB / 0.6463 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006731/0.6058, allocations: 6.028 MB / 0.6522 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007834/0.6136, allocations: 5.094 MB / 0.6571 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008364/0.6145, allocations: 365.4 kB / 0.6575 GB, free: 4.641 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003958/0.6149, allocations: 36 kB / 0.6575 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.6161, allocations: 123.8 kB / 0.6576 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/0.6164, allocations: 161.6 kB / 0.6578 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.6166, allocations: 67.98 kB / 0.6579 GB, free: 4.262 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002763/0.6193, allocations: 1.961 MB / 0.6598 GB, free: 2.297 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6193, allocations: 0 / 0.6598 GB, free: 2.297 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003699/0.623, allocations: 1.005 MB / 0.6608 GB, free: 1.297 MB / 494.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.000341/0.6234, allocations: 177.6 kB / 0.6609 GB, free: 1.117 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006962/0.6304, allocations: 4.882 MB / 0.6657 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6304, allocations: 4 kB / 0.6657 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003153/0.6335, allocations: 2.215 MB / 0.6679 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.6359, allocations: 490.2 kB / 0.6683 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.649, allocations: 8.208 MB / 0.6763 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003089/0.6521, allocations: 2.965 MB / 0.6792 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00307/0.6552, allocations: 1.378 MB / 0.6806 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000537/0.6558, allocations: 219.4 kB / 0.6808 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of SimCode: time 1.863e-06/0.6558, allocations: 4 kB / 0.6808 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of Templates: time 0.2938/0.9496, allocations: 36.77 MB / 0.7167 GB, free: 178.2 MB / 0.5294 GB 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)