Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.0008564/0.0008564, 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.000795/0.000795, 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.8555/0.8555, allocations: 173.3 MB / 200.4 MB, free: 9.422 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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.489e-05, allocations: 4.672 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.008821/0.008836, allocations: 10.44 MB / 328.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005757/0.01459, allocations: 4.168 MB / 333.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007839/0.01538, allocations: 103.3 kB / 333.2 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002953/0.01833, allocations: 2.959 MB / 336.1 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002595/0.02092, allocations: 2.096 MB / 338.2 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.02211, allocations: 1.13 MB / 339.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.0263, allocations: 6.24 MB / 345.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002513/0.02881, allocations: 3.612 MB / 349.2 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002391/0.0312, allocations: 2.674 MB / 351.9 MB, free: 4.754 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.03323, allocations: 2.595 MB / 354.5 MB, free: 2.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003603/0.0336, allocations: 376 kB / 354.8 MB, free: 1.785 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.03487, allocations: 1.209 MB / 356 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.03617, allocations: 2.302 MB / 358.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.03741, allocations: 1.542 MB / 359.9 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005423/0.04283, allocations: 8.205 MB / 368.1 MB, free: 4.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.04283, allocations: 0 / 368.1 MB, free: 4.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.04284, allocations: 0 / 368.1 MB, free: 4.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.031e-05/0.04291, allocations: 0 / 368.1 MB, free: 4.488 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.007562/0.05047, allocations: 5.644 MB / 373.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.05051, allocations: 8.922 kB / 373.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006212/0.05114, allocations: 0.7234 MB / 374.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07517/0.1263, allocations: 12.8 MB / 387.3 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006683/0.133, allocations: 3.575 MB / 390.8 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.1331, allocations: 242.3 kB / 391.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004617/0.1336, allocations: 331.8 kB / 391.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009938/0.1435, allocations: 10 MB / 401.4 MB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.133e-05/0.1436, allocations: 51.59 kB / 401.5 MB, free: 2.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/0.1439, allocations: 151.9 kB / 401.6 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/0.146, allocations: 1.959 MB / 403.6 MB, free: 200 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.1561, allocations: 8.316 MB / 411.9 MB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/0.1849, allocations: 36.53 MB / 448.4 MB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.158/0.3429, allocations: 3.327 MB / 451.7 MB, free: 119.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.3451, allocations: 1.929 MB / 453.7 MB, free: 118.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.3454, allocations: 195.6 kB / 453.9 MB, free: 118.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3454, allocations: 50.97 kB / 453.9 MB, free: 118.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=166): time 5.129e-06/0.3454, allocations: 0.5625 kB / 453.9 MB, free: 118.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=201): time 0.0294/0.3748, allocations: 21.7 MB / 475.6 MB, free: 104.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.3749, allocations: 256.6 kB / 475.9 MB, free: 104.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003638/0.3786, allocations: 4.765 MB / 480.6 MB, free: 99.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.3787, allocations: 60.16 kB / 480.7 MB, free: 99.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.3797, allocations: 3.249 MB / 483.9 MB, free: 96.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004586/0.3802, allocations: 0.7882 MB / 484.7 MB, free: 95.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000989/0.3812, allocations: 1.167 MB / 485.9 MB, free: 94.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.3812, allocations: 309.1 kB / 486.2 MB, free: 94.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001843/0.3831, allocations: 2.272 MB / 488.5 MB, free: 92.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002769/0.3858, allocations: 5.839 MB / 494.3 MB, free: 84.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005383/0.3912, allocations: 8.687 MB / 0.4912 GB, free: 74.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.051e-05/0.3912, allocations: 36 kB / 0.4912 GB, free: 74.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.008764/0.4, allocations: 9.541 MB / 0.5005 GB, free: 64.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.4001, allocations: 59.94 kB / 0.5006 GB, free: 64.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.134e-05/0.4001, allocations: 120 kB / 0.5007 GB, free: 64.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002964/0.4031, allocations: 2.072 MB / 0.5027 GB, free: 62.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.4049, allocations: 1.248 MB / 0.504 GB, free: 61.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.4171, allocations: 16.92 MB / 0.5205 GB, free: 43.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003432/0.4206, allocations: 391.5 kB / 0.5209 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002943/0.4209, allocations: 360 kB / 0.5212 GB, free: 43.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (671): * Single equations (assignments): 665 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,36,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002679/0.4235, allocations: 2.169 MB / 0.5233 GB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005761/0.4241, allocations: 401.3 kB / 0.5237 GB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.4283, allocations: 4.27 MB / 0.5279 GB, free: 36.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.4284, allocations: 27.42 kB / 0.5279 GB, free: 36.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4284, allocations: 8 kB / 0.5279 GB, free: 36.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4284, allocations: 7.969 kB / 0.5279 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009253/0.4376, allocations: 9.651 MB / 0.5373 GB, free: 26.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.4376, allocations: 4 kB / 0.5373 GB, free: 26.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006583/0.4383, allocations: 287.6 kB / 0.5376 GB, free: 26.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/0.4402, allocations: 1.351 MB / 0.5389 GB, free: 24.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.4403, allocations: 36 kB / 0.539 GB, free: 24.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006738/0.447, allocations: 8.859 MB / 0.5476 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.447, allocations: 7.938 kB / 0.5476 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006271/0.4533, allocations: 7.238 MB / 0.5547 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/0.4539, allocations: 443.4 kB / 0.5551 GB, free: 8.184 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.4542, allocations: 28 kB / 0.5551 GB, free: 8.156 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00099/0.4552, allocations: 183.7 kB / 0.5553 GB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.4554, allocations: 132.8 kB / 0.5554 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.46e-05/0.4555, allocations: 52.11 kB / 0.5555 GB, free: 7.797 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004124/0.4596, allocations: 2.93 MB / 0.5584 GB, free: 4.859 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4596, allocations: 0 / 0.5584 GB, free: 4.859 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00578/0.4654, allocations: 1.316 MB / 0.5596 GB, free: 3.543 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 (147): * Single equations (assignments): 143 * 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 {(5,30,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0106/0.476, allocations: 7.919 MB / 0.5674 GB, free: 11.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007145/0.4831, allocations: 5.82 MB / 0.5731 GB, free: 5.754 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4831, allocations: 0 / 0.5731 GB, free: 5.754 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00236/0.4855, allocations: 2.062 MB / 0.5751 GB, free: 3.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.4882, allocations: 0.6075 MB / 0.5757 GB, free: 3.098 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1845/0.6727, allocations: 51.12 MB / 0.6256 GB, free: 140.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/0.6746, allocations: 2.913 MB / 0.6284 GB, free: 138.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002105/0.6767, allocations: 1.889 MB / 0.6303 GB, free: 137.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/0.678, allocations: 2.027 MB / 0.6323 GB, free: 135.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/0.678, allocations: 0 / 0.6323 GB, free: 135.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07422/0.7522, allocations: 87.93 MB / 0.7181 GB, free: 48.31 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/12.1, allocations: 11.86 kB / 0.7181 GB, free: 48.3 MB / 458.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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: 14.216340404935181]