Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 230.5 MB / 258.2 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 67.89 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2467, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.0148/0.2615, allocations: 11.87 MB / 443.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.2716, allocations: 4.382 MB / 448.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002941/0.2746, allocations: 99.38 kB / 448.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00617/0.2807, allocations: 2.92 MB / 451.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006042/0.2868, allocations: 1.996 MB / 453.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002959/0.2897, allocations: 1.056 MB / 454.3 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008718/0.2985, allocations: 5.6 MB / 459.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00503/0.3035, allocations: 3.071 MB / 463 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.3072, allocations: 1.733 MB / 464.7 MB, free: 5.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004368/0.3116, allocations: 2.484 MB / 467.2 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.3129, allocations: 364 kB / 467.5 MB, free: 2.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003146/0.316, allocations: 1.268 MB / 468.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003165/0.3192, allocations: 2.142 MB / 471 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00472/0.3239, allocations: 2.478 MB / 473.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.3353, allocations: 7.911 MB / 481.3 MB, free: 5.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3354, allocations: 4 kB / 481.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3354, allocations: 0 / 481.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002904/0.3356, allocations: 0 / 481.3 MB, free: 5.105 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01818/0.3538, allocations: 5.5 MB / 486.8 MB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3539, allocations: 12.03 kB / 486.9 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001783/0.3541, allocations: 106.4 kB / 487 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002004/0.3561, allocations: 0.7032 MB / 487.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1688/0.5249, allocations: 12.39 MB / 0.4883 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.5358, allocations: 3.879 MB / 0.4921 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002603/0.536, allocations: 234 kB / 0.4923 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001371/0.5374, allocations: 323.8 kB / 0.4927 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/0.5574, allocations: 9.722 MB / 0.5021 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002147/0.5576, allocations: 51.58 kB / 0.5022 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009777/0.5586, allocations: 151.9 kB / 0.5023 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003609/0.5622, allocations: 1.9 MB / 0.5042 GB, free: 1.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/0.5796, allocations: 8.234 MB / 0.5122 GB, free: 9.098 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2481/0.8277, allocations: 37.63 MB / 0.549 GB, free: 76.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00735/0.8351, allocations: 3.244 MB / 0.5522 GB, free: 75.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/0.8371, allocations: 1.922 MB / 0.554 GB, free: 75.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004964/0.8375, allocations: 203.2 kB / 0.5542 GB, free: 75.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.8376, allocations: 60.81 kB / 0.5543 GB, free: 75.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=166): time 4.348e-06/0.8376, allocations: 0 / 0.5543 GB, free: 75.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=201): time 0.05516/0.8928, allocations: 20.91 MB / 0.5747 GB, free: 62.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.573e-05/0.8928, allocations: 254.5 kB / 0.5749 GB, free: 61.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006363/0.8992, allocations: 4.181 MB / 0.579 GB, free: 57.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003288/0.8995, allocations: 57.7 kB / 0.5791 GB, free: 57.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001665/0.9012, allocations: 3.244 MB / 0.5823 GB, free: 54.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007861/0.902, allocations: 0.793 MB / 0.583 GB, free: 54.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001849/0.9038, allocations: 1.193 MB / 0.5842 GB, free: 52.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.9039, allocations: 301.1 kB / 0.5845 GB, free: 52.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/0.9067, allocations: 2.274 MB / 0.5867 GB, free: 50.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004043/0.9107, allocations: 5.739 MB / 0.5923 GB, free: 42.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007535/0.9183, allocations: 8.688 MB / 0.6008 GB, free: 32.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.9184, allocations: 36.88 kB / 0.6008 GB, free: 32.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01604/0.9344, allocations: 9.534 MB / 0.6101 GB, free: 23.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.9345, allocations: 56 kB / 0.6102 GB, free: 22.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/0.9347, allocations: 124 kB / 0.6103 GB, free: 22.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005705/0.9404, allocations: 2.08 MB / 0.6123 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003595/0.944, allocations: 1.248 MB / 0.6136 GB, free: 19.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/0.9623, allocations: 16.94 MB / 0.6301 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/0.9675, allocations: 350.8 kB / 0.6304 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/0.9685, allocations: 355.7 kB / 0.6308 GB, free: 1.586 MB / 446.1 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.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.004128/0.9726, allocations: 2.131 MB / 0.6329 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.9737, allocations: 397.4 kB / 0.6332 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009161/0.9829, allocations: 4.267 MB / 0.6374 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-05/0.9829, allocations: 20 kB / 0.6374 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.517e-05/0.983, allocations: 8 kB / 0.6374 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.941e-05/0.983, allocations: 7.969 kB / 0.6374 GB, free: 10.72 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02152/1.005, allocations: 9.953 MB / 0.6472 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/1.005, allocations: 288 / 0.6472 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/1.006, allocations: 287.7 kB / 0.6474 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004103/1.01, allocations: 1.355 MB / 0.6488 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002661/1.01, allocations: 35.94 kB / 0.6488 GB, free: 15.06 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/1.025, allocations: 8.871 MB / 0.6574 GB, free: 6.07 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/1.025, allocations: 7.938 kB / 0.6575 GB, free: 6.062 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/1.038, allocations: 7.241 MB / 0.6645 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.039, allocations: 365.2 kB / 0.6649 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009823/1.04, allocations: 35.36 kB / 0.6649 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.042, allocations: 123.8 kB / 0.665 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/1.043, allocations: 117.1 kB / 0.6651 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/1.043, allocations: 56 kB / 0.6652 GB, free: 14.11 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005153/1.048, allocations: 2.637 MB / 0.6678 GB, free: 11.46 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.1e-08/1.048, allocations: 0 / 0.6678 GB, free: 11.46 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006068/1.054, allocations: 1.105 MB / 0.6688 GB, free: 10.36 MB / 494.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 (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.01328/1.067, allocations: 7.89 MB / 0.6766 GB, free: 2.426 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01073/1.078, allocations: 5.824 MB / 0.6822 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/1.078, allocations: 4 kB / 0.6822 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004302/1.082, allocations: 2.062 MB / 0.6843 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004731/1.087, allocations: 0.6045 MB / 0.6848 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09554/1.183, allocations: 49.87 MB / 0.7336 GB, free: 2.613 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005419/1.188, allocations: 3.393 MB / 0.7369 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004577/1.193, allocations: 1.884 MB / 0.7387 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003127/1.196, allocations: 1.979 MB / 0.7406 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of SimCode: time 2.264e-06/1.196, allocations: 0 / 0.7406 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.954/2.15, allocations: 89.03 MB / 0.8276 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.81/28.96, allocations: 11.23 kB / 0.8276 GB, free: 150.9 MB / 0.5606 GB " [Timeout remaining time 631] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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: 33.651013755996246]