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.001562/0.001562, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001801/0.001801, allocations: 222.8 kB / 23 MB, free: 4.914 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.424/1.424, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.0486/0.0486, allocations: 9.241 MB / 322.4 MB, free: 9.848 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.002054/0.002054, allocations: 67.89 kB / 448.9 MB, free: 14.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1135, allocations: 55.47 MB / 0.4926 GB, free: 6.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01123/0.1247, allocations: 9.152 MB / 0.5015 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007484/0.1322, allocations: 2.877 MB / 0.5043 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002467/0.1347, allocations: 55.81 kB / 0.5044 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.1362, allocations: 472.7 kB / 0.5048 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00452/0.1407, allocations: 1.634 MB / 0.5064 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.1413, allocations: 211.7 kB / 0.5066 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003601/0.1449, allocations: 2.997 MB / 0.5095 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.1462, allocations: 0.9719 MB / 0.5105 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.1476, allocations: 1.117 MB / 0.5116 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.1499, allocations: 1.591 MB / 0.5131 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005108/0.1504, allocations: 276 kB / 0.5134 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.1519, allocations: 0.8114 MB / 0.5142 GB, free: 264 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2302/0.3821, allocations: 1.409 MB / 0.5156 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001617/0.3837, allocations: 1.31 MB / 0.5169 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.3901, allocations: 5.718 MB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3901, allocations: 2.344 kB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3901, allocations: 0.75 kB / 0.5224 GB, free: 9.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001072/0.3902, allocations: 0 / 0.5224 GB, free: 9.594 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.01375/0.4039, allocations: 5.8 MB / 0.5281 GB, free: 7.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.404, allocations: 10.22 kB / 0.5281 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006395/0.4104, allocations: 1.853 MB / 0.5299 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003599/0.414, allocations: 1.527 MB / 0.5314 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.4141, allocations: 189.8 kB / 0.5316 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004854/0.4146, allocations: 249.6 kB / 0.5318 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.428, allocations: 9.306 MB / 0.5409 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.474e-05/0.4281, allocations: 30.52 kB / 0.5409 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/0.4284, allocations: 115.5 kB / 0.5411 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002754/0.4312, allocations: 2.072 MB / 0.5431 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.4445, allocations: 8.231 MB / 0.5511 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04564/0.4902, allocations: 27.37 MB / 0.5778 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008301/0.4985, allocations: 2.47 MB / 0.5803 GB, free: 2.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002336/0.5008, allocations: 1.032 MB / 0.5813 GB, free: 1.234 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008781/0.5096, allocations: 3.366 MB / 0.5846 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.268e-05/0.5097, allocations: 54.95 kB / 0.5846 GB, free: 13.81 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.27e-06/0.5097, allocations: 0 / 0.5846 GB, free: 13.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02411/0.5338, allocations: 8.069 MB / 0.5925 GB, free: 5.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.5339, allocations: 73.41 kB / 0.5926 GB, free: 5.707 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005187/0.539, allocations: 2.611 MB / 0.5951 GB, free: 3.059 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002825/0.5393, allocations: 65.69 kB / 0.5952 GB, free: 2.988 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0022/0.5415, allocations: 2.543 MB / 0.5977 GB, free: 460 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001125/0.5427, allocations: 0.8839 MB / 0.5985 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002163/0.5448, allocations: 1.003 MB / 0.5995 GB, free: 14.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.545, allocations: 358.3 kB / 0.5998 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/0.5482, allocations: 1.638 MB / 0.6014 GB, free: 12.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005544/0.5538, allocations: 4.248 MB / 0.6056 GB, free: 7.082 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009118/0.5629, allocations: 6.391 MB / 0.6118 GB, free: 15.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.563, allocations: 28 kB / 0.6119 GB, free: 15.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01435/0.5774, allocations: 6.426 MB / 0.6181 GB, free: 9.477 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.5775, allocations: 44 kB / 0.6182 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/0.5776, allocations: 92.91 kB / 0.6183 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.5795, allocations: 0.695 MB / 0.6189 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003663/0.5832, allocations: 1.06 MB / 0.62 GB, free: 7.574 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.5979, allocations: 11.59 MB / 0.6313 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/0.6018, allocations: 255.8 kB / 0.6315 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/0.6029, allocations: 289.8 kB / 0.6318 GB, free: 11.08 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.004326/0.6072, allocations: 1.779 MB / 0.6335 GB, free: 9.289 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007226/0.6079, allocations: 254.3 kB / 0.6338 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006368/0.6143, allocations: 3.07 MB / 0.6368 GB, free: 5.941 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001129/0.6144, allocations: 39.58 kB / 0.6368 GB, free: 5.906 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.492e-05/0.6144, allocations: 8 kB / 0.6368 GB, free: 5.898 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/0.6145, allocations: 11.95 kB / 0.6368 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/0.6304, allocations: 6.959 MB / 0.6436 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/0.6304, allocations: 8.062 kB / 0.6436 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.6316, allocations: 304 kB / 0.6439 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.6329, allocations: 0.5211 MB / 0.6444 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.6331, allocations: 44 kB / 0.6445 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.644, allocations: 9.458 MB / 0.6537 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.644, allocations: 4.125 kB / 0.6537 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008869/0.6529, allocations: 4.638 MB / 0.6583 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008555/0.6537, allocations: 227.9 kB / 0.6585 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006476/0.6544, allocations: 39.98 kB / 0.6585 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.6557, allocations: 98.55 kB / 0.6586 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/0.6561, allocations: 157.6 kB / 0.6588 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.6562, allocations: 63.94 kB / 0.6588 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003175/0.6594, allocations: 1.517 MB / 0.6603 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6594, allocations: 0 / 0.6603 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004427/0.6638, allocations: 0.8931 MB / 0.6612 GB, free: 12.38 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.0005073/0.6643, allocations: 169.6 kB / 0.6613 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007992/0.6723, allocations: 4.489 MB / 0.6657 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6723, allocations: 0 / 0.6657 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00281/0.6751, allocations: 1.812 MB / 0.6675 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.6774, allocations: 329.9 kB / 0.6678 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01694/0.6943, allocations: 8.426 MB / 0.676 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00425/0.6986, allocations: 2.38 MB / 0.6784 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009482/0.6995, allocations: 231.4 kB / 0.6786 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of SimCode: time 1.432e-06/0.6995, allocations: 0 / 0.6786 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of Templates: time 0.3607/1.06, allocations: 138.2 MB / 0.8135 GB, free: 106.6 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.548156048171222] Failed to read output from testmodel.py, exit status != 0: 1.0693222018890083 1.0777876690000001 0.6853939569999999 Calling exit ...