Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.001344/0.001344, 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.001471/0.001471, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.46/1.46, allocations: 230.6 MB / 256 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.05026/0.05026, allocations: 9.24 MB / 321.7 MB, free: 9.82 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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") [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.002087/0.002087, allocations: 79.81 kB / 448.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09948/0.1016, allocations: 55.45 MB / 0.4918 GB, free: 6.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01452/0.1161, allocations: 11.86 MB / 0.5034 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008278/0.1244, allocations: 3.933 MB / 0.5073 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.1258, allocations: 63.75 kB / 0.5073 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009595/0.1268, allocations: 400.6 kB / 0.5077 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002144/0.1289, allocations: 0.9244 MB / 0.5086 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.1305, allocations: 0.9793 MB / 0.5096 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.133, allocations: 2.218 MB / 0.5117 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1835/0.3165, allocations: 1.977 MB / 0.5137 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.3179, allocations: 1.046 MB / 0.5147 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.3191, allocations: 1.124 MB / 0.5158 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000346/0.3195, allocations: 308.1 kB / 0.5161 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009549/0.3204, allocations: 0.7201 MB / 0.5168 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006203/0.321, allocations: 0.9751 MB / 0.5177 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008579/0.3219, allocations: 1.171 MB / 0.5189 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003536/0.3254, allocations: 3.924 MB / 0.5227 GB, free: 7.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3254, allocations: 1.969 kB / 0.5227 GB, free: 7.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3254, allocations: 2.156 kB / 0.5227 GB, free: 7.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.775e-05/0.3255, allocations: 0 / 0.5227 GB, free: 7.781 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.012/0.3375, allocations: 4.216 MB / 0.5268 GB, free: 6.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3376, allocations: 11.16 kB / 0.5268 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007061/0.3383, allocations: 309.8 kB / 0.5271 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002205/0.3405, allocations: 1.078 MB / 0.5282 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.3406, allocations: 215.6 kB / 0.5284 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004004/0.341, allocations: 291.4 kB / 0.5287 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007997/0.349, allocations: 4.738 MB / 0.5333 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.3491, allocations: 41.62 kB / 0.5333 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002624/0.3494, allocations: 128.2 kB / 0.5334 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005234/0.3499, allocations: 426.1 kB / 0.5339 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006542/0.3565, allocations: 3.37 MB / 0.5371 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02252/0.379, allocations: 20.32 MB / 0.557 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00486/0.3838, allocations: 1.426 MB / 0.5584 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.3849, allocations: 0.6786 MB / 0.559 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006638/0.3915, allocations: 3.411 MB / 0.5624 GB, free: 0 / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.509e-05/0.3916, allocations: 51.17 kB / 0.5624 GB, free: 15.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 2.575e-06/0.3916, allocations: 6.906 kB / 0.5624 GB, free: 15.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02457/0.4161, allocations: 9.28 MB / 0.5715 GB, free: 7.105 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.4162, allocations: 75.34 kB / 0.5716 GB, free: 7.023 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/0.4191, allocations: 1.79 MB / 0.5733 GB, free: 5.227 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.4192, allocations: 49.7 kB / 0.5734 GB, free: 5.172 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.4208, allocations: 1.817 MB / 0.5751 GB, free: 3.359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006152/0.4214, allocations: 0.5541 MB / 0.5757 GB, free: 2.812 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001192/0.4226, allocations: 0.7508 MB / 0.5764 GB, free: 2.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.4228, allocations: 341.9 kB / 0.5767 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002144/0.4249, allocations: 1.222 MB / 0.5779 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004302/0.4292, allocations: 3.408 MB / 0.5813 GB, free: 12.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006962/0.4362, allocations: 5.123 MB / 0.5863 GB, free: 6.156 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.739e-05/0.4363, allocations: 24 kB / 0.5863 GB, free: 6.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008782/0.445, allocations: 4.8 MB / 0.591 GB, free: 1.789 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.351e-05/0.4451, allocations: 40 kB / 0.591 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/0.4453, allocations: 80.81 kB / 0.5911 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009776/0.4462, allocations: 364.6 kB / 0.5914 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002907/0.4491, allocations: 0.8941 MB / 0.5923 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006232/0.4554, allocations: 4.122 MB / 0.5963 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.4578, allocations: 219.8 kB / 0.5965 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004358/0.4583, allocations: 228 kB / 0.5968 GB, free: 11.89 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001818/0.4601, allocations: 0.9456 MB / 0.5977 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.4605, allocations: 186.7 kB / 0.5979 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004688/0.4652, allocations: 2.574 MB / 0.6004 GB, free: 8.168 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/0.4652, allocations: 16 kB / 0.6004 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4652, allocations: 0 / 0.6004 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.4652, allocations: 11.97 kB / 0.6004 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.4773, allocations: 5.778 MB / 0.606 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.4773, allocations: 7.984 kB / 0.6061 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.4785, allocations: 272.1 kB / 0.6063 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007221/0.4792, allocations: 256.6 kB / 0.6066 GB, free: 1.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.4793, allocations: 24 kB / 0.6066 GB, free: 1.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004594/0.4839, allocations: 3.308 MB / 0.6098 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.4839, allocations: 12 kB / 0.6098 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005965/0.4899, allocations: 3.885 MB / 0.6136 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004913/0.4904, allocations: 160 kB / 0.6138 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/0.4907, allocations: 28 kB / 0.6138 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009454/0.4916, allocations: 113.4 kB / 0.6139 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.4919, allocations: 100.8 kB / 0.614 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.802e-05/0.492, allocations: 36 kB / 0.614 GB, free: 9.949 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001738/0.4937, allocations: 0.9868 MB / 0.615 GB, free: 8.969 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4937, allocations: 0 / 0.615 GB, free: 8.969 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00287/0.4966, allocations: 0.6289 MB / 0.6156 GB, free: 8.34 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000248/0.4968, allocations: 132.6 kB / 0.6157 GB, free: 8.199 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00557/0.5024, allocations: 3.206 MB / 0.6189 GB, free: 4.996 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5024, allocations: 0 / 0.6189 GB, free: 4.996 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001923/0.5043, allocations: 1.212 MB / 0.6201 GB, free: 3.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.5064, allocations: 432.1 kB / 0.6205 GB, free: 3.383 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00951/0.5159, allocations: 5.07 MB / 0.6254 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001923/0.5178, allocations: 1.256 MB / 0.6266 GB, free: 12.96 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002392/0.5202, allocations: 0.8457 MB / 0.6275 GB, free: 12.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000619/0.5208, allocations: 151.4 kB / 0.6276 GB, free: 11.96 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5208, allocations: 0 / 0.6276 GB, free: 11.96 MB / 478.1 MB Notification: Performance of Templates: time 0.0509/0.5717, allocations: 28.62 MB / 0.6556 GB, free: 15.61 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.491504913195968] Failed to read output from testmodel.py, exit status != 0: 0.5807350687682629 0.595509654 0.26681840700000004 Calling exit ...