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.001328/0.001328, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001404/0.001404, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.378/1.378, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.001503/0.001503, allocations: 43.94 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2497, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01226/0.262, allocations: 10.49 MB / 433.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007967/0.2699, allocations: 4.006 MB / 437.9 MB, free: 32 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.2715, allocations: 79.61 kB / 438 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004572/0.2761, allocations: 2.242 MB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005118/0.2812, allocations: 1.915 MB / 442.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.2832, allocations: 0.7447 MB / 442.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007982/0.2911, allocations: 5.189 MB / 448.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003387/0.2945, allocations: 2.412 MB / 450.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002875/0.2974, allocations: 1.515 MB / 452 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003535/0.3009, allocations: 2.212 MB / 454.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007997/0.3017, allocations: 300 kB / 454.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.3041, allocations: 1.233 MB / 455.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.3061, allocations: 1.905 MB / 457.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002727/0.3088, allocations: 2.202 MB / 459.9 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0089/0.3177, allocations: 7.044 MB / 466.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3177, allocations: 0 / 466.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3177, allocations: 0 / 466.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001711/0.3179, allocations: 0 / 466.9 MB, free: 2.91 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.01376/0.3317, allocations: 4.974 MB / 471.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3317, allocations: 8.031 kB / 471.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001043/0.3318, allocations: 89.34 kB / 472 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000974/0.3328, allocations: 0.6245 MB / 472.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.165/0.4978, allocations: 12.3 MB / 484.9 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009463/0.5073, allocations: 3.85 MB / 488.7 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.5075, allocations: 201 kB / 488.9 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007249/0.5082, allocations: 267.8 kB / 489.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.5228, allocations: 8.734 MB / 497.9 MB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.5229, allocations: 47.64 kB / 498 MB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.5233, allocations: 127.9 kB / 498.1 MB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/0.5264, allocations: 1.758 MB / 499.9 MB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01411/0.5406, allocations: 7.546 MB / 0.4955 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04388/0.5844, allocations: 35.31 MB / 0.53 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008466/0.5929, allocations: 3.115 MB / 0.533 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002817/0.5957, allocations: 1.903 MB / 0.5349 GB, free: 144 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004093/0.5961, allocations: 96.92 kB / 0.535 GB, free: 48 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1859/0.782, allocations: 50 kB / 0.535 GB, free: 109.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 1.737e-05/0.782, allocations: 0 / 0.535 GB, free: 109.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04731/0.8293, allocations: 20.02 MB / 0.5546 GB, free: 100.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.8294, allocations: 252.6 kB / 0.5548 GB, free: 100.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/0.8335, allocations: 3.955 MB / 0.5587 GB, free: 96.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002983/0.8338, allocations: 53.7 kB / 0.5587 GB, free: 96.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.8349, allocations: 2.923 MB / 0.5616 GB, free: 93.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005147/0.8354, allocations: 0.7568 MB / 0.5623 GB, free: 92.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.8364, allocations: 1.108 MB / 0.5634 GB, free: 91.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.8365, allocations: 305.1 kB / 0.5637 GB, free: 91.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/0.8387, allocations: 2.162 MB / 0.5658 GB, free: 89.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002941/0.8416, allocations: 5.406 MB / 0.5711 GB, free: 82.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005929/0.8475, allocations: 8.197 MB / 0.5791 GB, free: 72.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.131e-05/0.8476, allocations: 35.94 kB / 0.5791 GB, free: 72.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01109/0.8587, allocations: 8.643 MB / 0.5876 GB, free: 63.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.173e-05/0.8587, allocations: 56.06 kB / 0.5876 GB, free: 63.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.202e-05/0.8588, allocations: 112 kB / 0.5877 GB, free: 63.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003348/0.8621, allocations: 1.5 MB / 0.5892 GB, free: 62.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003013/0.8652, allocations: 1.224 MB / 0.5904 GB, free: 61.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009685/0.8748, allocations: 9.844 MB / 0.6 GB, free: 51.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003933/0.8788, allocations: 319.6 kB / 0.6003 GB, free: 50.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007025/0.8795, allocations: 328 kB / 0.6006 GB, free: 50.43 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.002572/0.882, allocations: 1.941 MB / 0.6025 GB, free: 48.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/0.8827, allocations: 372.9 kB / 0.6029 GB, free: 48.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006564/0.8893, allocations: 4.135 MB / 0.6069 GB, free: 43.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.76e-05/0.8893, allocations: 20 kB / 0.6069 GB, free: 43.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.8893, allocations: 8 kB / 0.6069 GB, free: 43.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/0.8894, allocations: 7.969 kB / 0.607 GB, free: 43.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01311/0.9025, allocations: 9.215 MB / 0.616 GB, free: 34.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.9025, allocations: 4 kB / 0.616 GB, free: 34.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.9036, allocations: 271.5 kB / 0.6162 GB, free: 34.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003255/0.9069, allocations: 1.343 MB / 0.6175 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001741/0.907, allocations: 35.98 kB / 0.6176 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009142/0.9162, allocations: 8.853 MB / 0.6262 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.9162, allocations: 3.938 kB / 0.6262 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008649/0.9248, allocations: 7.039 MB / 0.6331 GB, free: 16.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008493/0.9257, allocations: 341.4 kB / 0.6334 GB, free: 16.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004603/0.9261, allocations: 39.94 kB / 0.6335 GB, free: 16.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.9276, allocations: 111.8 kB / 0.6336 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/0.9279, allocations: 117 kB / 0.6337 GB, free: 16.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.928, allocations: 52.27 kB / 0.6337 GB, free: 16.33 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.9307, allocations: 2.502 MB / 0.6362 GB, free: 13.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9307, allocations: 4 kB / 0.6362 GB, free: 13.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003603/0.9343, allocations: 1.012 MB / 0.6372 GB, free: 12.8 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.008741/0.943, allocations: 7.686 MB / 0.6447 GB, free: 5.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006313/0.9493, allocations: 5.158 MB / 0.6497 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.9493, allocations: 4 kB / 0.6497 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.9527, allocations: 1.936 MB / 0.6516 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.9556, allocations: 491.4 kB / 0.6521 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08005/1.036, allocations: 45.83 MB / 0.6968 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003885/1.04, allocations: 3.095 MB / 0.6998 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004145/1.044, allocations: 1.819 MB / 0.7016 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002671/1.046, allocations: 1.753 MB / 0.7033 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/1.046, allocations: 0 / 0.7033 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2981/1.344, allocations: 79.78 MB / 0.7812 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.23/24.58, allocations: 18.39 kB / 0.7812 GB, free: 157.7 MB / 0.5294 GB " [Timeout remaining time 635] (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.71178085100837]