Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 177.6 kB / 15.43 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 225.7 MB / 241.9 MB, free: 14.68 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007855/0.0007855, allocations: 98.55 kB / 293 MB, free: 4.852 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03979/0.03979, allocations: 9.09 MB / 353.3 MB, free: 3.098 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003462, allocations: 8 kB / 416.4 MB, free: 3.875 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2199, allocations: 52.38 MB / 468.8 MB, free: 68.16 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.02632/0.2463, allocations: 40.15 MB / 0.497 GB, free: 27.9 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.265, allocations: 10.53 MB / 0.5073 GB, free: 17.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007812/0.2729, allocations: 163.8 kB / 0.5074 GB, free: 16.86 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.2742, allocations: 374 kB / 0.5078 GB, free: 16.49 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003907/0.2781, allocations: 1.467 MB / 0.5092 GB, free: 15.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.2787, allocations: 195.7 kB / 0.5094 GB, free: 14.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003632/0.2823, allocations: 4.078 MB / 0.5134 GB, free: 10.73 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009932/0.2833, allocations: 1.05 MB / 0.5144 GB, free: 9.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009106/0.2842, allocations: 0.9956 MB / 0.5154 GB, free: 8.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.2855, allocations: 1.521 MB / 0.5169 GB, free: 7.133 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003232/0.2859, allocations: 160 kB / 0.517 GB, free: 6.977 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.2871, allocations: 0.7839 MB / 0.5178 GB, free: 6.191 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007565/0.2878, allocations: 1.289 MB / 0.519 GB, free: 4.898 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.2889, allocations: 1.772 MB / 0.5208 GB, free: 3.109 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003814/0.2927, allocations: 5.146 MB / 0.5258 GB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2927, allocations: 0 / 0.5258 GB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.2928, allocations: 0 / 0.5258 GB, free: 13.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001103/0.2929, allocations: 0 / 0.5258 GB, free: 13.95 MB / 362.7 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.01074/0.3036, allocations: 4.976 MB / 0.5307 GB, free: 8.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3037, allocations: 12.03 kB / 0.5307 GB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006332/0.31, allocations: 1.868 MB / 0.5325 GB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.313, allocations: 1.556 MB / 0.534 GB, free: 5.414 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.3131, allocations: 184.6 kB / 0.5342 GB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005949/0.3138, allocations: 251.7 kB / 0.5344 GB, free: 4.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.3286, allocations: 9.287 MB / 0.5435 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.52e-05/0.3288, allocations: 31.75 kB / 0.5435 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003391/0.3291, allocations: 119.8 kB / 0.5436 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00317/0.3323, allocations: 2.068 MB / 0.5457 GB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01729/0.3496, allocations: 8.202 MB / 0.5537 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2369/0.5866, allocations: 30.04 MB / 0.583 GB, free: 63.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006425/0.593, allocations: 3.025 MB / 0.586 GB, free: 61.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.5945, allocations: 1.1 MB / 0.587 GB, free: 61.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00613/0.6007, allocations: 6.287 MB / 0.5932 GB, free: 55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.6007, allocations: 47.88 kB / 0.5932 GB, free: 54.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 3.456e-06/0.6007, allocations: 3.938 kB / 0.5932 GB, free: 54.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=239): time 0.02459/0.6253, allocations: 12.35 MB / 0.6053 GB, free: 42.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006146/0.6315, allocations: 6.63 MB / 0.6118 GB, free: 35.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003632/0.6352, allocations: 3.041 MB / 0.6147 GB, free: 32.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002838/0.6355, allocations: 62.41 kB / 0.6148 GB, free: 32.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009449/0.6365, allocations: 2.426 MB / 0.6172 GB, free: 30 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006363/0.6371, allocations: 0.8634 MB / 0.618 GB, free: 29.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.6373, allocations: 103.5 kB / 0.6181 GB, free: 29.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000284/0.6376, allocations: 0.5209 MB / 0.6186 GB, free: 28.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002358/0.64, allocations: 1.689 MB / 0.6203 GB, free: 26.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003039/0.643, allocations: 4.316 MB / 0.6245 GB, free: 21.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005863/0.6489, allocations: 6.502 MB / 0.6308 GB, free: 13.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-05/0.649, allocations: 24 kB / 0.6308 GB, free: 13.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.009359/0.6584, allocations: 6.629 MB / 0.6373 GB, free: 6.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.17e-05/0.6584, allocations: 52.23 kB / 0.6374 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.939e-05/0.6585, allocations: 92 kB / 0.6375 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.66, allocations: 0.7022 MB / 0.6381 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.6629, allocations: 1.072 MB / 0.6392 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.6742, allocations: 11.1 MB / 0.65 GB, free: 9.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/0.6778, allocations: 299.6 kB / 0.6503 GB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005042/0.6783, allocations: 299.9 kB / 0.6506 GB, free: 8.621 MB / 394.7 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.002694/0.681, allocations: 1.795 MB / 0.6524 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000393/0.6814, allocations: 288.2 kB / 0.6526 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005571/0.687, allocations: 3.482 MB / 0.656 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00471/0.6917, allocations: 3.009 MB / 0.659 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.6918, allocations: 11.98 kB / 0.659 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.6918, allocations: 7.969 kB / 0.659 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/0.7087, allocations: 10.72 MB / 0.6695 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7088, allocations: 0 / 0.6695 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.7098, allocations: 275.6 kB / 0.6697 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/0.7118, allocations: 0.7889 MB / 0.6705 GB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.7119, allocations: 43.98 kB / 0.6705 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/0.7239, allocations: 11.03 MB / 0.6813 GB, free: 8.434 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006416/0.7304, allocations: 5.76 MB / 0.6869 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008361/0.7388, allocations: 5.066 MB / 0.6919 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.7401, allocations: 385.2 kB / 0.6922 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003193/0.7404, allocations: 44 kB / 0.6923 GB, free: 12.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.7415, allocations: 115.5 kB / 0.6924 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004407/0.7419, allocations: 157.7 kB / 0.6925 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.7421, allocations: 71.92 kB / 0.6926 GB, free: 12.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003059/0.7451, allocations: 1.941 MB / 0.6945 GB, free: 10.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7451, allocations: 0 / 0.6945 GB, free: 10.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004791/0.7499, allocations: 0.9948 MB / 0.6955 GB, free: 9.559 MB / 442.7 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.0004289/0.7504, allocations: 192.2 kB / 0.6957 GB, free: 9.367 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007494/0.7579, allocations: 4.828 MB / 0.7004 GB, free: 4.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.7579, allocations: 4.25 kB / 0.7004 GB, free: 4.477 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003529/0.7615, allocations: 2.217 MB / 0.7026 GB, free: 2.199 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/0.7649, allocations: 447.1 kB / 0.703 GB, free: 1.762 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.7797, allocations: 10.2 MB / 0.7129 GB, free: 7.473 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00301/0.7827, allocations: 2.972 MB / 0.7158 GB, free: 4.473 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00362/0.7863, allocations: 1.405 MB / 0.7172 GB, free: 3.062 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000565/0.7869, allocations: 215.4 kB / 0.7174 GB, free: 2.852 MB / 458.7 MB Notification: Performance of SimCode: time 6.91e-07/0.7869, allocations: 0 / 0.7174 GB, free: 2.852 MB / 458.7 MB Notification: Performance of Templates: time 0.2344/1.021, allocations: 37.13 MB / 0.7537 GB, free: 130.1 MB / 458.7 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)