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.001196/0.001196, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001142/0.001142, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.251/1.251, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 54.36 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08907/0.09013, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.015/0.1052, allocations: 11.91 MB / 362.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009355/0.1146, allocations: 4.351 MB / 366.4 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.1165, allocations: 83.69 kB / 366.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005458/0.122, allocations: 2.889 MB / 369.4 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1336/0.2556, allocations: 1.965 MB / 371.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.2575, allocations: 1.041 MB / 372.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005407/0.2629, allocations: 5.555 MB / 378 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003261/0.2662, allocations: 4 MB / 382 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.2678, allocations: 1.705 MB / 383.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00186/0.2697, allocations: 2.312 MB / 386 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005014/0.2702, allocations: 366.4 kB / 386.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.2718, allocations: 1.251 MB / 387.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001215/0.273, allocations: 2.118 MB / 389.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.2745, allocations: 2.532 MB / 392.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004187/0.2787, allocations: 7.814 MB / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2787, allocations: 0 / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2787, allocations: 4 kB / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.675e-05/0.2788, allocations: 0 / 400 MB, free: 15.58 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01003/0.2888, allocations: 5.486 MB / 405.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2889, allocations: 12.03 kB / 405.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007108/0.2896, allocations: 0.7241 MB / 406.3 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1647/0.4543, allocations: 12.36 MB / 418.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009675/0.464, allocations: 4.106 MB / 422.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.4643, allocations: 242.5 kB / 423 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4654, allocations: 331.7 kB / 423.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.4796, allocations: 9.9 MB / 433.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/0.4797, allocations: 51.58 kB / 433.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003824/0.4801, allocations: 151.4 kB / 433.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003113/0.4832, allocations: 1.953 MB / 435.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01311/0.4964, allocations: 8.338 MB / 443.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03692/0.5333, allocations: 38.32 MB / 482 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007594/0.5409, allocations: 3.829 MB / 485.8 MB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002276/0.5432, allocations: 2.063 MB / 487.9 MB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000645/0.5439, allocations: 0.6521 MB / 488.5 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.5439, allocations: 51.5 kB / 488.6 MB, free: 5.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=166): time 3.627e-06/0.5439, allocations: 0 / 488.6 MB, free: 5.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=201): time 0.05518/0.5991, allocations: 20.95 MB / 0.4976 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.5993, allocations: 256.5 kB / 0.4979 GB, free: 336 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005196/0.6045, allocations: 4.193 MB / 0.5019 GB, free: 12.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002047/0.6047, allocations: 53.45 kB / 0.502 GB, free: 12.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.6068, allocations: 3.163 MB / 0.5051 GB, free: 8.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006914/0.6075, allocations: 0.7665 MB / 0.5058 GB, free: 8.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/0.6089, allocations: 1.174 MB / 0.507 GB, free: 6.953 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.135e-05/0.609, allocations: 301.1 kB / 0.5073 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002966/0.6119, allocations: 2.276 MB / 0.5095 GB, free: 4.375 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005169/0.6171, allocations: 5.744 MB / 0.5151 GB, free: 12.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009027/0.6261, allocations: 8.681 MB / 0.5236 GB, free: 2.555 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-05/0.6262, allocations: 32 kB / 0.5236 GB, free: 2.523 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.1536/0.7798, allocations: 9.554 MB / 0.5329 GB, free: 142 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.7799, allocations: 54.47 kB / 0.533 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.78, allocations: 121.5 kB / 0.5331 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005949/0.786, allocations: 2.08 MB / 0.5351 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003532/0.7895, allocations: 1.249 MB / 0.5364 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01859/0.8081, allocations: 17.26 MB / 0.5532 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/0.8125, allocations: 340.3 kB / 0.5535 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005443/0.8131, allocations: 352.3 kB / 0.5539 GB, free: 132.2 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.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.002682/0.8158, allocations: 2.161 MB / 0.556 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006377/0.8164, allocations: 387.3 kB / 0.5564 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006642/0.8231, allocations: 4.285 MB / 0.5605 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/0.8231, allocations: 24.67 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.8231, allocations: 10.84 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.8231, allocations: 11.75 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/0.836, allocations: 10.11 MB / 0.5705 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.836, allocations: 0 / 0.5705 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/0.8372, allocations: 287.5 kB / 0.5707 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/0.8405, allocations: 1.36 MB / 0.5721 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.8406, allocations: 35.98 kB / 0.5721 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00937/0.85, allocations: 8.975 MB / 0.5809 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.85, allocations: 4 kB / 0.5809 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008753/0.8588, allocations: 7.243 MB / 0.5879 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007369/0.8595, allocations: 424.2 kB / 0.5883 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004193/0.86, allocations: 40 kB / 0.5884 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.8615, allocations: 123.8 kB / 0.5885 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/0.8618, allocations: 117.1 kB / 0.5886 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.8619, allocations: 55.42 kB / 0.5887 GB, free: 102.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002842/0.8648, allocations: 2.641 MB / 0.5912 GB, free: 99.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8648, allocations: 0 / 0.5912 GB, free: 99.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00561/0.8704, allocations: 1.127 MB / 0.5923 GB, free: 98.71 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.009242/0.8797, allocations: 7.898 MB / 0.6001 GB, free: 90.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008684/0.8884, allocations: 7.257 MB / 0.6071 GB, free: 83.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.8884, allocations: 0 / 0.6071 GB, free: 83.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00301/0.8914, allocations: 2.218 MB / 0.6093 GB, free: 81.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.8942, allocations: 0.6078 MB / 0.6099 GB, free: 80.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05761/0.9518, allocations: 56.59 MB / 0.6652 GB, free: 16.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002929/0.9548, allocations: 3.438 MB / 0.6685 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003743/0.9586, allocations: 1.881 MB / 0.6704 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/0.9604, allocations: 2.014 MB / 0.6723 GB, free: 9.082 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9604, allocations: 0 / 0.6723 GB, free: 9.082 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.018/1.978, allocations: 87.44 MB / 0.7577 GB, free: 115.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/16.68, allocations: 18.3 kB / 0.7577 GB, free: 115.5 MB / 462.1 MB (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