Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 100.7 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.95 kB / 306.6 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.08909, allocations: 50.53 MB / 357.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1819/0.271, allocations: 38.15 MB / 395.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.2881, allocations: 8.468 MB / 403.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007378/0.2955, allocations: 167 kB / 403.9 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004417/0.2999, allocations: 2.114 MB / 406 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004701/0.3047, allocations: 1.695 MB / 407.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.3064, allocations: 0.7043 MB / 408.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007088/0.3135, allocations: 5.647 MB / 414 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004041/0.3176, allocations: 3.039 MB / 417.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.3201, allocations: 1.507 MB / 418.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.3231, allocations: 2.267 MB / 420.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008119/0.3239, allocations: 300 kB / 421.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002369/0.3263, allocations: 1.198 MB / 422.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002134/0.3284, allocations: 1.847 MB / 424.2 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003041/0.3315, allocations: 2.214 MB / 426.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006503/0.338, allocations: 6.8 MB / 433.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.338, allocations: 0 / 433.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.338, allocations: 0 / 433.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.403e-05/0.3381, allocations: 0 / 433.2 MB, free: 15.32 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01054/0.3487, allocations: 4.921 MB / 438.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3487, allocations: 8.031 kB / 438.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006851/0.3494, allocations: 0.6245 MB / 438.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1533/0.5027, allocations: 12.27 MB / 451 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008262/0.5111, allocations: 3.644 MB / 454.7 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.5113, allocations: 201 kB / 454.9 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009621/0.5122, allocations: 271.8 kB / 455.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.5263, allocations: 8.722 MB / 463.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001498/0.5265, allocations: 51.48 kB / 463.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006964/0.5272, allocations: 127.9 kB / 464 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/0.53, allocations: 1.766 MB / 465.8 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/0.5429, allocations: 7.53 MB / 473.3 MB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03948/0.5824, allocations: 35.49 MB / 0.4969 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007659/0.5901, allocations: 3.697 MB / 0.5005 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/0.5925, allocations: 2.029 MB / 0.5025 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004019/0.5929, allocations: 336 kB / 0.5028 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.593, allocations: 47.5 kB / 0.5028 GB, free: 11.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 3.857e-06/0.593, allocations: 0 / 0.5028 GB, free: 11.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05443/0.6474, allocations: 20.03 MB / 0.5224 GB, free: 7.328 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001682/0.6476, allocations: 260.8 kB / 0.5226 GB, free: 7.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006499/0.6542, allocations: 3.934 MB / 0.5265 GB, free: 3.105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003981/0.6546, allocations: 57.64 kB / 0.5265 GB, free: 3.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/0.6568, allocations: 2.815 MB / 0.5293 GB, free: 196 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1545/0.8113, allocations: 0.7104 MB / 0.53 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001846/0.8132, allocations: 1.109 MB / 0.5311 GB, free: 146.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.271e-05/0.8132, allocations: 302.8 kB / 0.5314 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003188/0.8164, allocations: 2.164 MB / 0.5335 GB, free: 146.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003938/0.8204, allocations: 5.406 MB / 0.5387 GB, free: 141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007498/0.8279, allocations: 8.199 MB / 0.5467 GB, free: 134.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.642e-05/0.828, allocations: 32.5 kB / 0.5468 GB, free: 134.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0135/0.8415, allocations: 8.644 MB / 0.5552 GB, free: 131.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.8416, allocations: 60.47 kB / 0.5553 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.8417, allocations: 112.3 kB / 0.5554 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003558/0.8453, allocations: 1.504 MB / 0.5569 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003211/0.8485, allocations: 1.226 MB / 0.5581 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.8587, allocations: 9.95 MB / 0.5678 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003641/0.8624, allocations: 313.9 kB / 0.5681 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/0.8628, allocations: 334.9 kB / 0.5684 GB, free: 125.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (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 (650): * Single equations (assignments): 646 * 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 {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002106/0.8649, allocations: 1.943 MB / 0.5703 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004106/0.8653, allocations: 349.1 kB / 0.5706 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006025/0.8713, allocations: 4.157 MB / 0.5747 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.323e-05/0.8714, allocations: 23.94 kB / 0.5747 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.8714, allocations: 8 kB / 0.5747 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.8714, allocations: 7.969 kB / 0.5747 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.8834, allocations: 9.301 MB / 0.5838 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-06/0.8835, allocations: 0 / 0.5838 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.8846, allocations: 275.7 kB / 0.5841 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003184/0.8878, allocations: 1.347 MB / 0.5854 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.8879, allocations: 39.98 kB / 0.5854 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009014/0.8969, allocations: 8.938 MB / 0.5941 GB, free: 99.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.897, allocations: 4 kB / 0.5941 GB, free: 99.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008377/0.9053, allocations: 7.037 MB / 0.601 GB, free: 92.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007302/0.9061, allocations: 408.4 kB / 0.6014 GB, free: 91.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/0.9065, allocations: 28 kB / 0.6014 GB, free: 91.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/0.9079, allocations: 119.8 kB / 0.6016 GB, free: 91.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000309/0.9082, allocations: 119.1 kB / 0.6017 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.9084, allocations: 51.28 kB / 0.6017 GB, free: 91.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002633/0.911, allocations: 2.497 MB / 0.6042 GB, free: 88.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.911, allocations: 0 / 0.6042 GB, free: 88.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003746/0.9148, allocations: 0.9934 MB / 0.6051 GB, free: 87.9 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 (136): * Single equations (assignments): 132 * 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008564/0.9233, allocations: 7.685 MB / 0.6126 GB, free: 80.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008248/0.9316, allocations: 6.435 MB / 0.6189 GB, free: 73.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.9316, allocations: 3.938 kB / 0.6189 GB, free: 73.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.9343, allocations: 2.075 MB / 0.6209 GB, free: 71.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.9369, allocations: 0.4905 MB / 0.6214 GB, free: 71.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/0.9949, allocations: 53.1 MB / 0.6733 GB, free: 11.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002332/0.9972, allocations: 3.091 MB / 0.6763 GB, free: 7.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003568/1.001, allocations: 1.827 MB / 0.6781 GB, free: 6.086 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/1.002, allocations: 1.749 MB / 0.6798 GB, free: 4.336 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/1.002, allocations: 0 / 0.6798 GB, free: 4.336 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5066/1.509, allocations: 77.76 MB / 0.7557 GB, free: 116.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/1.509, allocations: 234.2 kB / 0.7559 GB, free: 115.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.93/5.44, allocations: 5.406 kB / 0.7559 GB, free: 115.9 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches