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.00111/0.00111, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001162/0.001162, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.172/0.172, allocations: 9.105 MB / 300.2 MB, free: 2.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004493, allocations: 12 kB / 363.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 52.44 MB / 415.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2503/0.3889, allocations: 40.03 MB / 455.6 MB, free: 19.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.4122, allocations: 8.877 MB / 464.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01034/0.4226, allocations: 167.3 kB / 464.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006469/0.4291, allocations: 1.977 MB / 466.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02059/0.4497, allocations: 6.858 MB / 473.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002612/0.4524, allocations: 197 kB / 473.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004028/0.4564, allocations: 3.292 MB / 476.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001642/0.4581, allocations: 1.039 MB / 478 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.4596, allocations: 0.9689 MB / 478.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.4615, allocations: 1.508 MB / 480.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004733/0.462, allocations: 157.6 kB / 480.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.4636, allocations: 0.6972 MB / 481.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001285/0.4649, allocations: 1.265 MB / 482.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007774/0.4657, allocations: 0.7388 MB / 483.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006737/0.4724, allocations: 4.178 MB / 487.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4724, allocations: 0 / 487.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4725, allocations: 0 / 487.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001417/0.4726, allocations: 0 / 487.5 MB, free: 4.801 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01203/0.4846, allocations: 5.01 MB / 492.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4847, allocations: 9.875 kB / 492.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006575/0.4913, allocations: 1.874 MB / 494.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/0.4943, allocations: 1.53 MB / 495.9 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.4945, allocations: 188.4 kB / 496.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005611/0.4951, allocations: 247.4 kB / 496.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01724/0.5124, allocations: 9.289 MB / 0.4938 GB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-05/0.5125, allocations: 27.75 kB / 0.4938 GB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004128/0.5129, allocations: 126.1 kB / 0.4939 GB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003226/0.5161, allocations: 2.068 MB / 0.4959 GB, free: 7.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/0.5338, allocations: 8.211 MB / 0.504 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/0.5825, allocations: 30.03 MB / 0.5333 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008431/0.591, allocations: 3.021 MB / 0.5362 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.5933, allocations: 1.112 MB / 0.5373 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/0.6039, allocations: 6.281 MB / 0.5435 GB, free: 5.027 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/0.604, allocations: 43.88 kB / 0.5435 GB, free: 4.977 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 6.161e-06/0.604, allocations: 0 / 0.5435 GB, free: 4.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.03182/0.6358, allocations: 12.35 MB / 0.5556 GB, free: 8.465 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008183/0.644, allocations: 6.622 MB / 0.562 GB, free: 1.535 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00685/0.6509, allocations: 3.053 MB / 0.565 GB, free: 14.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004179/0.6514, allocations: 61.64 kB / 0.5651 GB, free: 14.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/0.6535, allocations: 2.424 MB / 0.5674 GB, free: 11.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00133/0.6548, allocations: 0.8594 MB / 0.5683 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005513/0.6554, allocations: 104 kB / 0.5684 GB, free: 10.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005015/0.6559, allocations: 0.5131 MB / 0.5689 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/0.6594, allocations: 1.693 MB / 0.5705 GB, free: 8.746 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005207/0.6646, allocations: 4.312 MB / 0.5747 GB, free: 3.148 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004975/0.6696, allocations: 2.709 MB / 0.5774 GB, free: 452 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.637e-05/0.6697, allocations: 28 kB / 0.5774 GB, free: 424 kB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.2786/0.9483, allocations: 6.616 MB / 0.5839 GB, free: 120.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.942e-05/0.9484, allocations: 46.53 kB / 0.5839 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.9486, allocations: 92.34 kB / 0.584 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/0.9508, allocations: 0.7216 MB / 0.5847 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004742/0.9555, allocations: 1.07 MB / 0.5858 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/0.969, allocations: 11.09 MB / 0.5966 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004311/0.9734, allocations: 302.4 kB / 0.5969 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005281/0.974, allocations: 297.3 kB / 0.5972 GB, free: 114 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(2,100.0%) 17,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.002932/0.9769, allocations: 1.792 MB / 0.5989 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.9773, allocations: 283.6 kB / 0.5992 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005165/0.9825, allocations: 3.488 MB / 0.6026 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004141/0.9867, allocations: 3.016 MB / 0.6055 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.9867, allocations: 6.188 kB / 0.6055 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.196e-05/0.9867, allocations: 11.11 kB / 0.6055 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01704/1.004, allocations: 10.71 MB / 0.616 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.004, allocations: 6.781 kB / 0.616 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/1.005, allocations: 274.8 kB / 0.6163 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/1.007, allocations: 0.7825 MB / 0.617 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/1.007, allocations: 52.56 kB / 0.6171 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/1.017, allocations: 11.02 MB / 0.6278 GB, free: 99.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005485/1.023, allocations: 5.77 MB / 0.6335 GB, free: 95.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006348/1.029, allocations: 5.08 MB / 0.6384 GB, free: 92.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009759/1.03, allocations: 374.7 kB / 0.6388 GB, free: 92.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/1.031, allocations: 39.64 kB / 0.6388 GB, free: 92.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/1.032, allocations: 115.3 kB / 0.6389 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/1.032, allocations: 165.2 kB / 0.6391 GB, free: 92.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/1.032, allocations: 69.67 kB / 0.6392 GB, free: 92.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002813/1.035, allocations: 1.943 MB / 0.6411 GB, free: 91.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1.035, allocations: 1 kB / 0.6411 GB, free: 91.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004439/1.039, allocations: 1.005 MB / 0.6421 GB, free: 91.58 MB / 446.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 6,(2,100.0%) 15,(4,87.5%) 12} * Non-linear torn systems: 1 {3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004014/1.04, allocations: 186.2 kB / 0.6422 GB, free: 91.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006223/1.046, allocations: 4.824 MB / 0.6469 GB, free: 87.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.046, allocations: 0 / 0.6469 GB, free: 87.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002608/1.049, allocations: 2.221 MB / 0.6491 GB, free: 85.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/1.051, allocations: 437.3 kB / 0.6495 GB, free: 84.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/1.065, allocations: 9.78 MB / 0.6591 GB, free: 75.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/1.068, allocations: 2.96 MB / 0.662 GB, free: 73.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003357/1.071, allocations: 1.405 MB / 0.6633 GB, free: 71.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/1.072, allocations: 219.4 kB / 0.6635 GB, free: 71.58 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/1.072, allocations: 0 / 0.6635 GB, free: 71.58 MB / 446.1 MB Notification: Performance of Templates: time 0.05245/1.124, allocations: 36.27 MB / 0.699 GB, free: 35.56 MB / 446.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)