Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_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.001724/0.001724, allocations: 96.39 kB / 17.58 MB, free: 5.418 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.001912/0.001912, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.35/2.35, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 55.92 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.12, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.02236/0.1424, allocations: 12.33 MB / 339.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.157, allocations: 4.43 MB / 344.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.1603, allocations: 83.75 kB / 344.2 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008953/0.1692, allocations: 2.904 MB / 347.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008077/0.1774, allocations: 2.027 MB / 349.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004272/0.1817, allocations: 1.045 MB / 350.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.1932, allocations: 5.346 MB / 355.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008887/0.2021, allocations: 4.051 MB / 359.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004812/0.207, allocations: 1.752 MB / 361.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005513/0.2126, allocations: 2.391 MB / 363.7 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002012/0.2146, allocations: 384 kB / 364.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005314/0.22, allocations: 1.264 MB / 365.4 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004571/0.2246, allocations: 2.178 MB / 367.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006811/0.2314, allocations: 2.614 MB / 370.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.2458, allocations: 8.093 MB / 378.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.2459, allocations: 0 / 378.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.2459, allocations: 0 / 378.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003087/0.2462, allocations: 0 / 378.3 MB, free: 1.262 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: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.2739/0.5202, allocations: 5.651 MB / 383.9 MB, free: 49.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.327e-05/0.5203, allocations: 9.594 kB / 383.9 MB, free: 49.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003209/0.5235, allocations: 0.7419 MB / 384.7 MB, free: 49.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2734/0.797, allocations: 12.39 MB / 397.1 MB, free: 44.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.8111, allocations: 4.474 MB / 401.5 MB, free: 39.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.8115, allocations: 245.1 kB / 401.8 MB, free: 39.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001761/0.8132, allocations: 339.3 kB / 402.1 MB, free: 39.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02582/0.8391, allocations: 10.22 MB / 412.3 MB, free: 28.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003218/0.8395, allocations: 47.59 kB / 412.4 MB, free: 28.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00178/0.8413, allocations: 155.8 kB / 412.5 MB, free: 28.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005339/0.8466, allocations: 2.03 MB / 414.6 MB, free: 26.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02542/0.8721, allocations: 8.649 MB / 423.2 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08063/0.9528, allocations: 39.33 MB / 462.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0158/0.9687, allocations: 3.94 MB / 466.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004989/0.9737, allocations: 2.107 MB / 468.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001211/0.975, allocations: 0.6478 MB / 469.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.655e-05/0.9751, allocations: 63.44 kB / 469.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=175): time 1.188e-05/0.9751, allocations: 0 / 469.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.109/1.084, allocations: 21.09 MB / 490.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003141/1.085, allocations: 248.6 kB / 490.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01366/1.098, allocations: 4.291 MB / 494.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007442/1.099, allocations: 57.7 kB / 495 MB, free: 8.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005111/1.104, allocations: 3.238 MB / 498.2 MB, free: 4.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002495/1.107, allocations: 0.8021 MB / 499 MB, free: 4.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006622/1.113, allocations: 1.214 MB / 0.4885 GB, free: 2.836 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/1.114, allocations: 301.1 kB / 0.4888 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007208/1.121, allocations: 2.346 MB / 0.4911 GB, free: 192 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01236/1.133, allocations: 5.885 MB / 0.4968 GB, free: 8.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01942/1.153, allocations: 8.915 MB / 0.5055 GB, free: 13.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001781/1.153, allocations: 37.31 kB / 0.5056 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.03612/1.189, allocations: 9.767 MB / 0.5151 GB, free: 4.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002267/1.19, allocations: 60 kB / 0.5152 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003181/1.19, allocations: 124 kB / 0.5153 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01137/1.201, allocations: 2.107 MB / 0.5173 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007934/1.209, allocations: 1.287 MB / 0.5186 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3239/1.533, allocations: 17.17 MB / 0.5354 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009253/1.543, allocations: 352.2 kB / 0.5357 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/1.545, allocations: 361.3 kB / 0.536 GB, free: 138.6 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (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 (693): * Single equations (assignments): 687 * 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 {(3,35,88.9%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.008922/1.554, allocations: 2.222 MB / 0.5382 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002081/1.556, allocations: 391.7 kB / 0.5386 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01744/1.573, allocations: 4.415 MB / 0.5429 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.825e-05/1.574, allocations: 25.95 kB / 0.5429 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.994e-05/1.574, allocations: 10.98 kB / 0.5429 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.203e-05/1.574, allocations: 8.766 kB / 0.5429 GB, free: 137.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03337/1.607, allocations: 10.39 MB / 0.5531 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.882e-05/1.607, allocations: 0 / 0.5531 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002518/1.61, allocations: 300.5 kB / 0.5534 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00627/1.616, allocations: 1.364 MB / 0.5547 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004087/1.616, allocations: 39.05 kB / 0.5547 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/1.635, allocations: 8.972 MB / 0.5635 GB, free: 129.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/1.635, allocations: 2.906 kB / 0.5635 GB, free: 129.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01897/1.654, allocations: 7.427 MB / 0.5708 GB, free: 124.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002958/1.657, allocations: 0.7517 MB / 0.5715 GB, free: 124.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.659, allocations: 39.78 kB / 0.5715 GB, free: 124.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003626/1.663, allocations: 119.8 kB / 0.5716 GB, free: 124 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007365/1.663, allocations: 121.1 kB / 0.5718 GB, free: 123.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003327/1.664, allocations: 55.67 kB / 0.5718 GB, free: 123.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0069/1.671, allocations: 2.721 MB / 0.5745 GB, free: 121.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.671, allocations: 3.625 kB / 0.5745 GB, free: 121.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01025/1.681, allocations: 1.148 MB / 0.5756 GB, free: 120 MB / 430.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 (157): * Single equations (assignments): 153 * 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.01897/1.7, allocations: 8.08 MB / 0.5835 GB, free: 111.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.019/1.719, allocations: 7.583 MB / 0.5909 GB, free: 104.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.719, allocations: 3 kB / 0.5909 GB, free: 104.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006751/1.726, allocations: 2.271 MB / 0.5931 GB, free: 102.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007132/1.733, allocations: 0.5809 MB / 0.5937 GB, free: 101.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1261/1.859, allocations: 58.49 MB / 0.6508 GB, free: 35.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008006/1.867, allocations: 3.535 MB / 0.6543 GB, free: 31.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.009729/1.877, allocations: 1.924 MB / 0.6561 GB, free: 29.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006062/1.883, allocations: 2.096 MB / 0.6582 GB, free: 27.67 MB / 430.1 MB Notification: Performance of SimCode: time 2.985e-06/1.883, allocations: 0 / 0.6582 GB, free: 27.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5776/2.461, allocations: 89.42 MB / 0.7455 GB, free: 125.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.45/25.91, allocations: 7.25 kB / 0.7455 GB, free: 125.7 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches