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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001243/0.001243, allocations: 105.8 kB / 16.41 MB, free: 6.008 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.001598/0.001598, allocations: 188.1 kB / 17.34 MB, free: 5.629 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04469/0.04469, allocations: 9.123 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 67.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09542, allocations: 51.44 MB / 466.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01682/0.1123, allocations: 10.47 MB / 477.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00897/0.1213, allocations: 2.978 MB / 480.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.124, allocations: 47.88 kB / 480.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.1261, allocations: 444.9 kB / 480.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006305/0.1324, allocations: 1.583 MB / 482.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1337, allocations: 219.6 kB / 482.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006057/0.1398, allocations: 3.027 MB / 485.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002908/0.1427, allocations: 1.182 MB / 486.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003441/0.1462, allocations: 1.101 MB / 487.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003498/0.1498, allocations: 1.541 MB / 489.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.151, allocations: 280 kB / 489.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002818/0.1539, allocations: 0.8777 MB / 490.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001924/0.1558, allocations: 1.398 MB / 491.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003416/0.1593, allocations: 1.86 MB / 493.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007806/0.1671, allocations: 5.71 MB / 499.4 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1671, allocations: 0 / 499.4 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.1672, allocations: 3.984 kB / 499.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000224/0.1674, allocations: 0 / 499.5 MB, free: 0.8125 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.01573/0.1831, allocations: 5.733 MB / 0.4933 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1832, allocations: 8.031 kB / 0.4934 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007297/0.1905, allocations: 1.829 MB / 0.4951 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004086/0.1946, allocations: 1.568 MB / 0.4967 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000261/0.1949, allocations: 192.6 kB / 0.4969 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001237/0.1962, allocations: 235.8 kB / 0.4971 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2504/0.4466, allocations: 9.309 MB / 0.5062 GB, free: 39.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.4467, allocations: 31.48 kB / 0.5062 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004009/0.4471, allocations: 117.8 kB / 0.5063 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003869/0.451, allocations: 2.073 MB / 0.5083 GB, free: 39.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02064/0.4717, allocations: 8.233 MB / 0.5164 GB, free: 36.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04508/0.5168, allocations: 29.93 MB / 0.5456 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00732/0.5242, allocations: 3.035 MB / 0.5486 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.526, allocations: 1.112 MB / 0.5497 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00874/0.5348, allocations: 6.287 MB / 0.5558 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.5349, allocations: 47.88 kB / 0.5558 GB, free: 2.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.819e-06/0.5349, allocations: 0 / 0.5558 GB, free: 2.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.03378/0.5687, allocations: 12.34 MB / 0.5679 GB, free: 5.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008759/0.5775, allocations: 6.952 MB / 0.5747 GB, free: 14.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005377/0.5829, allocations: 3.065 MB / 0.5777 GB, free: 11.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003496/0.5833, allocations: 57.7 kB / 0.5777 GB, free: 11.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.5851, allocations: 2.428 MB / 0.5801 GB, free: 8.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/0.5862, allocations: 0.8594 MB / 0.5809 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002228/0.5885, allocations: 1 MB / 0.5819 GB, free: 7.094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.5886, allocations: 309.1 kB / 0.5822 GB, free: 6.789 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/0.5918, allocations: 1.708 MB / 0.5839 GB, free: 5.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005195/0.597, allocations: 4.331 MB / 0.5881 GB, free: 15.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008785/0.6058, allocations: 6.537 MB / 0.5945 GB, free: 7.652 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-05/0.606, allocations: 24 kB / 0.5945 GB, free: 7.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01416/0.6201, allocations: 6.667 MB / 0.601 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.6203, allocations: 47.94 kB / 0.6011 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/0.6205, allocations: 92 kB / 0.6012 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.6224, allocations: 0.7074 MB / 0.6019 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/0.6261, allocations: 1.072 MB / 0.6029 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/0.6399, allocations: 12.18 MB / 0.6148 GB, free: 2.277 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00394/0.6438, allocations: 295.7 kB / 0.6151 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009654/0.6448, allocations: 304 kB / 0.6154 GB, free: 1.691 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.003758/0.6486, allocations: 1.783 MB / 0.6171 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/0.6494, allocations: 288.4 kB / 0.6174 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006751/0.6561, allocations: 3.499 MB / 0.6208 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00546/0.6616, allocations: 3.032 MB / 0.6238 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.578e-05/0.6617, allocations: 8 kB / 0.6238 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/0.6617, allocations: 11.95 kB / 0.6238 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02055/0.6823, allocations: 10.6 MB / 0.6341 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.6823, allocations: 0 / 0.6341 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.6835, allocations: 276 kB / 0.6344 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002043/0.6856, allocations: 0.7812 MB / 0.6352 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002791/0.6859, allocations: 51.97 kB / 0.6352 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01424/0.7001, allocations: 12 MB / 0.6469 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007111/0.7073, allocations: 6.028 MB / 0.6528 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00853/0.7158, allocations: 5.101 MB / 0.6578 GB, free: 5.051 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009635/0.7168, allocations: 361.5 kB / 0.6581 GB, free: 4.676 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005764/0.7174, allocations: 43.98 kB / 0.6582 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.7189, allocations: 115.9 kB / 0.6583 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/0.7193, allocations: 161.6 kB / 0.6584 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.7194, allocations: 63.98 kB / 0.6585 GB, free: 4.301 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003308/0.7227, allocations: 1.968 MB / 0.6604 GB, free: 2.328 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7228, allocations: 4 kB / 0.6604 GB, free: 2.324 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004462/0.7272, allocations: 1.001 MB / 0.6614 GB, free: 1.328 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.0005268/0.7278, allocations: 181.6 kB / 0.6616 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007768/0.7355, allocations: 4.874 MB / 0.6663 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.7356, allocations: 128 / 0.6663 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003532/0.7391, allocations: 2.223 MB / 0.6685 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/0.742, allocations: 475.5 kB / 0.669 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01496/0.757, allocations: 8.62 MB / 0.6774 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004086/0.7611, allocations: 2.969 MB / 0.6803 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009813/0.7621, allocations: 263.4 kB / 0.6805 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/0.7621, allocations: 0 / 0.6805 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.3507/1.113, allocations: 142.5 MB / 0.8197 GB, free: 85.13 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)