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.001139/0.001139, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001081/0.001081, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001349/0.001349, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09281, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.217/0.3098, allocations: 12.33 MB / 387 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.3206, allocations: 4.44 MB / 391.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003083/0.3238, allocations: 82.75 kB / 391.5 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005994/0.3298, allocations: 2.901 MB / 394.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006369/0.3362, allocations: 2.086 MB / 396.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.3392, allocations: 1.041 MB / 397.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009507/0.3487, allocations: 5.331 MB / 402.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007355/0.3561, allocations: 4.056 MB / 406.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004375/0.3606, allocations: 1.77 MB / 408.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004874/0.3655, allocations: 2.396 MB / 411.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001877/0.3674, allocations: 383 kB / 411.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004102/0.3715, allocations: 1.253 MB / 412.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004099/0.3757, allocations: 2.208 MB / 414.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006689/0.3824, allocations: 2.626 MB / 417.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.3955, allocations: 8.369 MB / 425.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3955, allocations: 4 kB / 425.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3955, allocations: 0 / 425.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003078/0.3958, allocations: 0 / 425.9 MB, free: 12.62 MB / 350.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.01811/0.414, allocations: 5.794 MB / 431.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.4141, allocations: 12.03 kB / 431.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002301/0.4164, allocations: 0.7403 MB / 432.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1742/0.5906, allocations: 12.42 MB / 444.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.602, allocations: 4.553 MB / 449.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/0.6023, allocations: 250.2 kB / 449.7 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/0.6037, allocations: 343.8 kB / 450 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/0.6226, allocations: 10.22 MB / 460.2 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.6228, allocations: 47.59 kB / 460.3 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005633/0.6234, allocations: 159.8 kB / 460.4 MB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003605/0.627, allocations: 2.03 MB / 462.5 MB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/0.6442, allocations: 8.642 MB / 471.1 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05351/0.6977, allocations: 39.22 MB / 0.4984 GB, free: 6.227 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009571/0.7073, allocations: 3.932 MB / 0.5022 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002976/0.7104, allocations: 2.107 MB / 0.5043 GB, free: 28 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008635/0.7113, allocations: 0.6516 MB / 0.5049 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.565e-05/0.7114, allocations: 59.5 kB / 0.5049 GB, free: 15.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 5.901e-06/0.7114, allocations: 0 / 0.5049 GB, free: 15.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=210): time 0.0629/0.7743, allocations: 21.34 MB / 0.5258 GB, free: 9.773 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.7745, allocations: 260.6 kB / 0.526 GB, free: 9.465 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006939/0.7814, allocations: 4.296 MB / 0.5302 GB, free: 5.145 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004938/0.7819, allocations: 57.7 kB / 0.5303 GB, free: 5.082 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002625/0.7846, allocations: 3.365 MB / 0.5336 GB, free: 1.684 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/0.7857, allocations: 0.8255 MB / 0.5344 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001977/0.7877, allocations: 1.226 MB / 0.5356 GB, free: 15.61 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.7878, allocations: 305.1 kB / 0.5359 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0038/0.7916, allocations: 2.338 MB / 0.5382 GB, free: 12.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006343/0.798, allocations: 5.893 MB / 0.5439 GB, free: 5.312 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2358/1.034, allocations: 8.897 MB / 0.5526 GB, free: 140.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001705/1.034, allocations: 37.28 kB / 0.5526 GB, free: 140.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.02335/1.057, allocations: 9.789 MB / 0.5622 GB, free: 137.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.058, allocations: 58.97 kB / 0.5622 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001956/1.058, allocations: 125.3 kB / 0.5624 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006927/1.065, allocations: 2.086 MB / 0.5644 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004583/1.069, allocations: 1.3 MB / 0.5657 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/1.091, allocations: 17.18 MB / 0.5825 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005965/1.097, allocations: 351.7 kB / 0.5828 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/1.098, allocations: 366.3 kB / 0.5831 GB, free: 127.7 MB / 478.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.004155/1.102, allocations: 2.228 MB / 0.5853 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008776/1.103, allocations: 408.7 kB / 0.5857 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007651/1.111, allocations: 4.412 MB / 0.59 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/1.111, allocations: 31.62 kB / 0.59 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/1.111, allocations: 15.59 kB / 0.5901 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.303e-05/1.111, allocations: 11.73 kB / 0.5901 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/1.129, allocations: 10.32 MB / 0.6001 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/1.129, allocations: 7.938 kB / 0.6002 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/1.131, allocations: 311.6 kB / 0.6005 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003566/1.134, allocations: 1.351 MB / 0.6018 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/1.134, allocations: 39.75 kB / 0.6018 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/1.145, allocations: 8.979 MB / 0.6106 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.145, allocations: 0 / 0.6106 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.155, allocations: 7.454 MB / 0.6179 GB, free: 98.71 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002235/1.157, allocations: 0.7646 MB / 0.6186 GB, free: 97.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009166/1.158, allocations: 35.94 kB / 0.6186 GB, free: 97.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002077/1.16, allocations: 128 kB / 0.6188 GB, free: 97.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/1.161, allocations: 122.8 kB / 0.6189 GB, free: 97.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.161, allocations: 59.14 kB / 0.6189 GB, free: 97.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004314/1.165, allocations: 2.718 MB / 0.6216 GB, free: 94.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.31e-07/1.165, allocations: 0 / 0.6216 GB, free: 94.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006316/1.172, allocations: 1.149 MB / 0.6227 GB, free: 93.73 MB / 478.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.01081/1.183, allocations: 8.108 MB / 0.6306 GB, free: 85.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008556/1.191, allocations: 6.228 MB / 0.6367 GB, free: 79.35 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.191, allocations: 3.062 kB / 0.6367 GB, free: 79.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/1.195, allocations: 2.272 MB / 0.6389 GB, free: 77.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004196/1.199, allocations: 0.6057 MB / 0.6395 GB, free: 76.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07746/1.277, allocations: 51.48 MB / 0.6898 GB, free: 19.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004439/1.281, allocations: 3.532 MB / 0.6932 GB, free: 15.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00439/1.286, allocations: 1.925 MB / 0.6951 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003022/1.289, allocations: 2.089 MB / 0.6972 GB, free: 11.86 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/1.289, allocations: 0 / 0.6972 GB, free: 11.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3735/1.662, allocations: 85.81 MB / 0.781 GB, free: 150.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21/22.66, allocations: 4.938 kB / 0.781 GB, free: 150.8 MB / 0.4981 GB (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