Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.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.001694/0.001694, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.002016/0.002016, allocations: 206 kB / 23.73 MB, free: 4.402 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.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 51.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2477, allocations: 53.38 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01259/0.2603, allocations: 9.119 MB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.2705, allocations: 3.788 MB / 444.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001992/0.2725, allocations: 79.56 kB / 444.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00447/0.277, allocations: 2.157 MB / 446.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.2821, allocations: 1.88 MB / 448.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.2839, allocations: 0.7409 MB / 449.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007582/0.2915, allocations: 5.275 MB / 454.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003437/0.2949, allocations: 2.389 MB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.2976, allocations: 1.495 MB / 458.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003198/0.3008, allocations: 2.11 MB / 460.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007019/0.3015, allocations: 300 kB / 460.9 MB, free: 9.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002238/0.3037, allocations: 1.077 MB / 462 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.3057, allocations: 1.878 MB / 463.9 MB, free: 6.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001849/0.3075, allocations: 1.526 MB / 465.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007739/0.3152, allocations: 6.684 MB / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3152, allocations: 0 / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3153, allocations: 0 / 472.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001341/0.3154, allocations: 0 / 472.1 MB, free: 14.06 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01137/0.3268, allocations: 4.713 MB / 476.8 MB, free: 9.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3268, allocations: 8.031 kB / 476.8 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02671/0.3535, allocations: 3.107 MB / 479.9 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008934/0.3625, allocations: 3.225 MB / 483.1 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.3627, allocations: 201 kB / 483.3 MB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009425/0.3636, allocations: 271.8 kB / 483.6 MB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.3788, allocations: 8.959 MB / 492.5 MB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.379, allocations: 59.58 kB / 492.6 MB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003636/0.3793, allocations: 127.9 kB / 492.7 MB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003241/0.3826, allocations: 1.774 MB / 494.5 MB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/0.3981, allocations: 7.756 MB / 0.4905 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04481/0.4429, allocations: 33.36 MB / 0.5231 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008424/0.4514, allocations: 3.233 MB / 0.5262 GB, free: 9.488 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.4544, allocations: 2.025 MB / 0.5282 GB, free: 7.453 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000346/0.4547, allocations: 104.7 kB / 0.5283 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.323e-05/0.4548, allocations: 51.56 kB / 0.5283 GB, free: 7.289 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.869e-06/0.4548, allocations: 0 / 0.5283 GB, free: 7.289 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2758/0.7306, allocations: 21.39 MB / 0.5492 GB, free: 97.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.7306, allocations: 251.9 kB / 0.5495 GB, free: 96.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/0.7343, allocations: 3.708 MB / 0.5531 GB, free: 95.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003145/0.7346, allocations: 53.7 kB / 0.5532 GB, free: 95.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.7356, allocations: 2.911 MB / 0.556 GB, free: 92.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005227/0.7361, allocations: 0.7531 MB / 0.5567 GB, free: 92.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001162/0.7373, allocations: 1.19 MB / 0.5579 GB, free: 91.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.525e-05/0.7373, allocations: 301.1 kB / 0.5582 GB, free: 90.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002451/0.7398, allocations: 2.381 MB / 0.5605 GB, free: 88.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003437/0.7432, allocations: 5.74 MB / 0.5661 GB, free: 81.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00684/0.7501, allocations: 8.572 MB / 0.5745 GB, free: 70.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.558e-05/0.7501, allocations: 35.41 kB / 0.5745 GB, free: 70.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01435/0.7645, allocations: 9.59 MB / 0.5839 GB, free: 61.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.7645, allocations: 52 kB / 0.5839 GB, free: 61.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.493e-05/0.7646, allocations: 116 kB / 0.584 GB, free: 61.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004772/0.7694, allocations: 2.026 MB / 0.586 GB, free: 59.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003587/0.773, allocations: 1.275 MB / 0.5873 GB, free: 57.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.7849, allocations: 11.11 MB / 0.5981 GB, free: 46.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/0.789, allocations: 347.5 kB / 0.5984 GB, free: 46.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005724/0.7895, allocations: 340 kB / 0.5988 GB, free: 46.01 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 684 * Array equations: 3 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002274/0.7918, allocations: 1.943 MB / 0.6007 GB, free: 44.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005753/0.7924, allocations: 325.8 kB / 0.601 GB, free: 43.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008192/0.8006, allocations: 4.837 MB / 0.6057 GB, free: 38.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.999e-05/0.8006, allocations: 23.94 kB / 0.6057 GB, free: 38.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.8006, allocations: 8 kB / 0.6057 GB, free: 38.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.8006, allocations: 7.969 kB / 0.6057 GB, free: 38.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.8147, allocations: 8.902 MB / 0.6144 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.8147, allocations: 7.938 kB / 0.6144 GB, free: 29.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.8159, allocations: 267.6 kB / 0.6147 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004511/0.8204, allocations: 1.846 MB / 0.6165 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/0.8206, allocations: 31.83 kB / 0.6165 GB, free: 27.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.8315, allocations: 10.15 MB / 0.6264 GB, free: 17.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8315, allocations: 64 / 0.6264 GB, free: 17.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/0.8426, allocations: 7.912 MB / 0.6342 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009225/0.8435, allocations: 313.6 kB / 0.6345 GB, free: 9.281 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007158/0.8442, allocations: 32 kB / 0.6345 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/0.846, allocations: 135.8 kB / 0.6346 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.8464, allocations: 119.8 kB / 0.6347 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.8465, allocations: 51.98 kB / 0.6348 GB, free: 8.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002936/0.8495, allocations: 2.181 MB / 0.6369 GB, free: 6.777 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8495, allocations: 0 / 0.6369 GB, free: 6.777 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004052/0.8535, allocations: 1.047 MB / 0.6379 GB, free: 5.734 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (136): * Single equations (assignments): 132 * Array equations: 3 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003801/0.8539, allocations: 171.9 kB / 0.6381 GB, free: 5.559 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006946/0.8609, allocations: 5.563 MB / 0.6435 GB, free: 4 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.8609, allocations: 0 / 0.6435 GB, free: 4 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.8641, allocations: 1.948 MB / 0.6454 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.8666, allocations: 407.9 kB / 0.6458 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.884, allocations: 9.581 MB / 0.6552 GB, free: 4.016 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004162/0.8882, allocations: 2.541 MB / 0.6577 GB, free: 1.453 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004178/0.8923, allocations: 1.782 MB / 0.6594 GB, free: 15.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/0.893, allocations: 223.3 kB / 0.6596 GB, free: 15.45 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/0.893, allocations: 4 kB / 0.6596 GB, free: 15.45 MB / 478.1 MB Notification: Performance of Templates: time 0.08119/0.9742, allocations: 43.91 MB / 0.7025 GB, free: 4.02 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.682197416201234]