Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 91.36 kB / 16.65 MB, free: 6.234 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.001306/0.001306, allocations: 177.5 kB / 17.56 MB, free: 5.848 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.407/1.407, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002916, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1021, allocations: 50.41 MB / 352 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2369/0.3391, allocations: 37.31 MB / 389.3 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.3605, allocations: 8.593 MB / 397.9 MB, free: 404 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008852/0.3694, allocations: 167.8 kB / 398 MB, free: 376 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.3712, allocations: 399 kB / 398.4 MB, free: 216 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005805/0.377, allocations: 1.74 MB / 400.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.379, allocations: 0.6896 MB / 400.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.3895, allocations: 7.207 MB / 408 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008206/0.3977, allocations: 3.872 MB / 411.9 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.4012, allocations: 1.14 MB / 413.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004003/0.4052, allocations: 1.982 MB / 415 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001152/0.4064, allocations: 128 kB / 415.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.4097, allocations: 1.084 MB / 416.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002572/0.4123, allocations: 1.679 MB / 417.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003669/0.4159, allocations: 1.978 MB / 419.9 MB, free: 52 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008692/0.4247, allocations: 6.556 MB / 426.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.4247, allocations: 0 / 426.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4247, allocations: 0 / 426.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002528/0.425, allocations: 0 / 426.5 MB, free: 9.469 MB / 334.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.01202/0.437, allocations: 4.102 MB / 430.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.4371, allocations: 8.031 kB / 430.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002013/0.4391, allocations: 0.6245 MB / 431.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.173/0.6121, allocations: 12.61 MB / 443.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008086/0.6202, allocations: 3.851 MB / 447.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.6204, allocations: 201 kB / 447.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009042/0.6213, allocations: 271.8 kB / 448.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/0.6356, allocations: 8.746 MB / 456.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001604/0.6358, allocations: 47.55 kB / 456.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000561/0.6364, allocations: 127.9 kB / 457 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.6394, allocations: 1.778 MB / 458.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/0.6533, allocations: 7.542 MB / 466.4 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04646/0.6998, allocations: 35.54 MB / 0.4901 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008276/0.7081, allocations: 3.694 MB / 0.4937 GB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002572/0.7107, allocations: 2.029 MB / 0.4957 GB, free: 6.266 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004552/0.7112, allocations: 332.1 kB / 0.496 GB, free: 5.887 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.7112, allocations: 51.61 kB / 0.4961 GB, free: 5.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.491e-06/0.7112, allocations: 3.984 kB / 0.4961 GB, free: 5.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05519/0.7664, allocations: 20.03 MB / 0.5156 GB, free: 1.664 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.7666, allocations: 252.6 kB / 0.5159 GB, free: 1.363 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006444/0.7731, allocations: 3.946 MB / 0.5197 GB, free: 13.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003161/0.7734, allocations: 53.7 kB / 0.5198 GB, free: 13.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002183/0.7756, allocations: 2.811 MB / 0.5225 GB, free: 10.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009522/0.7765, allocations: 0.7289 MB / 0.5233 GB, free: 9.742 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008725/0.7774, allocations: 466 kB / 0.5237 GB, free: 9.281 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7776, allocations: 301.1 kB / 0.524 GB, free: 8.984 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003572/0.7811, allocations: 2.166 MB / 0.5261 GB, free: 6.812 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2118/0.993, allocations: 5.397 MB / 0.5314 GB, free: 145.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009366/1.002, allocations: 8.2 MB / 0.5394 GB, free: 140.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.413e-05/1.003, allocations: 36 kB / 0.5394 GB, free: 140.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01802/1.021, allocations: 8.657 MB / 0.5479 GB, free: 137.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.021, allocations: 54.38 kB / 0.5479 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001871/1.021, allocations: 114 kB / 0.548 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004419/1.025, allocations: 1.497 MB / 0.5495 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003896/1.029, allocations: 1.228 MB / 0.5507 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.04, allocations: 9.25 MB / 0.5597 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/1.044, allocations: 317.5 kB / 0.56 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006493/1.045, allocations: 332.4 kB / 0.5603 GB, free: 133 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.002666/1.047, allocations: 1.94 MB / 0.5622 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005855/1.048, allocations: 353.7 kB / 0.5626 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006905/1.055, allocations: 4.148 MB / 0.5666 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-05/1.055, allocations: 20 kB / 0.5666 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.055, allocations: 8 kB / 0.5666 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/1.055, allocations: 11.5 kB / 0.5667 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/1.068, allocations: 9.3 MB / 0.5757 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/1.069, allocations: 4.875 kB / 0.5757 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/1.07, allocations: 275.6 kB / 0.576 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003454/1.073, allocations: 1.339 MB / 0.5773 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/1.073, allocations: 37.7 kB / 0.5774 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009334/1.083, allocations: 8.321 MB / 0.5855 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.083, allocations: 1 kB / 0.5855 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009062/1.092, allocations: 7.045 MB / 0.5924 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.093, allocations: 408.4 kB / 0.5928 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003856/1.093, allocations: 30.3 kB / 0.5928 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/1.095, allocations: 119.8 kB / 0.5929 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/1.095, allocations: 117 kB / 0.593 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.095, allocations: 53.23 kB / 0.5931 GB, free: 103.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003099/1.098, allocations: 2.502 MB / 0.5955 GB, free: 100.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.098, allocations: 0 / 0.5955 GB, free: 100.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004763/1.103, allocations: 1.008 MB / 0.5965 GB, free: 99.68 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.009598/1.113, allocations: 7.689 MB / 0.604 GB, free: 91.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007373/1.12, allocations: 5.362 MB / 0.6092 GB, free: 86.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.12, allocations: 0 / 0.6092 GB, free: 86.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/1.123, allocations: 2.08 MB / 0.6113 GB, free: 84.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/1.126, allocations: 480.6 kB / 0.6117 GB, free: 84.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06871/1.195, allocations: 53.26 MB / 0.6637 GB, free: 23.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002603/1.198, allocations: 3.087 MB / 0.6667 GB, free: 20.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003876/1.202, allocations: 1.823 MB / 0.6685 GB, free: 18.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001906/1.204, allocations: 1.753 MB / 0.6702 GB, free: 16.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/1.204, allocations: 0 / 0.6702 GB, free: 16.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2887/1.492, allocations: 75.13 MB / 0.7436 GB, free: 134.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/1.492, allocations: 242.7 kB / 0.7438 GB, free: 134.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.028/5.52, allocations: 2.953 kB / 0.7438 GB, free: 134.4 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches