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.001418/0.001418, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001582/0.001582, allocations: 213.3 kB / 22.24 MB, free: 5.258 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.793 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.051/0.051, allocations: 9.241 MB / 321.7 MB, free: 9.844 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.002241/0.002241, allocations: 68.12 kB / 448.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1058, allocations: 55.46 MB / 0.4918 GB, free: 6.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01218/0.1179, allocations: 9.171 MB / 0.5008 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00618/0.1241, allocations: 2.874 MB / 0.5036 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.1254, allocations: 51.81 kB / 0.5036 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.1267, allocations: 468.7 kB / 0.5041 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004188/0.1309, allocations: 1.636 MB / 0.5057 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006595/0.1316, allocations: 215.6 kB / 0.5059 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003665/0.1352, allocations: 2.993 MB / 0.5088 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001216/0.1365, allocations: 0.9602 MB / 0.5097 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.1378, allocations: 1.113 MB / 0.5108 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002135/0.1399, allocations: 1.595 MB / 0.5124 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004745/0.1404, allocations: 279.9 kB / 0.5127 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001484/0.1419, allocations: 0.8036 MB / 0.5134 GB, free: 248 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1883/0.3302, allocations: 1.416 MB / 0.5148 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.3315, allocations: 1.311 MB / 0.5161 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005457/0.337, allocations: 5.718 MB / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.337, allocations: 0 / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.337, allocations: 0.5312 kB / 0.5217 GB, free: 9.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000128/0.3371, allocations: 0.5312 kB / 0.5217 GB, free: 9.555 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.01349/0.3506, allocations: 5.797 MB / 0.5274 GB, free: 7.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3506, allocations: 9.031 kB / 0.5274 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006614/0.3572, allocations: 1.854 MB / 0.5292 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003329/0.3606, allocations: 1.524 MB / 0.5307 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.3607, allocations: 191.6 kB / 0.5308 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004948/0.3612, allocations: 255.1 kB / 0.5311 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.3742, allocations: 9.303 MB / 0.5402 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-05/0.3742, allocations: 29.39 kB / 0.5402 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003323/0.3746, allocations: 119.7 kB / 0.5403 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002781/0.3774, allocations: 2.078 MB / 0.5423 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.3901, allocations: 8.226 MB / 0.5504 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03975/0.4298, allocations: 27.37 MB / 0.5771 GB, free: 4.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007506/0.4373, allocations: 2.47 MB / 0.5795 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.4392, allocations: 1.034 MB / 0.5805 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006987/0.4462, allocations: 3.372 MB / 0.5838 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.4462, allocations: 47.88 kB / 0.5839 GB, free: 13.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.478e-06/0.4462, allocations: 0 / 0.5839 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02295/0.4692, allocations: 8.062 MB / 0.5917 GB, free: 5.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.4692, allocations: 74.62 kB / 0.5918 GB, free: 5.684 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.4732, allocations: 2.626 MB / 0.5944 GB, free: 3.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.4733, allocations: 60.98 kB / 0.5944 GB, free: 2.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.4753, allocations: 2.538 MB / 0.5969 GB, free: 432 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008709/0.4762, allocations: 0.8911 MB / 0.5978 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/0.4777, allocations: 0.9956 MB / 0.5988 GB, free: 14.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.4779, allocations: 357.7 kB / 0.5991 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.4808, allocations: 1.638 MB / 0.6007 GB, free: 12.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005116/0.4859, allocations: 4.252 MB / 0.6048 GB, free: 7.051 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008852/0.4947, allocations: 6.393 MB / 0.6111 GB, free: 15.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.168e-05/0.4948, allocations: 24.88 kB / 0.6111 GB, free: 15.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01187/0.5067, allocations: 6.422 MB / 0.6174 GB, free: 9.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.981e-05/0.5067, allocations: 46.66 kB / 0.6174 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/0.5068, allocations: 92.91 kB / 0.6175 GB, free: 9.324 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/0.5088, allocations: 0.7035 MB / 0.6182 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/0.512, allocations: 1.051 MB / 0.6192 GB, free: 7.555 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/0.5273, allocations: 11.58 MB / 0.6305 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/0.5311, allocations: 259 kB / 0.6308 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006896/0.5318, allocations: 291.9 kB / 0.6311 GB, free: 11.05 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.003348/0.5352, allocations: 1.782 MB / 0.6328 GB, free: 9.262 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004847/0.5356, allocations: 250.3 kB / 0.633 GB, free: 9.016 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005765/0.5414, allocations: 3.076 MB / 0.6361 GB, free: 5.914 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001246/0.5415, allocations: 35.97 kB / 0.6361 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.5415, allocations: 12 kB / 0.6361 GB, free: 5.867 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.5416, allocations: 8.031 kB / 0.6361 GB, free: 5.859 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.5555, allocations: 6.956 MB / 0.6429 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.5555, allocations: 4 kB / 0.6429 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.5567, allocations: 308 kB / 0.6432 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.5582, allocations: 0.5262 MB / 0.6437 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.5583, allocations: 47.98 kB / 0.6438 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/0.5701, allocations: 9.451 MB / 0.653 GB, free: 4.074 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5701, allocations: 4 kB / 0.653 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007871/0.578, allocations: 4.636 MB / 0.6575 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006799/0.5787, allocations: 230.4 kB / 0.6577 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/0.579, allocations: 36 kB / 0.6578 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009523/0.5799, allocations: 95.89 kB / 0.6579 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/0.5802, allocations: 157.6 kB / 0.658 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.5804, allocations: 71.11 kB / 0.6581 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002612/0.583, allocations: 1.517 MB / 0.6596 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.583, allocations: 3.938 kB / 0.6596 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003918/0.5869, allocations: 0.8865 MB / 0.6604 GB, free: 12.36 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.0004065/0.5873, allocations: 172.3 kB / 0.6606 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007695/0.595, allocations: 4.487 MB / 0.665 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.595, allocations: 0 / 0.665 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002745/0.5978, allocations: 1.815 MB / 0.6667 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.5994, allocations: 325.9 kB / 0.6671 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/0.6137, allocations: 8.014 MB / 0.6749 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003559/0.6172, allocations: 2.377 MB / 0.6772 GB, free: 11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003274/0.6205, allocations: 1.316 MB / 0.6785 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004814/0.621, allocations: 183.4 kB / 0.6787 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/0.621, allocations: 0 / 0.6787 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.06398/0.685, allocations: 30.32 MB / 0.7083 GB, free: 11.65 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: 6.460919741541147] Failed to read output from testmodel.py, exit status != 0: 0.694146303460002 0.9208474209999999 0.580714033 Calling exit ...