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.001485/0.001485, allocations: 112.6 kB / 19.7 MB, free: 2.25 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.001649/0.001649, allocations: 219.3 kB / 23.01 MB, free: 5.113 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.335/1.335, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 179] 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.04662/0.04662, allocations: 9.24 MB / 322.4 MB, free: 10.07 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.002196/0.002196, allocations: 67.91 kB / 449 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1075, allocations: 55.46 MB / 0.4926 GB, free: 7.016 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01671/0.1242, allocations: 13.89 MB / 0.5062 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00894/0.1331, allocations: 4.085 MB / 0.5102 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002024/0.1351, allocations: 59.81 kB / 0.5102 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.1366, allocations: 400.6 kB / 0.5106 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00293/0.1395, allocations: 0.9244 MB / 0.5115 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.1415, allocations: 0.9793 MB / 0.5125 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003267/0.1447, allocations: 2.23 MB / 0.5147 GB, free: 376 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1881/0.3329, allocations: 2.04 MB / 0.5167 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.3339, allocations: 1.055 MB / 0.5177 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.3351, allocations: 1.278 MB / 0.5189 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003005/0.3354, allocations: 308.8 kB / 0.5192 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009798/0.3364, allocations: 0.7502 MB / 0.52 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006709/0.3371, allocations: 0.9722 MB / 0.5209 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.3382, allocations: 1.484 MB / 0.5224 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004298/0.3424, allocations: 3.892 MB / 0.5262 GB, free: 6.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3425, allocations: 3.594 kB / 0.5262 GB, free: 6.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3425, allocations: 1.094 kB / 0.5262 GB, free: 6.887 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.944e-05/0.3426, allocations: 0.5156 kB / 0.5262 GB, free: 6.887 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.01017/0.3527, allocations: 4.214 MB / 0.5303 GB, free: 5.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3528, allocations: 8.938 kB / 0.5303 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005615/0.3533, allocations: 308.5 kB / 0.5306 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.3551, allocations: 1.083 MB / 0.5316 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3552, allocations: 213.3 kB / 0.5318 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003644/0.3556, allocations: 284.6 kB / 0.5321 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006787/0.3624, allocations: 4.742 MB / 0.5367 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-05/0.3625, allocations: 38.92 kB / 0.5368 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.3627, allocations: 137.6 kB / 0.5369 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004551/0.3632, allocations: 424.4 kB / 0.5373 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005702/0.3689, allocations: 3.377 MB / 0.5406 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.391, allocations: 21.5 MB / 0.5616 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004394/0.3954, allocations: 1.431 MB / 0.563 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009833/0.3964, allocations: 0.6792 MB / 0.5637 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006326/0.4027, allocations: 3.572 MB / 0.5672 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.4028, allocations: 48.53 kB / 0.5672 GB, free: 11.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 2.785e-06/0.4028, allocations: 0 / 0.5672 GB, free: 11.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02219/0.425, allocations: 9.302 MB / 0.5763 GB, free: 2.348 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.425, allocations: 64.72 kB / 0.5764 GB, free: 2.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002707/0.4277, allocations: 1.819 MB / 0.5781 GB, free: 468 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.46e-05/0.4278, allocations: 45.7 kB / 0.5782 GB, free: 416 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.4292, allocations: 1.809 MB / 0.5799 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005083/0.4297, allocations: 0.5528 MB / 0.5805 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.4307, allocations: 0.743 MB / 0.5812 GB, free: 13.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4309, allocations: 365 kB / 0.5816 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/0.4328, allocations: 1.225 MB / 0.5828 GB, free: 11.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003651/0.4365, allocations: 3.405 MB / 0.5861 GB, free: 7.273 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006043/0.4425, allocations: 5.12 MB / 0.5911 GB, free: 1.391 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.507e-05/0.4425, allocations: 24 kB / 0.5911 GB, free: 1.367 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007197/0.4497, allocations: 4.821 MB / 0.5958 GB, free: 13.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.4498, allocations: 40 kB / 0.5958 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-05/0.4499, allocations: 76 kB / 0.5959 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008434/0.4507, allocations: 370.1 kB / 0.5963 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.4532, allocations: 0.8919 MB / 0.5971 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005443/0.4587, allocations: 4.192 MB / 0.6012 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/0.4607, allocations: 209.4 kB / 0.6014 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/0.461, allocations: 232 kB / 0.6017 GB, free: 7.027 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.001395/0.4624, allocations: 0.9354 MB / 0.6026 GB, free: 6.156 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002665/0.4627, allocations: 202.6 kB / 0.6028 GB, free: 5.957 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004087/0.4668, allocations: 2.582 MB / 0.6053 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4668, allocations: 20.56 kB / 0.6053 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4668, allocations: 9.062 kB / 0.6053 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.4668, allocations: 3.984 kB / 0.6053 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.4776, allocations: 6.381 MB / 0.6115 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.4776, allocations: 8.969 kB / 0.6116 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009974/0.4786, allocations: 267.6 kB / 0.6118 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006362/0.4792, allocations: 260.6 kB / 0.6121 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/0.4793, allocations: 28 kB / 0.6121 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00412/0.4834, allocations: 3.361 MB / 0.6154 GB, free: 8.844 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4834, allocations: 4 kB / 0.6154 GB, free: 8.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005255/0.4887, allocations: 3.907 MB / 0.6192 GB, free: 4.867 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.4891, allocations: 174.7 kB / 0.6194 GB, free: 4.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002068/0.4893, allocations: 35.98 kB / 0.6194 GB, free: 4.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007282/0.49, allocations: 99.84 kB / 0.6195 GB, free: 4.562 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.4902, allocations: 104.7 kB / 0.6196 GB, free: 4.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.014e-05/0.4903, allocations: 43.92 kB / 0.6196 GB, free: 4.418 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001484/0.4918, allocations: 1.088 MB / 0.6207 GB, free: 3.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4918, allocations: 0 / 0.6207 GB, free: 3.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002438/0.4942, allocations: 0.6289 MB / 0.6213 GB, free: 2.711 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.0002199/0.4944, allocations: 135 kB / 0.6214 GB, free: 2.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004561/0.499, allocations: 3.195 MB / 0.6246 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.499, allocations: 4 kB / 0.6246 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.5007, allocations: 1.202 MB / 0.6257 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.5023, allocations: 461.3 kB / 0.6262 GB, free: 13.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007791/0.5101, allocations: 5.236 MB / 0.6313 GB, free: 8.426 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001743/0.5118, allocations: 1.826 MB / 0.6331 GB, free: 6.57 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/0.5124, allocations: 183.3 kB / 0.6332 GB, free: 6.391 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5124, allocations: 0 / 0.6332 GB, free: 6.391 MB / 478.1 MB Notification: Performance of Templates: time 0.05477/0.5672, allocations: 44.64 MB / 0.6768 GB, free: 9.828 MB / 0.5138 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: 9.5779509448912] Failed to read output from testmodel.py, exit status != 0: 0.5754217919893563 0.589026904 0.24362331 Calling exit ...