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.001246/0.001246, allocations: 109.3 kB / 16.51 MB, free: 6.707 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.001411/0.001412, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.423/1.423, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 50.88 kB / 300.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1438, allocations: 49.44 MB / 349.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.3435/0.4873, allocations: 38.38 MB / 387.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02881/0.5162, allocations: 8.663 MB / 396.5 MB, free: 32 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01177/0.528, allocations: 168.8 kB / 396.7 MB, free: 4 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005897/0.5341, allocations: 2.19 MB / 398.9 MB, free: 15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005933/0.54, allocations: 1.739 MB / 400.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002227/0.5423, allocations: 0.6814 MB / 401.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.5529, allocations: 7.211 MB / 408.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004146/0.5571, allocations: 2.806 MB / 411.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003225/0.5603, allocations: 1.308 MB / 412.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003046/0.5634, allocations: 2.177 MB / 414.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005984/0.564, allocations: 200 kB / 415 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002745/0.5667, allocations: 1.154 MB / 416.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002003/0.5688, allocations: 1.765 MB / 417.9 MB, free: 384 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00235/0.5711, allocations: 2.085 MB / 420 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008151/0.5793, allocations: 6.725 MB / 426.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5793, allocations: 0 / 426.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5793, allocations: 0 / 426.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.5795, allocations: 0 / 426.7 MB, free: 7.527 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.01339/0.5929, allocations: 4.928 MB / 431.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.952e-05/0.593, allocations: 12.03 kB / 431.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.5941, allocations: 0.6167 MB / 432.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1461/0.7402, allocations: 12.28 MB / 444.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009184/0.7495, allocations: 3.843 MB / 448.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.7496, allocations: 201 kB / 448.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006905/0.7504, allocations: 275.7 kB / 448.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.7644, allocations: 8.726 MB / 457.6 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.7645, allocations: 51.58 kB / 457.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003362/0.7649, allocations: 131.9 kB / 457.8 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002927/0.7678, allocations: 1.766 MB / 459.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.7813, allocations: 7.534 MB / 467.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04267/0.824, allocations: 35.51 MB / 0.4908 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008221/0.8323, allocations: 3.688 MB / 0.4944 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/0.8348, allocations: 2.033 MB / 0.4964 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004742/0.8353, allocations: 336 kB / 0.4967 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.1e-05/0.8354, allocations: 51.56 kB / 0.4968 GB, free: 3.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.97e-06/0.8354, allocations: 0 / 0.4968 GB, free: 3.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06165/0.8971, allocations: 20.02 MB / 0.5163 GB, free: 15.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/0.8973, allocations: 252.8 kB / 0.5166 GB, free: 15.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006806/0.9041, allocations: 3.946 MB / 0.5204 GB, free: 11.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005512/0.9047, allocations: 61.64 kB / 0.5205 GB, free: 10.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0024/0.9071, allocations: 2.819 MB / 0.5232 GB, free: 8.113 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001074/0.9082, allocations: 0.7133 MB / 0.5239 GB, free: 7.391 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/0.9099, allocations: 1.111 MB / 0.525 GB, free: 6.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.91, allocations: 301.1 kB / 0.5253 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/0.9132, allocations: 2.166 MB / 0.5274 GB, free: 3.801 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.235/1.148, allocations: 5.399 MB / 0.5327 GB, free: 146.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/1.16, allocations: 8.191 MB / 0.5407 GB, free: 141.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001724/1.16, allocations: 32.41 kB / 0.5407 GB, free: 141.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0184/1.179, allocations: 8.663 MB / 0.5492 GB, free: 138.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.438e-05/1.179, allocations: 53.03 kB / 0.5492 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/1.179, allocations: 113.9 kB / 0.5493 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004035/1.183, allocations: 1.5 MB / 0.5508 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003532/1.186, allocations: 1.225 MB / 0.552 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.197, allocations: 9.245 MB / 0.561 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/1.201, allocations: 326.6 kB / 0.5613 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007639/1.202, allocations: 323.1 kB / 0.5617 GB, free: 133.4 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.002899/1.205, allocations: 1.933 MB / 0.5635 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005693/1.206, allocations: 351.8 kB / 0.5639 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006539/1.212, allocations: 4.157 MB / 0.5679 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.423e-05/1.212, allocations: 23.83 kB / 0.568 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/1.212, allocations: 8 kB / 0.568 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/1.212, allocations: 11.97 kB / 0.568 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/1.226, allocations: 9.304 MB / 0.5771 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/1.226, allocations: 4 kB / 0.5771 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/1.227, allocations: 265.9 kB / 0.5773 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003398/1.23, allocations: 1.351 MB / 0.5786 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/1.23, allocations: 28 kB / 0.5787 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009023/1.24, allocations: 8.319 MB / 0.5868 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.24, allocations: 4 kB / 0.5868 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009002/1.249, allocations: 7.049 MB / 0.5937 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009263/1.249, allocations: 412 kB / 0.5941 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004419/1.25, allocations: 28 kB / 0.5941 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.251, allocations: 119.8 kB / 0.5942 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/1.252, allocations: 113 kB / 0.5943 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/1.252, allocations: 56 kB / 0.5944 GB, free: 103.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002982/1.255, allocations: 2.506 MB / 0.5968 GB, free: 101.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.255, allocations: 0 / 0.5968 GB, free: 101.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004165/1.259, allocations: 1.005 MB / 0.5978 GB, free: 100.3 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.009115/1.268, allocations: 7.696 MB / 0.6053 GB, free: 92.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007174/1.275, allocations: 5.343 MB / 0.6105 GB, free: 87.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.275, allocations: 4 kB / 0.6105 GB, free: 87.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002796/1.278, allocations: 2.078 MB / 0.6126 GB, free: 85.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/1.281, allocations: 468 kB / 0.613 GB, free: 84.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06787/1.349, allocations: 53.17 MB / 0.6649 GB, free: 24.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002817/1.352, allocations: 3.088 MB / 0.668 GB, free: 21.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003954/1.356, allocations: 1.823 MB / 0.6697 GB, free: 19.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/1.358, allocations: 1.753 MB / 0.6714 GB, free: 17.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/1.358, allocations: 0 / 0.6714 GB, free: 17.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2958/1.654, allocations: 76.17 MB / 0.7458 GB, free: 136.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/1.654, allocations: 248.6 kB / 0.7461 GB, free: 135.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.502/5.156, allocations: 3.75 kB / 0.7461 GB, free: 135.8 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