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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002/0.002, allocations: 191.7 kB / 22.23 MB, free: 5.098 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04998/0.04998, allocations: 9.253 MB / 315.5 MB, free: 15.61 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 68.12 kB / 439.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1191, allocations: 54.3 MB / 494 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01631/0.1354, allocations: 13.89 MB / 0.496 GB, free: 6.754 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1463, allocations: 4.058 MB / 0.5 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.1493, allocations: 59.75 kB / 0.5 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.1509, allocations: 404.7 kB / 0.5004 GB, free: 2.227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004039/0.155, allocations: 0.9244 MB / 0.5013 GB, free: 1.297 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002851/0.1578, allocations: 0.9831 MB / 0.5023 GB, free: 320 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0052/0.163, allocations: 2.218 MB / 0.5045 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003833/0.1669, allocations: 2.061 MB / 0.5065 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.1688, allocations: 1.047 MB / 0.5075 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.1711, allocations: 1.28 MB / 0.5087 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005504/0.1717, allocations: 308 kB / 0.509 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.1731, allocations: 0.7452 MB / 0.5098 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.1741, allocations: 0.9778 MB / 0.5107 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.176, allocations: 1.489 MB / 0.5122 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005162/0.1812, allocations: 3.892 MB / 0.516 GB, free: 2.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1812, allocations: 0 / 0.516 GB, free: 2.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1812, allocations: 3.938 kB / 0.516 GB, free: 2.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.454e-05/0.1813, allocations: 0 / 0.516 GB, free: 2.176 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.2743/0.4556, allocations: 4.154 MB / 0.52 GB, free: 33.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.4556, allocations: 10.72 kB / 0.5201 GB, free: 33.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000734/0.4564, allocations: 312.7 kB / 0.5203 GB, free: 33.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.4584, allocations: 1.073 MB / 0.5214 GB, free: 33.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001881/0.4586, allocations: 216.1 kB / 0.5216 GB, free: 33.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004121/0.459, allocations: 292.3 kB / 0.5219 GB, free: 33.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008408/0.4674, allocations: 4.73 MB / 0.5265 GB, free: 31.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.4675, allocations: 44.88 kB / 0.5265 GB, free: 31.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.4678, allocations: 133.8 kB / 0.5267 GB, free: 31.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005858/0.4683, allocations: 431 kB / 0.5271 GB, free: 30.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007602/0.476, allocations: 3.371 MB / 0.5304 GB, free: 29.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.502, allocations: 21.51 MB / 0.5514 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005034/0.507, allocations: 1.431 MB / 0.5528 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.508, allocations: 0.6671 MB / 0.5534 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006582/0.5146, allocations: 3.575 MB / 0.5569 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.5146, allocations: 51.48 kB / 0.557 GB, free: 9.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.5146, allocations: 4 kB / 0.557 GB, free: 9.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02003/0.5347, allocations: 9.297 MB / 0.566 GB, free: 220 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.5347, allocations: 64.72 kB / 0.5661 GB, free: 144 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.5374, allocations: 1.819 MB / 0.5679 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.5375, allocations: 49.64 kB / 0.5679 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.5389, allocations: 1.806 MB / 0.5697 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005572/0.5395, allocations: 0.5504 MB / 0.5702 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/0.5405, allocations: 0.743 MB / 0.571 GB, free: 11.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.5407, allocations: 361.9 kB / 0.5713 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.5427, allocations: 1.222 MB / 0.5725 GB, free: 9.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003808/0.5465, allocations: 3.406 MB / 0.5758 GB, free: 5.074 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00662/0.5531, allocations: 5.124 MB / 0.5808 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-05/0.5532, allocations: 27.94 kB / 0.5809 GB, free: 14.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009053/0.5622, allocations: 4.822 MB / 0.5856 GB, free: 10 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-05/0.5623, allocations: 40 kB / 0.5856 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/0.5625, allocations: 76 kB / 0.5857 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.5635, allocations: 372.5 kB / 0.586 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/0.5667, allocations: 0.8938 MB / 0.5869 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006379/0.5731, allocations: 4.195 MB / 0.591 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/0.5757, allocations: 211.8 kB / 0.5912 GB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005525/0.5763, allocations: 228 kB / 0.5914 GB, free: 3.895 MB / 414.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.001941/0.5782, allocations: 0.932 MB / 0.5923 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.5786, allocations: 202.6 kB / 0.5925 GB, free: 2.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004674/0.5833, allocations: 2.587 MB / 0.595 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.5833, allocations: 16 kB / 0.5951 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.5833, allocations: 6.766 kB / 0.5951 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.5834, allocations: 3.984 kB / 0.5951 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.5957, allocations: 6.389 MB / 0.6013 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.5957, allocations: 4.75 kB / 0.6013 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.5969, allocations: 271.5 kB / 0.6016 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007437/0.5976, allocations: 260.6 kB / 0.6018 GB, free: 9.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.5977, allocations: 28.12 kB / 0.6019 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004582/0.6023, allocations: 3.349 MB / 0.6051 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/0.6023, allocations: 19.3 kB / 0.6051 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006465/0.6088, allocations: 3.893 MB / 0.6089 GB, free: 1.625 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.61, allocations: 182.6 kB / 0.6091 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006248/0.6106, allocations: 35.98 kB / 0.6092 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.6118, allocations: 99.84 kB / 0.6092 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000318/0.6121, allocations: 104.7 kB / 0.6093 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.6122, allocations: 42.55 kB / 0.6094 GB, free: 1.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002227/0.6145, allocations: 1.088 MB / 0.6104 GB, free: 96 kB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.6145, allocations: 0 / 0.6104 GB, free: 96 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.003206/0.6177, allocations: 0.6329 MB / 0.6111 GB, free: 15.46 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.0003092/0.618, allocations: 138 kB / 0.6112 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006045/0.624, allocations: 3.198 MB / 0.6143 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.624, allocations: 0 / 0.6143 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.6261, allocations: 1.21 MB / 0.6155 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.6287, allocations: 447.2 kB / 0.6159 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.6402, allocations: 5.097 MB / 0.6209 GB, free: 5.309 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/0.6431, allocations: 1.822 MB / 0.6227 GB, free: 3.453 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002636/0.6457, allocations: 0.8628 MB / 0.6235 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006844/0.6464, allocations: 155.4 kB / 0.6237 GB, free: 2.434 MB / 446.1 MB Notification: Performance of SimCode: time 1.833e-06/0.6464, allocations: 0 / 0.6237 GB, free: 2.434 MB / 446.1 MB Notification: Performance of Templates: time 0.06208/0.7085, allocations: 30.26 MB / 0.6532 GB, free: 4.23 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.938076310791075] Failed to read output from testmodel.py, exit status != 0: 0.7182928258553147 0.737391475 0.552331684 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f5ebd6dd7b0>