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.001275/0.001275, allocations: 100.4 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.001141/0.001141, allocations: 192.1 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 1.316/1.316, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001239/0.001239, allocations: 51.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07439/0.07564, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01389/0.08956, allocations: 12.33 MB / 339.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009774/0.09939, allocations: 4.434 MB / 344.1 MB, free: 3.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002551/0.102, allocations: 83.69 kB / 344.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005786/0.1078, allocations: 2.904 MB / 347.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005616/0.1135, allocations: 2.023 MB / 349.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002662/0.1161, allocations: 1.056 MB / 350.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008245/0.1244, allocations: 5.335 MB / 355.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006251/0.1307, allocations: 4.047 MB / 359.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00358/0.1343, allocations: 1.756 MB / 361.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004108/0.1384, allocations: 2.399 MB / 363.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.1396, allocations: 384 kB / 364.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003161/0.1428, allocations: 1.256 MB / 365.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002861/0.1457, allocations: 2.174 MB / 367.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00448/0.1502, allocations: 2.622 MB / 370.2 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009255/0.1594, allocations: 8.085 MB / 378.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1595, allocations: 4 kB / 378.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.586e-06/0.1595, allocations: 4 kB / 378.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002969/0.1598, allocations: 0 / 378.3 MB, free: 1.238 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.2076/0.3674, allocations: 5.651 MB / 383.9 MB, free: 49.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.3674, allocations: 9.75 kB / 383.9 MB, free: 49.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001512/0.3689, allocations: 0.7452 MB / 384.7 MB, free: 49.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1653/0.5343, allocations: 12.38 MB / 397.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009651/0.544, allocations: 4.469 MB / 401.5 MB, free: 39.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.5442, allocations: 248 kB / 401.8 MB, free: 39.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007121/0.5449, allocations: 330.7 kB / 402.1 MB, free: 39.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.5586, allocations: 10.23 MB / 412.3 MB, free: 28.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/0.5588, allocations: 51.59 kB / 412.4 MB, free: 28.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003671/0.5591, allocations: 151.9 kB / 412.5 MB, free: 28.15 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002837/0.562, allocations: 2.033 MB / 414.6 MB, free: 26.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.5751, allocations: 8.642 MB / 423.2 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04702/0.6221, allocations: 39.33 MB / 462.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009193/0.6314, allocations: 3.948 MB / 466.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003044/0.6345, allocations: 2.103 MB / 468.6 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008322/0.6353, allocations: 0.6478 MB / 469.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/0.6355, allocations: 63.42 kB / 469.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=175): time 5.21e-06/0.6355, allocations: 0 / 469.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.06602/0.7015, allocations: 21.08 MB / 490.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.7017, allocations: 256.6 kB / 490.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/0.7083, allocations: 4.291 MB / 494.9 MB, free: 8.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002578/0.7086, allocations: 57.7 kB / 495 MB, free: 8.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/0.7107, allocations: 3.238 MB / 498.2 MB, free: 4.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008156/0.7116, allocations: 0.7982 MB / 499 MB, free: 4.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/0.7133, allocations: 1.222 MB / 0.4885 GB, free: 2.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.233e-05/0.7134, allocations: 301.1 kB / 0.4888 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003323/0.7167, allocations: 2.338 MB / 0.4911 GB, free: 184 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005582/0.7223, allocations: 5.881 MB / 0.4968 GB, free: 8.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00984/0.7322, allocations: 8.919 MB / 0.5055 GB, free: 13.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.623e-05/0.7323, 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.01736/0.7497, allocations: 9.77 MB / 0.5151 GB, free: 4.051 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.222e-05/0.7498, allocations: 56 kB / 0.5152 GB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001374/0.7499, allocations: 124 kB / 0.5153 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00604/0.756, allocations: 2.104 MB / 0.5173 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0039/0.7599, allocations: 1.294 MB / 0.5186 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1726/0.9325, allocations: 17.17 MB / 0.5354 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005907/0.9384, allocations: 346 kB / 0.5357 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/0.94, allocations: 367.8 kB / 0.536 GB, free: 138.4 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.005299/0.9453, allocations: 2.223 MB / 0.5382 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001279/0.9466, allocations: 387.5 kB / 0.5386 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009175/0.9558, allocations: 4.423 MB / 0.5429 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.793e-05/0.9559, allocations: 22.56 kB / 0.5429 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.722e-05/0.956, allocations: 10.89 kB / 0.5429 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.076e-05/0.956, allocations: 9.984 kB / 0.5429 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01851/0.9745, allocations: 10.39 MB / 0.5531 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.9746, allocations: 0 / 0.5531 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.976, allocations: 303.9 kB / 0.5534 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003683/0.9797, allocations: 1.359 MB / 0.5547 GB, free: 133.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.98, allocations: 35.75 kB / 0.5547 GB, free: 133.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.9912, allocations: 8.982 MB / 0.5635 GB, free: 129.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.9912, allocations: 0 / 0.5635 GB, free: 129.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/1.002, allocations: 7.429 MB / 0.5708 GB, free: 124.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/1.004, allocations: 0.7505 MB / 0.5715 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007003/1.005, allocations: 32 kB / 0.5715 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/1.007, allocations: 127.8 kB / 0.5716 GB, free: 124 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003814/1.007, allocations: 123.9 kB / 0.5718 GB, free: 123.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/1.007, allocations: 55.83 kB / 0.5718 GB, free: 123.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003842/1.011, allocations: 2.718 MB / 0.5745 GB, free: 121.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.011, allocations: 0 / 0.5745 GB, free: 121.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006062/1.017, allocations: 1.148 MB / 0.5756 GB, free: 119.9 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.01018/1.027, allocations: 8.092 MB / 0.5835 GB, free: 111.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01063/1.038, allocations: 7.572 MB / 0.5909 GB, free: 104.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.038, allocations: 0 / 0.5909 GB, free: 104.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/1.042, allocations: 2.27 MB / 0.5931 GB, free: 102 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/1.045, allocations: 0.5909 MB / 0.5937 GB, free: 101.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08606/1.131, allocations: 58.49 MB / 0.6508 GB, free: 35.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005268/1.136, allocations: 3.531 MB / 0.6543 GB, free: 31.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005356/1.142, allocations: 1.928 MB / 0.6561 GB, free: 29.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/1.145, allocations: 2.089 MB / 0.6582 GB, free: 27.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.413e-06/1.145, allocations: 0 / 0.6582 GB, free: 27.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.295/1.44, allocations: 89.42 MB / 0.7455 GB, free: 125.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.89, allocations: 7.25 kB / 0.7455 GB, free: 125.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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