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.001707/0.001707, allocations: 79.03 kB / 19.76 MB, free: 2.031 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.002013/0.002013, allocations: 159.3 kB / 23.01 MB, free: 4.945 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.425/1.425, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.04707/0.04707, allocations: 7.132 MB / 266.9 MB, free: 9.727 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.002343/0.002343, allocations: 59.91 kB / 393.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09858, allocations: 55.46 MB / 448.8 MB, free: 2.922 MB / 414.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.0146/0.1132, allocations: 11.86 MB / 460.7 MB, free: 7.008 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008637/0.1218, allocations: 3.937 MB / 464.6 MB, free: 3.059 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.1237, allocations: 63.75 kB / 464.7 MB, free: 2.996 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.1247, allocations: 400.6 kB / 465.1 MB, free: 2.602 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002505/0.1272, allocations: 0.9205 MB / 466 MB, free: 1.676 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.1289, allocations: 0.9793 MB / 467 MB, free: 0.6953 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002861/0.1318, allocations: 2.207 MB / 469.2 MB, free: 14.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002542/0.1343, allocations: 1.99 MB / 471.2 MB, free: 12.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.1355, allocations: 1.047 MB / 472.2 MB, free: 11.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001552/0.1371, allocations: 1.12 MB / 473.3 MB, free: 10.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003904/0.1374, allocations: 308 kB / 473.7 MB, free: 9.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.1386, allocations: 0.7256 MB / 474.4 MB, free: 9.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000887/0.1395, allocations: 0.9739 MB / 475.4 MB, free: 8.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.1407, allocations: 1.174 MB / 476.5 MB, free: 7.051 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004143/0.1449, allocations: 3.923 MB / 480.4 MB, free: 3.109 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1449, allocations: 0 / 480.4 MB, free: 3.109 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1449, allocations: 0 / 480.4 MB, free: 3.109 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.648e-05/0.145, allocations: 0 / 480.4 MB, free: 3.109 MB / 446.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.1981/0.343, allocations: 4.255 MB / 484.7 MB, free: 70.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3431, allocations: 10.03 kB / 484.7 MB, free: 70.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005206/0.3436, allocations: 323.3 kB / 485 MB, free: 70.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.3453, allocations: 1.065 MB / 486.1 MB, free: 69.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.3454, allocations: 212.5 kB / 486.3 MB, free: 69.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003098/0.3457, allocations: 290.7 kB / 486.6 MB, free: 69.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005866/0.3515, allocations: 4.753 MB / 491.3 MB, free: 67.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.059e-05/0.3516, allocations: 34.8 kB / 491.4 MB, free: 67.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.3518, allocations: 139 kB / 491.5 MB, free: 67.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000401/0.3522, allocations: 427.7 kB / 491.9 MB, free: 67.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005318/0.3576, allocations: 3.372 MB / 495.3 MB, free: 65.87 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01465/0.3722, allocations: 20.38 MB / 0.5036 GB, free: 50.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004255/0.3765, allocations: 1.527 MB / 0.5051 GB, free: 49.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008155/0.3773, allocations: 0.6755 MB / 0.5057 GB, free: 49.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005111/0.3824, allocations: 3.447 MB / 0.5091 GB, free: 48.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.3824, allocations: 39.31 kB / 0.5091 GB, free: 48.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=102): time 2.715e-06/0.3824, allocations: 3.938 kB / 0.5091 GB, free: 48.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=140): time 0.0207/0.4031, allocations: 9.45 MB / 0.5184 GB, free: 45.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.4032, allocations: 67.94 kB / 0.5184 GB, free: 45.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.405, allocations: 1.777 MB / 0.5202 GB, free: 44.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.515e-05/0.4051, allocations: 53.89 kB / 0.5202 GB, free: 44.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006617/0.4058, allocations: 1.82 MB / 0.522 GB, free: 42.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.4061, allocations: 0.5475 MB / 0.5225 GB, free: 42.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007665/0.4068, allocations: 0.7488 MB / 0.5233 GB, free: 42.03 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.203e-05/0.4069, allocations: 341.4 kB / 0.5236 GB, free: 41.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.4084, allocations: 1.225 MB / 0.5248 GB, free: 41.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/0.4107, allocations: 3.41 MB / 0.5281 GB, free: 37.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004658/0.4154, allocations: 5.118 MB / 0.5331 GB, free: 33.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.62e-05/0.4154, allocations: 22.31 kB / 0.5331 GB, free: 33.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.0072/0.4226, allocations: 4.808 MB / 0.5378 GB, free: 31.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.171e-05/0.4227, allocations: 39.97 kB / 0.5379 GB, free: 31.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.705e-05/0.4228, allocations: 76.66 kB / 0.5379 GB, free: 31.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/0.4236, allocations: 371.5 kB / 0.5383 GB, free: 31.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/0.4264, allocations: 0.89 MB / 0.5392 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004754/0.4312, allocations: 4.142 MB / 0.5432 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.4336, allocations: 213.6 kB / 0.5434 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.4339, allocations: 226.9 kB / 0.5436 GB, free: 28.58 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.001245/0.4351, allocations: 0.932 MB / 0.5445 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.4354, allocations: 187.3 kB / 0.5447 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.4389, allocations: 2.576 MB / 0.5472 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4389, allocations: 12 kB / 0.5473 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4389, allocations: 11.88 kB / 0.5473 GB, free: 25.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.4389, allocations: 10.7 kB / 0.5473 GB, free: 25.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008867/0.4478, allocations: 5.785 MB / 0.5529 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4478, allocations: 4.984 kB / 0.5529 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.4488, allocations: 271.3 kB / 0.5532 GB, free: 20.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006264/0.4495, allocations: 255.5 kB / 0.5534 GB, free: 20.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-05/0.4495, allocations: 32.98 kB / 0.5535 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00323/0.4528, allocations: 3.3 MB / 0.5567 GB, free: 16.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4528, allocations: 4 kB / 0.5567 GB, free: 16.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004065/0.4568, allocations: 3.891 MB / 0.5605 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.4572, allocations: 166.6 kB / 0.5606 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.4574, allocations: 31.94 kB / 0.5607 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008043/0.4582, allocations: 102.1 kB / 0.5608 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.4584, allocations: 103.7 kB / 0.5609 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.477e-05/0.4585, allocations: 39.38 kB / 0.5609 GB, free: 13.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.4596, allocations: 0.9735 MB / 0.5619 GB, free: 12.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4596, allocations: 0 / 0.5619 GB, free: 12.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002627/0.4622, allocations: 0.6289 MB / 0.5625 GB, free: 11.6 MB / 446.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.0001903/0.4624, allocations: 140 kB / 0.5626 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.4662, allocations: 3.198 MB / 0.5657 GB, free: 8.254 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4662, allocations: 3.938 kB / 0.5657 GB, free: 8.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.4675, allocations: 1.203 MB / 0.5669 GB, free: 7.039 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.469, allocations: 422.5 kB / 0.5673 GB, free: 6.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005918/0.475, allocations: 5.07 MB / 0.5723 GB, free: 1.516 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.4761, allocations: 1.251 MB / 0.5735 GB, free: 236 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001952/0.478, allocations: 0.8423 MB / 0.5743 GB, free: 15.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004764/0.4785, allocations: 152.3 kB / 0.5745 GB, free: 15.23 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4785, allocations: 7.938 kB / 0.5745 GB, free: 15.23 MB / 462.1 MB Notification: Performance of Templates: time 0.04514/0.5236, allocations: 25.97 MB / 0.5998 GB, free: 5.441 MB / 478.1 MB " [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 -s ida -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.232522151898593] Failed to read output from testmodel.py, exit status != 0: 0.5322927369270474 0.5460954299999999 0.398095785 Calling exit ...