Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 218.1 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.328/1.328, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04651/0.04651, allocations: 9.237 MB / 322.4 MB, free: 10.09 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 71.83 kB / 449 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09412/0.09609, allocations: 55.47 MB / 0.4926 GB, free: 7.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01289/0.109, allocations: 10.56 MB / 0.503 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006328/0.1153, allocations: 3.021 MB / 0.5059 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.1168, allocations: 47.81 kB / 0.506 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1182, allocations: 480.7 kB / 0.5064 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004181/0.1223, allocations: 1.626 MB / 0.508 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007484/0.1231, allocations: 223.6 kB / 0.5082 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004433/0.1275, allocations: 3.011 MB / 0.5112 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.1293, allocations: 0.9758 MB / 0.5121 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.1312, allocations: 1.124 MB / 0.5132 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.1338, allocations: 1.67 MB / 0.5148 GB, free: 204 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1788/0.3126, allocations: 281.2 kB / 0.5151 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001872/0.3145, allocations: 0.9253 MB / 0.516 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.3155, allocations: 1.414 MB / 0.5174 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.317, allocations: 1.843 MB / 0.5192 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005845/0.3228, allocations: 5.701 MB / 0.5248 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3229, allocations: 2.062 kB / 0.5248 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3229, allocations: 3.469 kB / 0.5248 GB, free: 8.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001453/0.323, allocations: 2.141 kB / 0.5248 GB, free: 8.738 MB / 382.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.01459/0.3376, allocations: 5.792 MB / 0.5304 GB, free: 7.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3376, allocations: 9.094 kB / 0.5304 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006696/0.3443, allocations: 1.858 MB / 0.5322 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/0.3483, allocations: 1.507 MB / 0.5337 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.3485, allocations: 188.2 kB / 0.5339 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009125/0.3494, allocations: 250.1 kB / 0.5341 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01474/0.3641, allocations: 9.308 MB / 0.5432 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.934e-05/0.3642, allocations: 35.28 kB / 0.5433 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004146/0.3647, allocations: 115.5 kB / 0.5434 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002688/0.3674, allocations: 2.073 MB / 0.5454 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.3819, allocations: 8.243 MB / 0.5534 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04403/0.426, allocations: 29.95 MB / 0.5827 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007516/0.4335, allocations: 2.47 MB / 0.5851 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.4354, allocations: 1.029 MB / 0.5861 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008182/0.4436, allocations: 3.752 MB / 0.5898 GB, free: 7.953 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.4436, allocations: 47.53 kB / 0.5898 GB, free: 7.898 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.539e-06/0.4436, allocations: 0 / 0.5898 GB, free: 7.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02221/0.4658, allocations: 8.114 MB / 0.5977 GB, free: 15.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.4659, allocations: 73.41 kB / 0.5978 GB, free: 15.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00517/0.4711, allocations: 3.077 MB / 0.6008 GB, free: 12.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002299/0.4713, allocations: 61.7 kB / 0.6009 GB, free: 12.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.4733, allocations: 2.52 MB / 0.6033 GB, free: 10.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009667/0.4743, allocations: 0.8792 MB / 0.6042 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001705/0.476, allocations: 0.9923 MB / 0.6052 GB, free: 8.199 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4761, allocations: 301.1 kB / 0.6054 GB, free: 7.902 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002971/0.4791, allocations: 1.642 MB / 0.607 GB, free: 6.254 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005178/0.4843, allocations: 4.253 MB / 0.6112 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008387/0.4927, allocations: 6.386 MB / 0.6174 GB, free: 9.477 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.087e-05/0.4927, allocations: 28 kB / 0.6175 GB, free: 9.449 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01308/0.5058, allocations: 6.47 MB / 0.6238 GB, free: 3.156 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.5059, allocations: 47.94 kB / 0.6238 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/0.5061, allocations: 92 kB / 0.6239 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/0.508, allocations: 0.7032 MB / 0.6246 GB, free: 2.301 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003606/0.5116, allocations: 1.056 MB / 0.6256 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.5262, allocations: 11.77 MB / 0.6371 GB, free: 5.031 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00342/0.5297, allocations: 251.9 kB / 0.6374 GB, free: 4.785 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000793/0.5305, allocations: 287.9 kB / 0.6376 GB, free: 4.504 MB / 478.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 (583): * Single equations (assignments): 574 * 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,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.003422/0.5339, allocations: 1.788 MB / 0.6394 GB, free: 2.711 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/0.5345, allocations: 302 kB / 0.6397 GB, free: 2.414 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005866/0.5404, allocations: 3.12 MB / 0.6427 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/0.5405, allocations: 35.98 kB / 0.6428 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.5405, allocations: 8 kB / 0.6428 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.5405, allocations: 8.078 kB / 0.6428 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/0.5557, allocations: 8.139 MB / 0.6507 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.5557, allocations: 4.469 kB / 0.6507 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5568, allocations: 307.5 kB / 0.651 GB, free: 6.656 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.5581, allocations: 0.5334 MB / 0.6515 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.5582, allocations: 43.98 kB / 0.6516 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.569, allocations: 9.621 MB / 0.661 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.569, allocations: 12 kB / 0.661 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007565/0.5765, allocations: 4.686 MB / 0.6656 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008332/0.5774, allocations: 290.1 kB / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000567/0.5779, allocations: 40 kB / 0.6659 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.5791, allocations: 94.62 kB / 0.666 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003037/0.5794, allocations: 161.6 kB / 0.6661 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.5795, allocations: 67.92 kB / 0.6662 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003794/0.5833, allocations: 1.964 MB / 0.6681 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5833, allocations: 3.938 kB / 0.6681 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003932/0.5872, allocations: 0.8866 MB / 0.669 GB, free: 3.73 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (170): * Single equations (assignments): 161 * 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%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003903/0.5876, allocations: 182.2 kB / 0.6692 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007132/0.5948, allocations: 4.487 MB / 0.6735 GB, free: 15.04 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5948, allocations: 0 / 0.6735 GB, free: 15.04 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.5974, allocations: 1.812 MB / 0.6753 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.5997, allocations: 468.7 kB / 0.6758 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.6148, allocations: 8.487 MB / 0.684 GB, free: 4.156 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003629/0.6184, allocations: 2.932 MB / 0.6869 GB, free: 1.191 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008483/0.6193, allocations: 251.4 kB / 0.6871 GB, free: 0.9492 MB / 0.5138 GB Notification: Performance of SimCode: time 7.92e-07/0.6193, allocations: 0 / 0.6871 GB, free: 0.9492 MB / 0.5138 GB Notification: Performance of Templates: time 0.3066/0.9258, allocations: 140.2 MB / 0.8241 GB, free: 90.52 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.704715202795342] Failed to read output from testmodel.py, exit status != 0: 0.9340017260983586 0.942930962 0.617761299 Calling exit ...