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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 110.8 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2991, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01504/0.3142, allocations: 11.9 MB / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.3244, allocations: 4.354 MB / 416.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002027/0.3264, allocations: 75.75 kB / 416.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00555/0.332, allocations: 2.889 MB / 419.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005361/0.3374, allocations: 1.979 MB / 421.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002479/0.3399, allocations: 1.029 MB / 422.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008305/0.3482, allocations: 5.571 MB / 428 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005289/0.3535, allocations: 3.984 MB / 432 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003453/0.357, allocations: 1.717 MB / 433.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00377/0.3608, allocations: 2.313 MB / 436.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008331/0.3616, allocations: 364 kB / 436.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.3643, allocations: 1.248 MB / 437.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002419/0.3668, allocations: 2.108 MB / 439.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003284/0.3701, allocations: 2.537 MB / 442.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.3818, allocations: 8.075 MB / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.3819, allocations: 0 / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3819, allocations: 0 / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002508/0.3822, allocations: 0 / 450.4 MB, free: 6.43 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01947/0.4017, allocations: 5.646 MB / 456 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/0.4017, allocations: 12.02 kB / 456 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001404/0.4031, allocations: 0.7157 MB / 456.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1766/0.5798, allocations: 12.39 MB / 469.2 MB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.5899, allocations: 4.205 MB / 473.4 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.5901, allocations: 238.1 kB / 473.6 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007213/0.5908, allocations: 331.8 kB / 473.9 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01702/0.6079, allocations: 9.893 MB / 483.8 MB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.608, allocations: 51.62 kB / 483.9 MB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004017/0.6084, allocations: 151.9 kB / 484 MB, free: 4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003557/0.612, allocations: 1.959 MB / 486 MB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01626/0.6283, allocations: 8.336 MB / 494.3 MB, free: 9.684 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05186/0.6802, allocations: 38.21 MB / 0.52 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008729/0.689, allocations: 3.825 MB / 0.5238 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/0.6918, allocations: 2.06 MB / 0.5258 GB, free: 12.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007793/0.6926, allocations: 0.6518 MB / 0.5264 GB, free: 11.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.352e-05/0.6927, allocations: 59.42 kB / 0.5265 GB, free: 11.49 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 4.198e-06/0.6927, allocations: 0 / 0.5265 GB, free: 11.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.3211/1.014, allocations: 21.19 MB / 0.5472 GB, free: 126.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/1.014, allocations: 253.2 kB / 0.5474 GB, free: 126.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/1.018, allocations: 4.201 MB / 0.5515 GB, free: 125.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/1.018, allocations: 53.33 kB / 0.5516 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/1.02, allocations: 3.284 MB / 0.5548 GB, free: 123 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005007/1.02, allocations: 0.7985 MB / 0.5555 GB, free: 122.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/1.022, allocations: 1.186 MB / 0.5567 GB, free: 121.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.744e-05/1.022, allocations: 305.1 kB / 0.557 GB, free: 121.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002421/1.024, allocations: 2.279 MB / 0.5592 GB, free: 120.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/1.028, allocations: 5.741 MB / 0.5648 GB, free: 114.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00676/1.034, allocations: 8.684 MB / 0.5733 GB, free: 104.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.936e-05/1.034, allocations: 32 kB / 0.5733 GB, free: 104.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01384/1.048, allocations: 9.581 MB / 0.5827 GB, free: 94.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.186e-05/1.048, allocations: 56 kB / 0.5827 GB, free: 94.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-05/1.049, allocations: 120 kB / 0.5829 GB, free: 94.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005161/1.054, allocations: 2.08 MB / 0.5849 GB, free: 92.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/1.057, allocations: 1.251 MB / 0.5861 GB, free: 91.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/1.074, allocations: 17.25 MB / 0.603 GB, free: 73.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/1.078, allocations: 335.5 kB / 0.6033 GB, free: 73.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000459/1.079, allocations: 353.9 kB / 0.6036 GB, free: 72.87 MB / 462.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.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.002381/1.081, allocations: 2.168 MB / 0.6057 GB, free: 70.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005466/1.082, allocations: 401.3 kB / 0.6061 GB, free: 70.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006427/1.088, allocations: 4.294 MB / 0.6103 GB, free: 65.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/1.088, allocations: 24 kB / 0.6103 GB, free: 65.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/1.088, allocations: 8 kB / 0.6103 GB, free: 65.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/1.088, allocations: 7.969 kB / 0.6103 GB, free: 65.94 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/1.101, allocations: 10.06 MB / 0.6202 GB, free: 55.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/1.101, allocations: 16 kB / 0.6202 GB, free: 55.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/1.102, allocations: 279.6 kB / 0.6204 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003275/1.106, allocations: 1.359 MB / 0.6218 GB, free: 54.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/1.106, allocations: 28 kB / 0.6218 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009426/1.115, allocations: 8.975 MB / 0.6306 GB, free: 45.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.115, allocations: 7.938 kB / 0.6306 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008935/1.124, allocations: 7.272 MB / 0.6377 GB, free: 37.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/1.125, allocations: 438.3 kB / 0.6381 GB, free: 37.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004189/1.126, allocations: 35.94 kB / 0.6381 GB, free: 37.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.127, allocations: 119.8 kB / 0.6382 GB, free: 37.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/1.127, allocations: 121.1 kB / 0.6384 GB, free: 37.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.128, allocations: 48 kB / 0.6384 GB, free: 36.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00285/1.13, allocations: 2.645 MB / 0.641 GB, free: 34.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.13, allocations: 288 / 0.641 GB, free: 34.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004239/1.135, allocations: 1.121 MB / 0.6421 GB, free: 33.21 MB / 462.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.008905/1.144, allocations: 7.936 MB / 0.6498 GB, free: 25.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007195/1.151, allocations: 6.055 MB / 0.6557 GB, free: 19.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.151, allocations: 11.94 kB / 0.6558 GB, free: 19.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003017/1.154, allocations: 2.214 MB / 0.6579 GB, free: 16.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/1.157, allocations: 0.606 MB / 0.6585 GB, free: 16.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07538/1.232, allocations: 50.04 MB / 0.7074 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004129/1.236, allocations: 3.438 MB / 0.7107 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004283/1.241, allocations: 1.884 MB / 0.7126 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002762/1.244, allocations: 2.018 MB / 0.7145 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of SimCode: time 7.01e-07/1.244, allocations: 0 / 0.7145 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3217/1.565, allocations: 83.93 MB / 0.7965 GB, free: 126.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.36/27.93, allocations: 10.89 kB / 0.7965 GB, free: 126.6 MB / 0.5137 GB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches