Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.006498/0.006498, allocations: 100.7 kB / 21.96 MB, free: 5.211 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.001744/0.001744, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.268/1.268, allocations: 207.7 MB / 236.1 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.00165/0.00165, allocations: 48.25 kB / 348 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.235, allocations: 49.16 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.008536/0.2435, allocations: 9.135 MB / 406.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006766/0.2503, allocations: 3.764 MB / 410 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.2517, allocations: 80.44 kB / 410.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.2556, allocations: 2.158 MB / 412.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004588/0.2601, allocations: 1.925 MB / 414.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.2617, allocations: 0.7435 MB / 414.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006723/0.2685, allocations: 4.848 MB / 419.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002956/0.2714, allocations: 2.42 MB / 422.2 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002571/0.274, allocations: 1.523 MB / 423.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002932/0.2769, allocations: 2.227 MB / 426 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000547/0.2775, allocations: 304 kB / 426.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.2795, allocations: 1.104 MB / 427.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001867/0.2814, allocations: 1.924 MB / 429.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001976/0.2834, allocations: 1.678 MB / 431 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007477/0.2908, allocations: 7.096 MB / 438.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2908, allocations: 0 / 438.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2908, allocations: 0 / 438.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.2909, allocations: 0 / 438.1 MB, free: 10.09 MB / 350.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.01109/0.302, allocations: 5.002 MB / 443.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.3021, allocations: 15.98 kB / 443.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001125/0.3022, allocations: 85.34 kB / 443.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007798/0.303, allocations: 0.6245 MB / 443.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1532/0.4562, allocations: 12.3 MB / 456.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.4673, allocations: 4.186 MB / 460.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.4676, allocations: 201 kB / 460.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.469, allocations: 271.8 kB / 460.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01793/0.4869, allocations: 8.826 MB / 469.6 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002217/0.4872, allocations: 55.58 kB / 469.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009618/0.4881, allocations: 131.8 kB / 469.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003126/0.4912, allocations: 1.77 MB / 471.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.5059, allocations: 7.522 MB / 479 MB, free: 292 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04372/0.5497, allocations: 33.63 MB / 0.5007 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007713/0.5574, allocations: 3.112 MB / 0.5037 GB, free: 10.51 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.5599, allocations: 1.888 MB / 0.5055 GB, free: 8.617 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003208/0.5602, allocations: 96.88 kB / 0.5056 GB, free: 8.523 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/0.5603, allocations: 51.56 kB / 0.5057 GB, free: 8.465 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 5.8e-06/0.5603, allocations: 0 / 0.5057 GB, free: 8.465 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05288/0.6132, allocations: 20.22 MB / 0.5254 GB, free: 4.199 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.6133, allocations: 248.6 kB / 0.5257 GB, free: 3.898 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.6186, allocations: 3.996 MB / 0.5296 GB, free: 15.87 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002785/0.6189, allocations: 49.7 kB / 0.5296 GB, free: 15.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002142/0.6211, allocations: 2.92 MB / 0.5325 GB, free: 12.87 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008558/0.6219, allocations: 0.7558 MB / 0.5332 GB, free: 12.11 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.6234, allocations: 1.108 MB / 0.5343 GB, free: 10.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.6235, allocations: 301.1 kB / 0.5346 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.6264, allocations: 2.166 MB / 0.5367 GB, free: 8.523 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005444/0.6319, allocations: 5.515 MB / 0.5421 GB, free: 1.367 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009467/0.6414, allocations: 8.188 MB / 0.5501 GB, free: 7.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-05/0.6414, allocations: 36 kB / 0.5501 GB, free: 7.555 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.1738/0.8153, allocations: 8.641 MB / 0.5585 GB, free: 140.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.962e-05/0.8154, allocations: 53.44 kB / 0.5586 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.8155, allocations: 112.4 kB / 0.5587 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004208/0.8197, allocations: 1.502 MB / 0.5602 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/0.8234, allocations: 1.229 MB / 0.5614 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.8351, allocations: 9.739 MB / 0.5709 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/0.8389, allocations: 323.4 kB / 0.5712 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005197/0.8394, allocations: 328 kB / 0.5715 GB, free: 136.7 MB / 478.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 (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.002511/0.8419, allocations: 1.947 MB / 0.5734 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005739/0.8425, allocations: 375.9 kB / 0.5738 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006456/0.8489, allocations: 4.129 MB / 0.5778 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/0.849, allocations: 26.31 kB / 0.5778 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.849, allocations: 7.438 kB / 0.5778 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.849, allocations: 7.312 kB / 0.5778 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.8606, allocations: 8.793 MB / 0.5864 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.8606, allocations: 1.75 kB / 0.5864 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.8617, allocations: 268.6 kB / 0.5867 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003191/0.8649, allocations: 1.347 MB / 0.588 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.865, allocations: 27.69 kB / 0.588 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008574/0.8736, allocations: 8.77 MB / 0.5966 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.8736, allocations: 0 / 0.5966 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007959/0.8816, allocations: 7.036 MB / 0.6035 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.883, allocations: 0.6375 MB / 0.6041 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003777/0.8834, allocations: 32 kB / 0.6041 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.8847, allocations: 119.8 kB / 0.6042 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.885, allocations: 121 kB / 0.6043 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.8851, allocations: 51.27 kB / 0.6044 GB, free: 115.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002552/0.8877, allocations: 2.526 MB / 0.6069 GB, free: 113.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.8877, allocations: 0 / 0.6069 GB, free: 113.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003497/0.8912, allocations: 1.014 MB / 0.6078 GB, free: 112.3 MB / 478.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 {(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.008124/0.8993, allocations: 7.686 MB / 0.6153 GB, free: 104.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00622/0.9055, allocations: 5.151 MB / 0.6204 GB, free: 99.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.9055, allocations: 0 / 0.6204 GB, free: 99.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00237/0.9079, allocations: 1.937 MB / 0.6223 GB, free: 97.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.9104, allocations: 0.4954 MB / 0.6228 GB, free: 97.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0459/0.9563, allocations: 45.99 MB / 0.6677 GB, free: 46.08 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002258/0.9585, allocations: 2.55 MB / 0.6702 GB, free: 43.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003131/0.9616, allocations: 1.835 MB / 0.6719 GB, free: 41.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.9632, allocations: 1.749 MB / 0.6737 GB, free: 39.91 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/0.9632, allocations: 0 / 0.6737 GB, free: 39.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.263/2.226, allocations: 78.31 MB / 0.7501 GB, free: 164.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.11/26.34, allocations: 14.86 kB / 0.7501 GB, free: 164.2 MB / 0.4981 GB " [Timeout remaining time 633] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 30.06854823906906]