Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.001605/0.001605, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.00231/0.00231, allocations: 214.8 kB / 22.25 MB, free: 5.133 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.613/1.613, allocations: 230.6 MB / 256 MB, free: 8.012 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.04995/0.04995, allocations: 9.242 MB / 321.7 MB, free: 10.05 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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") [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.002173/0.002173, allocations: 67.89 kB / 448.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.131, allocations: 55.48 MB / 0.4919 GB, free: 6.996 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01141/0.1424, allocations: 8.502 MB / 0.5002 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006509/0.1489, allocations: 2.659 MB / 0.5028 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.1499, allocations: 35.88 kB / 0.5028 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009596/0.1509, allocations: 381.4 kB / 0.5032 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003538/0.1544, allocations: 1.459 MB / 0.5046 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1548, allocations: 135.8 kB / 0.5047 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003053/0.1579, allocations: 2.518 MB / 0.5072 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.1589, allocations: 0.7613 MB / 0.5079 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.16, allocations: 0.9222 MB / 0.5088 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001885/0.1619, allocations: 1.432 MB / 0.5102 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003552/0.1623, allocations: 232 kB / 0.5105 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.1638, allocations: 0.8815 MB / 0.5113 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.1649, allocations: 1.238 MB / 0.5125 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.1664, allocations: 1.569 MB / 0.5141 GB, free: 176 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.306/0.4724, allocations: 5.027 MB / 0.519 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4724, allocations: 0.6562 kB / 0.519 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4724, allocations: 0 / 0.519 GB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001658/0.4726, allocations: 0 / 0.519 GB, free: 12.41 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01182/0.4844, allocations: 4.4 MB / 0.5233 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.4845, allocations: 9.969 kB / 0.5233 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006998/0.4915, allocations: 1.785 MB / 0.525 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003498/0.4949, allocations: 1.306 MB / 0.5263 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.4951, allocations: 153.6 kB / 0.5264 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006425/0.4957, allocations: 199.9 kB / 0.5266 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/0.5118, allocations: 8.257 MB / 0.5347 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-05/0.5119, allocations: 22 kB / 0.5347 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003337/0.5123, allocations: 96.44 kB / 0.5348 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/0.5154, allocations: 1.902 MB / 0.5367 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0155/0.5309, allocations: 7.42 MB / 0.5439 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04368/0.5745, allocations: 25.53 MB / 0.5689 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006885/0.5814, allocations: 2.086 MB / 0.5709 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.5831, allocations: 0.866 MB / 0.5717 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007663/0.5907, allocations: 3.154 MB / 0.5748 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.5908, allocations: 51.5 kB / 0.5749 GB, free: 7.988 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.597e-06/0.5908, allocations: 0 / 0.5749 GB, free: 7.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01458/0.6054, allocations: 5.5 MB / 0.5802 GB, free: 2.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.6054, allocations: 64.72 kB / 0.5803 GB, free: 2.461 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004868/0.6103, allocations: 2.623 MB / 0.5829 GB, free: 15.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.6104, allocations: 53.7 kB / 0.5829 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/0.6122, allocations: 2.182 MB / 0.585 GB, free: 13.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000731/0.613, allocations: 0.6764 MB / 0.5857 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.6144, allocations: 0.8284 MB / 0.5865 GB, free: 12.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6145, allocations: 305.1 kB / 0.5868 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/0.6174, allocations: 1.37 MB / 0.5881 GB, free: 10.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004843/0.6222, allocations: 3.628 MB / 0.5917 GB, free: 5.668 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007486/0.6297, allocations: 5.416 MB / 0.597 GB, free: 15.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-05/0.6298, allocations: 24 kB / 0.597 GB, free: 15.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.0109/0.6407, allocations: 5.226 MB / 0.6021 GB, free: 10.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.339e-05/0.6407, allocations: 40 kB / 0.6021 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/0.6409, allocations: 76 kB / 0.6022 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.6419, allocations: 366.8 kB / 0.6026 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003523/0.6455, allocations: 0.9171 MB / 0.6035 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006298/0.6518, allocations: 4.061 MB / 0.6074 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.6551, allocations: 219.6 kB / 0.6076 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007964/0.6559, allocations: 248 kB / 0.6079 GB, free: 4.422 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (498): * Single equations (assignments): 493 * Array equations: 4 * 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.003674/0.6595, allocations: 1.595 MB / 0.6094 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006338/0.6602, allocations: 246.4 kB / 0.6097 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005607/0.6658, allocations: 2.326 MB / 0.6119 GB, free: 236 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001322/0.6659, allocations: 27.98 kB / 0.612 GB, free: 208 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.386e-05/0.6659, allocations: 4.875 kB / 0.612 GB, free: 204 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.6659, allocations: 7.969 kB / 0.612 GB, free: 196 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/0.6822, allocations: 6.401 MB / 0.6182 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/0.6822, allocations: 4.469 kB / 0.6182 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.6832, allocations: 247.6 kB / 0.6185 GB, free: 9.449 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007862/0.684, allocations: 258.3 kB / 0.6187 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.6842, allocations: 35.73 kB / 0.6187 GB, free: 9.164 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00496/0.6891, allocations: 3.314 MB / 0.622 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/0.6891, allocations: 7.938 kB / 0.622 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00687/0.696, allocations: 3.607 MB / 0.6255 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.6971, allocations: 244.2 kB / 0.6257 GB, free: 1.816 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007292/0.6979, allocations: 28 kB / 0.6258 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.6992, allocations: 75.91 kB / 0.6258 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.6995, allocations: 117 kB / 0.626 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.6997, allocations: 44 kB / 0.626 GB, free: 1.559 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00445/0.7041, allocations: 1.68 MB / 0.6276 GB, free: 15.86 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7041, allocations: 0 / 0.6276 GB, free: 15.86 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004789/0.7089, allocations: 0.7066 MB / 0.6283 GB, free: 15.16 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * 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.0005802/0.7095, allocations: 163.4 kB / 0.6285 GB, free: 14.99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007179/0.7167, allocations: 3.317 MB / 0.6317 GB, free: 11.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.7167, allocations: 5.5 kB / 0.6317 GB, free: 11.68 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.7188, allocations: 1.102 MB / 0.6328 GB, free: 10.56 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.7217, allocations: 406.3 kB / 0.6332 GB, free: 10.18 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01711/0.7388, allocations: 6.842 MB / 0.6399 GB, free: 3.266 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004976/0.7438, allocations: 2.616 MB / 0.6424 GB, free: 0.625 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003831/0.7476, allocations: 1.27 MB / 0.6437 GB, free: 15.35 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/0.7484, allocations: 179.3 kB / 0.6438 GB, free: 15.18 MB / 494.1 MB Notification: Performance of SimCode: time 1.243e-06/0.7484, allocations: 8 kB / 0.6438 GB, free: 15.17 MB / 494.1 MB Notification: Performance of Templates: time 0.0661/0.8145, allocations: 29.6 MB / 0.6727 GB, free: 1.789 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.572764983167872] Failed to read output from testmodel.py, exit status != 0: 0.8245521830394864 0.840795282 0.364942272 Calling exit ...