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.001128/0.001128, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001183/0.001183, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.455/1.455, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1703/0.1703, allocations: 9.115 MB / 300.5 MB, free: 2.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1145, allocations: 52.44 MB / 416.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2363/0.3509, allocations: 43.01 MB / 459.2 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.3712, allocations: 9.204 MB / 468.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009989/0.3812, allocations: 165.1 kB / 468.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.3825, allocations: 373.4 kB / 468.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.3868, allocations: 1.47 MB / 470.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009869/0.3878, allocations: 190.2 kB / 470.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.3921, allocations: 4.069 MB / 474.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.3936, allocations: 1.046 MB / 475.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001426/0.395, allocations: 0.9252 MB / 476.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.3976, allocations: 1.533 MB / 478.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.3988, allocations: 157.3 kB / 478.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002175/0.401, allocations: 0.8015 MB / 479.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.4023, allocations: 1.305 MB / 480.4 MB, free: 6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001819/0.4041, allocations: 1.77 MB / 482.2 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006293/0.4104, allocations: 5.139 MB / 487.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4105, allocations: 0 / 487.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4105, allocations: 1.656 kB / 487.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002579/0.4108, allocations: 0 / 487.3 MB, free: 3.129 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.01502/0.4258, allocations: 4.975 MB / 492.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.4259, allocations: 9.781 kB / 492.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008168/0.434, allocations: 1.874 MB / 494.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004268/0.4384, allocations: 1.556 MB / 495.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/0.4387, allocations: 189.9 kB / 495.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.4399, allocations: 247.1 kB / 496.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02179/0.4617, allocations: 9.321 MB / 0.4936 GB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.652e-05/0.4618, allocations: 27.72 kB / 0.4936 GB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000404/0.4623, allocations: 115.8 kB / 0.4937 GB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003575/0.4658, allocations: 2.075 MB / 0.4958 GB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.4841, allocations: 8.241 MB / 0.5038 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05161/0.5357, allocations: 30.04 MB / 0.5332 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007765/0.5436, allocations: 3.039 MB / 0.5361 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.5454, allocations: 1.108 MB / 0.5372 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007748/0.5531, allocations: 6.277 MB / 0.5433 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5532, allocations: 55.75 kB / 0.5434 GB, free: 5.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.457e-06/0.5532, allocations: 0 / 0.5434 GB, free: 5.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.03214/0.5853, allocations: 12.39 MB / 0.5555 GB, free: 8.809 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009999/0.5954, allocations: 6.636 MB / 0.562 GB, free: 1.871 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005205/0.6007, allocations: 3.069 MB / 0.565 GB, free: 14.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004399/0.6011, allocations: 61.7 kB / 0.565 GB, free: 14.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001779/0.6029, allocations: 2.424 MB / 0.5674 GB, free: 12.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/0.604, allocations: 0.8632 MB / 0.5682 GB, free: 11.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005474/0.6046, allocations: 433.1 kB / 0.5687 GB, free: 10.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.6047, allocations: 301.1 kB / 0.5689 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002757/0.6074, allocations: 1.712 MB / 0.5706 GB, free: 8.938 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004526/0.612, allocations: 4.328 MB / 0.5748 GB, free: 3.324 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2431/0.8551, allocations: 6.524 MB / 0.5812 GB, free: 118.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.232e-05/0.8552, allocations: 28.44 kB / 0.5812 GB, free: 118.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01163/0.8668, allocations: 6.667 MB / 0.5877 GB, free: 117.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.329e-05/0.8669, allocations: 46.55 kB / 0.5878 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.802e-05/0.867, allocations: 92.69 kB / 0.5879 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.8687, allocations: 0.7046 MB / 0.5886 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.8718, allocations: 1.076 MB / 0.5896 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.8821, allocations: 11.12 MB / 0.6005 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004115/0.8862, allocations: 304 kB / 0.6008 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005336/0.8868, allocations: 296.5 kB / 0.6011 GB, free: 110.3 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.003503/0.8903, allocations: 1.792 MB / 0.6028 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005496/0.8908, allocations: 284.2 kB / 0.6031 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/0.8965, allocations: 3.505 MB / 0.6065 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004337/0.9008, allocations: 3.029 MB / 0.6095 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.9009, allocations: 9.812 kB / 0.6095 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-05/0.9009, allocations: 10.45 kB / 0.6095 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/0.9194, allocations: 10.73 MB / 0.6199 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.9195, allocations: 6.734 kB / 0.62 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.9206, allocations: 279.9 kB / 0.6202 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/0.9226, allocations: 0.7845 MB / 0.621 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/0.9227, allocations: 48.03 kB / 0.621 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/0.935, allocations: 11.03 MB / 0.6318 GB, free: 95.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005892/0.9409, allocations: 5.778 MB / 0.6375 GB, free: 91.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00706/0.948, allocations: 5.097 MB / 0.6424 GB, free: 89.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009718/0.949, allocations: 377.4 kB / 0.6428 GB, free: 88.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002968/0.9493, allocations: 39.84 kB / 0.6428 GB, free: 88.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.9504, allocations: 112.4 kB / 0.6429 GB, free: 88.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/0.9509, allocations: 167.4 kB / 0.6431 GB, free: 88.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.951, allocations: 73.59 kB / 0.6432 GB, free: 88.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002759/0.9538, allocations: 1.958 MB / 0.6451 GB, free: 88.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9538, allocations: 0 / 0.6451 GB, free: 88.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004178/0.9579, allocations: 1.006 MB / 0.6461 GB, free: 87.46 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.000388/0.9583, allocations: 177 kB / 0.6462 GB, free: 87.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007159/0.9655, allocations: 4.862 MB / 0.651 GB, free: 82.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.9656, allocations: 0.7656 kB / 0.651 GB, free: 82.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002816/0.9684, allocations: 2.22 MB / 0.6531 GB, free: 80.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/0.9719, allocations: 440.7 kB / 0.6536 GB, free: 80.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.9856, allocations: 10.2 MB / 0.6635 GB, free: 70.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00275/0.9884, allocations: 2.963 MB / 0.6664 GB, free: 67.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00331/0.9917, allocations: 1.405 MB / 0.6678 GB, free: 65.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000538/0.9923, allocations: 223.3 kB / 0.668 GB, free: 65.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9923, allocations: 0 / 0.668 GB, free: 65.74 MB / 446.1 MB Notification: Performance of Templates: time 0.05958/1.052, allocations: 37.13 MB / 0.7043 GB, free: 28.86 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)