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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001387/0.001387, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001817/0.001817, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.7 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0767/0.07789, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01145/0.08938, allocations: 11.77 MB / 369.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1469/0.2363, allocations: 4.335 MB / 373.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.238, allocations: 79.88 kB / 373.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004779/0.2428, allocations: 2.881 MB / 376.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004983/0.2478, allocations: 1.922 MB / 378.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.2504, allocations: 1.044 MB / 379.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008551/0.2589, allocations: 5.599 MB / 385.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004825/0.2638, allocations: 3.978 MB / 389.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003103/0.2669, allocations: 1.691 MB / 390.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002842/0.2698, allocations: 2.29 MB / 393.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007967/0.2706, allocations: 360.7 kB / 393.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.2727, allocations: 1.233 MB / 394.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001439/0.2742, allocations: 2.061 MB / 396.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002256/0.2764, allocations: 2.482 MB / 399.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006964/0.2834, allocations: 7.647 MB / 407 MB, free: 8.078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2834, allocations: 0 / 407 MB, free: 8.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2834, allocations: 0 / 407 MB, free: 8.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001264/0.2836, allocations: 0 / 407 MB, free: 8.078 MB / 318.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.01308/0.2967, allocations: 5.433 MB / 412.4 MB, free: 2.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.2967, allocations: 12.03 kB / 412.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000972/0.2977, allocations: 0.7056 MB / 413.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1756/0.4733, allocations: 12.36 MB / 425.5 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009043/0.4824, allocations: 3.876 MB / 429.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.4826, allocations: 236.1 kB / 429.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.4837, allocations: 327.2 kB / 429.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4987, allocations: 9.715 MB / 439.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001221/0.4988, allocations: 51.5 kB / 439.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003868/0.4992, allocations: 155.5 kB / 439.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/0.5022, allocations: 1.904 MB / 441.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01365/0.5159, allocations: 8.228 MB / 449.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03963/0.5556, allocations: 37.89 MB / 487.8 MB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008025/0.5636, allocations: 3.809 MB / 491.6 MB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00235/0.566, allocations: 2.065 MB / 493.7 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006188/0.5666, allocations: 0.6493 MB / 494.4 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.5667, allocations: 51.5 kB / 494.4 MB, free: 15.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=166): time 4.117e-06/0.5667, allocations: 0 / 494.4 MB, free: 15.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=201): time 0.05427/0.621, allocations: 20.88 MB / 0.5032 GB, free: 10.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.6211, allocations: 260.6 kB / 0.5035 GB, free: 9.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/0.6265, allocations: 4.169 MB / 0.5075 GB, free: 5.543 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002625/0.6268, allocations: 53.7 kB / 0.5076 GB, free: 5.484 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002023/0.6288, allocations: 3.13 MB / 0.5106 GB, free: 2.352 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007615/0.6296, allocations: 0.7636 MB / 0.5114 GB, free: 1.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/0.6312, allocations: 1.177 MB / 0.5125 GB, free: 416 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.6313, allocations: 305.1 kB / 0.5128 GB, free: 108 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003099/0.6344, allocations: 2.268 MB / 0.515 GB, free: 13.83 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004963/0.6394, allocations: 5.743 MB / 0.5206 GB, free: 6.359 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1838/0.8233, allocations: 8.677 MB / 0.5291 GB, free: 133.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001541/0.8235, allocations: 34.56 kB / 0.5292 GB, free: 133.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.02062/0.8441, allocations: 9.558 MB / 0.5385 GB, free: 131.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.215e-05/0.8442, allocations: 56.81 kB / 0.5385 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/0.8444, allocations: 125.4 kB / 0.5387 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006325/0.8507, allocations: 2.079 MB / 0.5407 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003995/0.8548, allocations: 1.258 MB / 0.5419 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01924/0.874, allocations: 17.25 MB / 0.5588 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004996/0.8791, allocations: 340.1 kB / 0.5591 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/0.8802, allocations: 358.2 kB / 0.5594 GB, free: 121.4 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.003759/0.884, allocations: 2.13 MB / 0.5615 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008631/0.8848, allocations: 374.1 kB / 0.5619 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007609/0.8925, allocations: 4.288 MB / 0.566 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.316e-05/0.8925, allocations: 26.95 kB / 0.5661 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.8926, allocations: 7.406 kB / 0.5661 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.75e-05/0.8926, allocations: 8.531 kB / 0.5661 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/0.9081, allocations: 10.04 MB / 0.5759 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.9081, allocations: 0 / 0.5759 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.9093, allocations: 287.6 kB / 0.5762 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003374/0.9127, allocations: 1.355 MB / 0.5775 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/0.9129, allocations: 43.92 kB / 0.5775 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009599/0.9225, allocations: 8.96 MB / 0.5863 GB, free: 98.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.9225, allocations: 11.98 kB / 0.5863 GB, free: 98.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00911/0.9317, allocations: 7.241 MB / 0.5934 GB, free: 91.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008833/0.9326, allocations: 420.2 kB / 0.5938 GB, free: 91.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008554/0.9334, allocations: 35.92 kB / 0.5938 GB, free: 91.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/0.9354, allocations: 123.8 kB / 0.5939 GB, free: 91.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003596/0.9358, allocations: 120.9 kB / 0.594 GB, free: 90.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.936, allocations: 47.98 kB / 0.5941 GB, free: 90.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003781/0.9397, allocations: 2.637 MB / 0.5967 GB, free: 88.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9398, allocations: 3.938 kB / 0.5967 GB, free: 88.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004599/0.9444, allocations: 1.1 MB / 0.5977 GB, free: 87.16 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 (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.009392/0.9538, allocations: 7.909 MB / 0.6055 GB, free: 79.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00917/0.9629, allocations: 7.249 MB / 0.6125 GB, free: 71.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.963, allocations: 0 / 0.6125 GB, free: 71.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00312/0.9661, allocations: 2.229 MB / 0.6147 GB, free: 69.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003872/0.97, allocations: 0.5965 MB / 0.6153 GB, free: 69.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05939/1.029, allocations: 56.35 MB / 0.6703 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002609/1.032, allocations: 3.401 MB / 0.6737 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003741/1.036, allocations: 1.88 MB / 0.6755 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/1.038, allocations: 1.979 MB / 0.6774 GB, free: 13.81 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/1.038, allocations: 0 / 0.6774 GB, free: 13.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.631/3.669, allocations: 86.98 MB / 0.7624 GB, free: 98.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.32/25.99, allocations: 3.953 kB / 0.7624 GB, free: 98.76 MB / 462.1 MB (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 --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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches