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.001436/0.001436, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001455/0.001455, allocations: 189.3 kB / 24.49 MB, free: 3.957 MB / 14.72 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 1.332/1.332, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 48.06 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2244, allocations: 52.18 MB / 423.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01164/0.236, allocations: 9.11 MB / 432.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007594/0.2436, allocations: 3.762 MB / 436.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.245, allocations: 79.56 kB / 436.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004344/0.2493, allocations: 2.157 MB / 438.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00461/0.2539, allocations: 1.911 MB / 440.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001689/0.2556, allocations: 0.7487 MB / 441.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007507/0.2631, allocations: 5.184 MB / 446.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00394/0.2671, allocations: 2.408 MB / 448.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.2699, allocations: 1.515 MB / 450.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003523/0.2735, allocations: 2.216 MB / 452.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009289/0.2744, allocations: 304 kB / 452.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.2769, allocations: 1.1 MB / 453.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002347/0.2792, allocations: 1.909 MB / 455.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00286/0.2821, allocations: 1.67 MB / 457.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00825/0.2903, allocations: 7.063 MB / 464.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2904, allocations: 0 / 464.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2904, allocations: 0 / 464.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001315/0.2905, allocations: 0 / 464.5 MB, free: 5.125 MB / 366.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.01218/0.3027, allocations: 4.978 MB / 469.5 MB, free: 88 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3027, allocations: 8.031 kB / 469.5 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000126/0.3028, allocations: 97.38 kB / 469.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008703/0.3037, allocations: 0.6205 MB / 470.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1492/0.4529, allocations: 12.3 MB / 482.5 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008561/0.4614, allocations: 3.861 MB / 486.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.4616, allocations: 197 kB / 486.5 MB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000642/0.4622, allocations: 267.8 kB / 486.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.4759, allocations: 8.834 MB / 495.6 MB, free: 5.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/0.476, allocations: 47.64 kB / 495.7 MB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003867/0.4764, allocations: 131.9 kB / 495.8 MB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00315/0.4795, allocations: 1.77 MB / 497.6 MB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.4933, allocations: 7.534 MB / 0.4933 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03936/0.5327, allocations: 33.6 MB / 0.5261 GB, free: 9.094 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007351/0.54, allocations: 3.117 MB / 0.5291 GB, free: 5.945 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.5425, allocations: 1.899 MB / 0.531 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/0.5428, allocations: 96.89 kB / 0.5311 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/0.5428, allocations: 51.5 kB / 0.5311 GB, free: 3.883 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.288e-06/0.5428, allocations: 0 / 0.5311 GB, free: 3.883 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2286/0.7715, allocations: 20.08 MB / 0.5507 GB, free: 104.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.7715, allocations: 252.6 kB / 0.551 GB, free: 103.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004013/0.7755, allocations: 3.951 MB / 0.5548 GB, free: 99.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/0.7759, allocations: 61.53 kB / 0.5549 GB, free: 99.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.7771, allocations: 2.927 MB / 0.5578 GB, free: 97.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/0.7777, allocations: 0.7544 MB / 0.5585 GB, free: 96.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.7789, allocations: 1.111 MB / 0.5596 GB, free: 95.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.536e-05/0.7789, allocations: 301.1 kB / 0.5599 GB, free: 95.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/0.7811, allocations: 2.166 MB / 0.562 GB, free: 92.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/0.7842, allocations: 5.503 MB / 0.5673 GB, free: 85.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006004/0.7902, allocations: 8.205 MB / 0.5754 GB, free: 76.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.766e-05/0.7902, allocations: 32 kB / 0.5754 GB, free: 76.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0125/0.8027, allocations: 8.642 MB / 0.5838 GB, free: 67.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.979e-05/0.8028, allocations: 56.19 kB / 0.5839 GB, free: 67.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-05/0.8029, allocations: 116 kB / 0.584 GB, free: 67.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/0.8064, allocations: 1.496 MB / 0.5855 GB, free: 65.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003248/0.8096, allocations: 1.224 MB / 0.5867 GB, free: 64.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009734/0.8193, allocations: 9.735 MB / 0.5962 GB, free: 54.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003675/0.823, allocations: 323.5 kB / 0.5965 GB, free: 54.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004026/0.8234, allocations: 328 kB / 0.5968 GB, free: 54.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 (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.002172/0.8256, allocations: 1.942 MB / 0.5987 GB, free: 52.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005776/0.8262, allocations: 369.5 kB / 0.599 GB, free: 51.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006171/0.8323, allocations: 4.127 MB / 0.6031 GB, free: 47.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-05/0.8324, allocations: 23.42 kB / 0.6031 GB, free: 47.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.8324, allocations: 11.98 kB / 0.6031 GB, free: 47.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.8324, allocations: 15.91 kB / 0.6031 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.8445, allocations: 8.784 MB / 0.6117 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.8445, allocations: 0 / 0.6117 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.8456, allocations: 263.6 kB / 0.6119 GB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003182/0.8488, allocations: 1.351 MB / 0.6133 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.8489, allocations: 28 kB / 0.6133 GB, free: 37.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008758/0.8576, allocations: 8.759 MB / 0.6218 GB, free: 28.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8576, allocations: 4 kB / 0.6218 GB, free: 28.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008223/0.8659, allocations: 7.04 MB / 0.6287 GB, free: 21.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007428/0.8666, allocations: 349.3 kB / 0.629 GB, free: 20.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004246/0.867, allocations: 28 kB / 0.6291 GB, free: 20.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.8684, allocations: 119.8 kB / 0.6292 GB, free: 20.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/0.8687, allocations: 125 kB / 0.6293 GB, free: 20.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.8688, allocations: 44 kB / 0.6294 GB, free: 20.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.8715, allocations: 2.506 MB / 0.6318 GB, free: 17.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8715, allocations: 4 kB / 0.6318 GB, free: 17.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003647/0.8752, allocations: 1.008 MB / 0.6328 GB, free: 16.92 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 {(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.008533/0.8837, allocations: 7.683 MB / 0.6403 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006261/0.8899, allocations: 5.154 MB / 0.6453 GB, free: 4.051 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.89, allocations: 0 / 0.6453 GB, free: 4.051 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.8926, allocations: 1.941 MB / 0.6472 GB, free: 2.102 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.8952, allocations: 493.1 kB / 0.6477 GB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0696/0.9647, allocations: 45.8 MB / 0.6924 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003249/0.968, allocations: 2.539 MB / 0.6949 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003839/0.9718, allocations: 1.823 MB / 0.6967 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/0.9742, allocations: 1.757 MB / 0.6984 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of SimCode: time 7.81e-07/0.9742, allocations: 0 / 0.6984 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2866/1.261, allocations: 78.04 MB / 0.7746 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.01/24.27, allocations: 10.69 kB / 0.7746 GB, free: 164.6 MB / 0.5294 GB " [Timeout remaining time 636] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 28.185226735076867]