Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001178/0.001178, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008641/0.0008641, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8598/0.8598, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048e-05/1.181e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006686/0.006698, allocations: 9.142 MB / 327.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005195/0.01189, allocations: 3.777 MB / 331.4 MB, free: 9.375 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008243/0.01272, allocations: 79.56 kB / 331.4 MB, free: 9.297 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.01494, allocations: 2.273 MB / 333.7 MB, free: 7.016 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002709/0.01765, allocations: 1.964 MB / 335.7 MB, free: 5.043 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009656/0.01861, allocations: 0.8264 MB / 336.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004048/0.02266, allocations: 5.835 MB / 342.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.02458, allocations: 2.919 MB / 345.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001673/0.02625, allocations: 2.315 MB / 347.6 MB, free: 9.074 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.02797, allocations: 2.342 MB / 349.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.02825, allocations: 316 kB / 350.2 MB, free: 6.418 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.02935, allocations: 1.155 MB / 351.4 MB, free: 5.262 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.03038, allocations: 2.002 MB / 353.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009433/0.03132, allocations: 1.348 MB / 354.7 MB, free: 1.902 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004213/0.03553, allocations: 7.161 MB / 361.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.03554, allocations: 0 / 361.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.03554, allocations: 0 / 361.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.742e-05/0.03559, allocations: 0 / 361.9 MB, free: 10.72 MB / 330.7 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.006533/0.04213, allocations: 5.064 MB / 367 MB, free: 5.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.04217, allocations: 8.922 kB / 367 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005191/0.04269, allocations: 0.6245 MB / 367.6 MB, free: 4.953 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07495/0.1176, allocations: 12.71 MB / 380.3 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005781/0.1234, allocations: 3.311 MB / 383.6 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.1235, allocations: 205.1 kB / 383.8 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004211/0.1239, allocations: 275.8 kB / 384.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008683/0.1326, allocations: 8.834 MB / 392.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.829e-05/0.1327, allocations: 51.64 kB / 393 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002399/0.1329, allocations: 131.9 kB / 393.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001735/0.1347, allocations: 1.77 MB / 394.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008119/0.1428, allocations: 7.507 MB / 402.4 MB, free: 1.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02501/0.1678, allocations: 33.99 MB / 436.4 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004486/0.1723, allocations: 3.194 MB / 439.5 MB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.1738, allocations: 1.907 MB / 441.5 MB, free: 9.309 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000201/0.174, allocations: 93.12 kB / 441.5 MB, free: 9.219 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1741, allocations: 47.56 kB / 441.6 MB, free: 9.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.637e-06/0.1741, allocations: 0 / 441.6 MB, free: 9.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1606/0.3346, allocations: 20.69 MB / 462.3 MB, free: 116.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.3347, allocations: 259.6 kB / 462.5 MB, free: 116.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003003/0.3377, allocations: 4.499 MB / 467 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-05/0.3378, allocations: 57.3 kB / 467.1 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007332/0.3385, allocations: 2.901 MB / 470 MB, free: 111.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/0.3388, allocations: 0.7363 MB / 470.7 MB, free: 110.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007205/0.3395, allocations: 1.093 MB / 471.8 MB, free: 109.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.233e-05/0.3396, allocations: 305.1 kB / 472.1 MB, free: 109.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.3411, allocations: 2.162 MB / 474.3 MB, free: 107.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/0.3433, allocations: 5.502 MB / 479.8 MB, free: 100.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004556/0.3479, allocations: 8.207 MB / 488 MB, free: 90.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.795e-05/0.3479, allocations: 35.94 kB / 488 MB, free: 90.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007643/0.3556, allocations: 8.65 MB / 496.7 MB, free: 81.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.3556, allocations: 56 kB / 496.7 MB, free: 81.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.569e-05/0.3557, allocations: 112 kB / 496.8 MB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002064/0.3577, allocations: 1.494 MB / 498.3 MB, free: 80.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.3595, allocations: 1.228 MB / 499.6 MB, free: 78.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00707/0.3666, allocations: 9.828 MB / 0.4975 GB, free: 69.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/0.369, allocations: 386.9 kB / 0.4978 GB, free: 68.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.3693, allocations: 326.6 kB / 0.4981 GB, free: 68.35 MB / 410.7 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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001598/0.3709, allocations: 1.935 MB / 0.5 GB, free: 66.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.3711, allocations: 369.6 kB / 0.5004 GB, free: 66.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003784/0.3749, allocations: 4.127 MB / 0.5044 GB, free: 61.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.3749, allocations: 23.94 kB / 0.5044 GB, free: 61.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.375, allocations: 8 kB / 0.5044 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.375, allocations: 7.969 kB / 0.5044 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007877/0.3828, allocations: 8.953 MB / 0.5132 GB, free: 52.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3828, allocations: 0 / 0.5132 GB, free: 52.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005969/0.3834, allocations: 271.6 kB / 0.5134 GB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.3853, allocations: 1.339 MB / 0.5148 GB, free: 51.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-05/0.3854, allocations: 32 kB / 0.5148 GB, free: 51.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006445/0.3919, allocations: 8.836 MB / 0.5234 GB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3919, allocations: 7.938 kB / 0.5234 GB, free: 42.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005772/0.3976, allocations: 7.025 MB / 0.5303 GB, free: 35.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.3982, allocations: 417.3 kB / 0.5307 GB, free: 34.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.3985, allocations: 28 kB / 0.5307 GB, free: 34.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009506/0.3994, allocations: 185.5 kB / 0.5309 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.3996, allocations: 121.7 kB / 0.531 GB, free: 34.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/0.3997, allocations: 44 kB / 0.531 GB, free: 34.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00223/0.402, allocations: 2.791 MB / 0.5338 GB, free: 31.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.402, allocations: 0 / 0.5338 GB, free: 31.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002907/0.4049, allocations: 1.176 MB / 0.5349 GB, free: 30.48 MB / 410.7 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006102/0.411, allocations: 7.713 MB / 0.5424 GB, free: 22.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004678/0.4156, allocations: 5.154 MB / 0.5475 GB, free: 17.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4156, allocations: 6.625 kB / 0.5475 GB, free: 17.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.4173, allocations: 1.927 MB / 0.5494 GB, free: 15.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.4191, allocations: 0.4973 MB / 0.5499 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04473/0.4638, allocations: 46.84 MB / 0.5956 GB, free: 11.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002053/0.4659, allocations: 2.555 MB / 0.5981 GB, free: 8.734 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002498/0.4684, allocations: 1.826 MB / 0.5999 GB, free: 6.902 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/0.4699, allocations: 1.766 MB / 0.6016 GB, free: 5.137 MB / 458.7 MB Notification: Performance of SimCode: time 1.813e-06/0.4699, allocations: 0 / 0.6016 GB, free: 5.137 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2075/0.6775, allocations: 78.79 MB / 0.6785 GB, free: 90.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.87, allocations: 21.7 kB / 0.6786 GB, free: 90.29 MB / 458.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.922980284318328]