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.001044/0.001044, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00807/0.00807, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1678/0.1678, allocations: 9.122 MB / 300.5 MB, free: 2.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003129, allocations: 12 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1061, allocations: 52.43 MB / 416.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2325/0.3386, allocations: 43.01 MB / 459.2 MB, free: 16.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.3592, allocations: 9.206 MB / 468.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01165/0.3709, allocations: 167.5 kB / 468.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.3725, allocations: 373.7 kB / 468.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.377, allocations: 1.473 MB / 470.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.3778, allocations: 182.7 kB / 470.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004562/0.3824, allocations: 4.071 MB / 474.6 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001945/0.3844, allocations: 1.051 MB / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002018/0.3864, allocations: 0.9269 MB / 476.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.3888, allocations: 1.533 MB / 478.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005715/0.3894, allocations: 159.2 kB / 478.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.3912, allocations: 0.7991 MB / 479.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001646/0.3929, allocations: 1.304 MB / 480.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00215/0.395, allocations: 1.773 MB / 482.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007267/0.4023, allocations: 5.141 MB / 487.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4024, allocations: 0.7031 kB / 487.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.4024, allocations: 0 / 487.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002461/0.4026, allocations: 0 / 487.3 MB, free: 3.254 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.01556/0.4182, allocations: 4.975 MB / 492.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.4183, allocations: 9.875 kB / 492.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009065/0.4274, allocations: 1.87 MB / 494.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004663/0.4321, allocations: 1.559 MB / 495.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002965/0.4324, allocations: 190.1 kB / 495.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001377/0.4338, allocations: 238 kB / 496.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0206/0.4544, allocations: 9.317 MB / 0.4936 GB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/0.4545, allocations: 31.66 kB / 0.4936 GB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004407/0.455, allocations: 115.8 kB / 0.4937 GB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003664/0.4587, allocations: 2.076 MB / 0.4958 GB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01886/0.4775, allocations: 8.248 MB / 0.5038 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05113/0.5287, allocations: 30.04 MB / 0.5332 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008799/0.5376, allocations: 3.027 MB / 0.5361 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.5398, allocations: 1.108 MB / 0.5372 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009378/0.5492, allocations: 6.281 MB / 0.5433 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.5493, allocations: 55.81 kB / 0.5434 GB, free: 5.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 4.648e-06/0.5493, allocations: 0 / 0.5434 GB, free: 5.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.0337/0.583, allocations: 12.4 MB / 0.5555 GB, free: 8.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009167/0.5922, allocations: 6.643 MB / 0.562 GB, free: 1.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00748/0.5998, allocations: 3.065 MB / 0.565 GB, free: 14.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004471/0.6002, allocations: 65.64 kB / 0.565 GB, free: 14.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/0.6026, allocations: 2.421 MB / 0.5674 GB, free: 12.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001623/0.6042, allocations: 0.8632 MB / 0.5682 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001313/0.6056, allocations: 429.2 kB / 0.5687 GB, free: 10.97 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.6057, allocations: 305.1 kB / 0.5689 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003662/0.6094, allocations: 1.712 MB / 0.5706 GB, free: 8.949 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005515/0.6149, allocations: 4.331 MB / 0.5748 GB, free: 3.332 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2534/0.8683, allocations: 6.529 MB / 0.5812 GB, free: 118.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.512e-05/0.8685, allocations: 24.88 kB / 0.5812 GB, free: 118.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01433/0.8828, allocations: 6.669 MB / 0.5878 GB, free: 117.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.161e-05/0.8829, allocations: 44.47 kB / 0.5878 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.883, allocations: 91.97 kB / 0.5879 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.8847, allocations: 0.7059 MB / 0.5886 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003573/0.8883, allocations: 1.074 MB / 0.5896 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.8993, allocations: 11.11 MB / 0.6005 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004997/0.9044, allocations: 300.3 kB / 0.6008 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/0.9056, allocations: 295 kB / 0.601 GB, free: 110.4 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.004782/0.9104, allocations: 1.798 MB / 0.6028 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008457/0.9113, allocations: 283.7 kB / 0.6031 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007101/0.9184, allocations: 3.501 MB / 0.6065 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005209/0.9237, allocations: 3.032 MB / 0.6095 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.32e-05/0.9237, allocations: 6.062 kB / 0.6095 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/0.9238, allocations: 13.86 kB / 0.6095 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/0.9469, allocations: 10.73 MB / 0.62 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/0.9469, allocations: 6.016 kB / 0.62 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.9481, allocations: 272.2 kB / 0.6202 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/0.9504, allocations: 0.7839 MB / 0.621 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002448/0.9506, allocations: 51.28 kB / 0.621 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.9634, allocations: 11.04 MB / 0.6318 GB, free: 95.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00595/0.9694, allocations: 5.777 MB / 0.6375 GB, free: 91.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00786/0.9773, allocations: 5.101 MB / 0.6424 GB, free: 89.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.9784, allocations: 371.1 kB / 0.6428 GB, free: 89.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007193/0.9791, allocations: 44.19 kB / 0.6428 GB, free: 89.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.9807, allocations: 113 kB / 0.6429 GB, free: 89.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000431/0.9812, allocations: 162.7 kB / 0.6431 GB, free: 88.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001672/0.9814, allocations: 67.88 kB / 0.6432 GB, free: 88.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003672/0.985, allocations: 1.966 MB / 0.6451 GB, free: 88.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.9851, allocations: 0 / 0.6451 GB, free: 88.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005478/0.9905, allocations: 1 MB / 0.6461 GB, free: 87.45 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 (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.000578/0.9911, allocations: 176.5 kB / 0.6462 GB, free: 87.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00741/0.9986, allocations: 4.862 MB / 0.651 GB, free: 82.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.9986, allocations: 0.7656 kB / 0.651 GB, free: 82.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003607/1.002, allocations: 2.225 MB / 0.6531 GB, free: 80.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004753/1.007, allocations: 444.6 kB / 0.6536 GB, free: 80.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/1.025, allocations: 10.19 MB / 0.6635 GB, free: 70.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004094/1.029, allocations: 2.965 MB / 0.6664 GB, free: 67.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003916/1.033, allocations: 1.409 MB / 0.6678 GB, free: 65.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008757/1.034, allocations: 223.3 kB / 0.668 GB, free: 65.77 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/1.034, allocations: 0 / 0.668 GB, free: 65.77 MB / 446.1 MB Notification: Performance of Templates: time 0.06162/1.095, allocations: 37.14 MB / 0.7043 GB, free: 28.88 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)