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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 112.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 370.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3165, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02194/0.3384, allocations: 10.49 MB / 433.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.3525, allocations: 3.991 MB / 437.1 MB, free: 28 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.355, allocations: 79.67 kB / 437.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007472/0.3625, allocations: 2.254 MB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00803/0.3705, allocations: 1.907 MB / 441.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002999/0.3735, allocations: 0.7526 MB / 442.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.385, allocations: 5.185 MB / 447.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003675/0.3887, allocations: 2.405 MB / 449.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.3915, allocations: 1.511 MB / 451.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003634/0.3951, allocations: 2.22 MB / 453.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008316/0.396, allocations: 300 kB / 453.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002574/0.3986, allocations: 1.229 MB / 455 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002228/0.4008, allocations: 1.909 MB / 456.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002966/0.4037, allocations: 2.203 MB / 459.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009016/0.4128, allocations: 7.039 MB / 466.1 MB, free: 2.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4128, allocations: 0 / 466.1 MB, free: 2.906 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4128, allocations: 0 / 466.1 MB, free: 2.906 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.4129, allocations: 0 / 466.1 MB, free: 2.906 MB / 366.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.01355/0.4265, allocations: 4.97 MB / 471.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.4265, allocations: 12.03 kB / 471.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00116/0.4277, allocations: 0.6244 MB / 471.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1574/0.5851, allocations: 12.3 MB / 484 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.5954, allocations: 3.854 MB / 487.9 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.5956, allocations: 197 kB / 488.1 MB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009133/0.5965, allocations: 275.7 kB / 488.3 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/0.6115, allocations: 8.726 MB / 497.1 MB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/0.6116, allocations: 47.64 kB / 497.1 MB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/0.612, allocations: 127.9 kB / 497.2 MB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003263/0.6152, allocations: 1.774 MB / 499 MB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01453/0.6298, allocations: 7.526 MB / 0.4947 GB, free: 9.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04642/0.6762, allocations: 35.31 MB / 0.5291 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007667/0.6839, allocations: 3.119 MB / 0.5322 GB, free: 2.125 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/0.6864, allocations: 1.906 MB / 0.534 GB, free: 220 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003131/0.6867, allocations: 96.84 kB / 0.5341 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.6867, allocations: 55.5 kB / 0.5342 GB, free: 60 kB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.627e-06/0.6868, allocations: 0 / 0.5342 GB, free: 60 kB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2304/0.9172, allocations: 20.01 MB / 0.5537 GB, free: 100.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.9172, allocations: 248.6 kB / 0.554 GB, free: 100.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.921, allocations: 3.961 MB / 0.5578 GB, free: 96.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.9212, allocations: 53.7 kB / 0.5579 GB, free: 96.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.9223, allocations: 2.925 MB / 0.5607 GB, free: 93.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004633/0.9227, allocations: 0.7512 MB / 0.5615 GB, free: 92.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.9238, allocations: 1.111 MB / 0.5626 GB, free: 91.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.9238, allocations: 305.1 kB / 0.5629 GB, free: 91.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/0.926, allocations: 2.162 MB / 0.565 GB, free: 89.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003133/0.9292, allocations: 5.404 MB / 0.5702 GB, free: 82.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006075/0.9353, allocations: 8.199 MB / 0.5783 GB, free: 72.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.416e-05/0.9353, allocations: 32 kB / 0.5783 GB, free: 72.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01149/0.9468, allocations: 8.648 MB / 0.5867 GB, free: 63.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.867e-05/0.9468, allocations: 56 kB / 0.5868 GB, free: 63.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.362e-05/0.9469, allocations: 116.2 kB / 0.5869 GB, free: 63.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003502/0.9504, allocations: 1.496 MB / 0.5884 GB, free: 62.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003638/0.9541, allocations: 1.228 MB / 0.5896 GB, free: 61.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/0.9648, allocations: 9.842 MB / 0.5992 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004786/0.9696, allocations: 319.6 kB / 0.5995 GB, free: 50.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000929/0.9705, allocations: 328 kB / 0.5998 GB, free: 50.42 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.003729/0.9742, allocations: 1.94 MB / 0.6017 GB, free: 48.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.9754, allocations: 377.5 kB / 0.602 GB, free: 48.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007772/0.9832, allocations: 4.135 MB / 0.6061 GB, free: 43.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.302e-05/0.9832, allocations: 20 kB / 0.6061 GB, free: 43.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/0.9832, allocations: 8 kB / 0.6061 GB, free: 43.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/0.9832, allocations: 7.969 kB / 0.6061 GB, free: 43.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.9991, allocations: 9.2 MB / 0.6151 GB, free: 34.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.9991, allocations: 7.938 kB / 0.6151 GB, free: 34.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/1, allocations: 267.6 kB / 0.6154 GB, free: 34.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003393/1.004, allocations: 1.343 MB / 0.6167 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000195/1.004, allocations: 35.73 kB / 0.6167 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009757/1.014, allocations: 8.85 MB / 0.6253 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.014, allocations: 4 kB / 0.6253 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009406/1.023, allocations: 7.044 MB / 0.6322 GB, free: 16.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.024, allocations: 349.4 kB / 0.6326 GB, free: 16.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008113/1.025, allocations: 35.94 kB / 0.6326 GB, free: 16.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00186/1.027, allocations: 115.8 kB / 0.6327 GB, free: 16.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003741/1.027, allocations: 113.1 kB / 0.6328 GB, free: 16.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/1.027, allocations: 52.22 kB / 0.6329 GB, free: 16.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003512/1.031, allocations: 2.506 MB / 0.6353 GB, free: 13.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/1.031, allocations: 0 / 0.6353 GB, free: 13.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004445/1.035, allocations: 1.007 MB / 0.6363 GB, free: 12.8 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.009596/1.045, allocations: 7.698 MB / 0.6438 GB, free: 5.059 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007182/1.052, allocations: 5.153 MB / 0.6488 GB, free: 15.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.052, allocations: 0 / 0.6488 GB, free: 15.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00367/1.056, allocations: 1.945 MB / 0.6507 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/1.059, allocations: 490 kB / 0.6512 GB, free: 13.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0841/1.143, allocations: 45.83 MB / 0.696 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003889/1.147, allocations: 3.095 MB / 0.699 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004217/1.152, allocations: 1.819 MB / 0.7008 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002847/1.154, allocations: 1.753 MB / 0.7025 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/1.154, allocations: 0 / 0.7025 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.386/1.54, allocations: 79.74 MB / 0.7803 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.74/26.28, allocations: 0 / 0.7803 GB, free: 157.5 MB / 0.5294 GB " [Timeout remaining time 634] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.88351986699854]