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.001817/0.001817, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001962/0.001963, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.026/2.026, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 43.86 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1331, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0212/0.1544, allocations: 10.41 MB / 360.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.167, allocations: 3.964 MB / 364.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.1696, allocations: 67.75 kB / 364.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006805/0.1765, allocations: 2.204 MB / 366.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009587/0.1861, allocations: 1.856 MB / 368.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003491/0.1897, allocations: 0.7409 MB / 369.4 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3074/0.4971, allocations: 5.167 MB / 374.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008695/0.5059, allocations: 2.89 MB / 377.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004892/0.5108, allocations: 1.477 MB / 378.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005452/0.5163, allocations: 2.04 MB / 381 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001877/0.5182, allocations: 299.9 kB / 381.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004438/0.5227, allocations: 1.185 MB / 382.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003875/0.5266, allocations: 1.834 MB / 384.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005629/0.5323, allocations: 2.202 MB / 386.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.5444, allocations: 6.805 MB / 393.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.5445, allocations: 0 / 393.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5445, allocations: 0 / 393.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002805/0.5448, allocations: 4 kB / 393.3 MB, free: 3.688 MB / 302.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.02304/0.5679, allocations: 4.921 MB / 398.2 MB, free: 392 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/0.5679, allocations: 10.25 kB / 398.2 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00287/0.5708, allocations: 0.6245 MB / 398.9 MB, free: 0 / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2415/0.8123, allocations: 12.28 MB / 411.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/0.8283, allocations: 3.854 MB / 415 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003141/0.8287, allocations: 190.4 kB / 415.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/0.8305, allocations: 280.5 kB / 415.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02821/0.8587, allocations: 8.731 MB / 424.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002612/0.8591, allocations: 48.22 kB / 424.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.8601, allocations: 128.3 kB / 424.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005881/0.866, allocations: 1.773 MB / 426.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02606/0.8921, allocations: 7.53 MB / 433.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07887/0.971, allocations: 35.5 MB / 469.2 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01526/0.9864, allocations: 3.698 MB / 472.9 MB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005046/0.9915, allocations: 2.033 MB / 474.9 MB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009786/0.9925, allocations: 330.5 kB / 475.2 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/0.9927, allocations: 55.5 kB / 475.3 MB, free: 3.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 1.725e-05/0.9927, allocations: 0 / 475.3 MB, free: 3.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.1018/1.095, allocations: 20.03 MB / 495.3 MB, free: 15.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001963/1.095, allocations: 264.6 kB / 495.5 MB, free: 15.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/1.105, allocations: 3.946 MB / 499.5 MB, free: 11.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006955/1.106, allocations: 50.64 kB / 499.5 MB, free: 11.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003367/1.109, allocations: 2.819 MB / 0.4906 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001554/1.111, allocations: 0.7168 MB / 0.4913 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002765/1.114, allocations: 1.105 MB / 0.4924 GB, free: 6.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/1.114, allocations: 301.1 kB / 0.4927 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005822/1.12, allocations: 2.166 MB / 0.4948 GB, free: 3.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009698/1.129, allocations: 5.408 MB / 0.5001 GB, free: 12.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01671/1.146, allocations: 8.196 MB / 0.5081 GB, free: 3.203 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/1.146, allocations: 32 kB / 0.5081 GB, free: 3.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.03111/1.177, allocations: 8.652 MB / 0.5165 GB, free: 10.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002261/1.178, allocations: 52 kB / 0.5166 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002838/1.178, allocations: 116 kB / 0.5167 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007986/1.186, allocations: 1.508 MB / 0.5182 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007555/1.194, allocations: 1.224 MB / 0.5194 GB, free: 7.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3013/1.495, allocations: 9.934 MB / 0.5291 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008517/1.504, allocations: 320.3 kB / 0.5294 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001778/1.505, allocations: 334 kB / 0.5297 GB, free: 142.7 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.007253/1.513, allocations: 1.934 MB / 0.5316 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/1.515, allocations: 353.8 kB / 0.5319 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/1.53, allocations: 4.151 MB / 0.536 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.647e-05/1.53, allocations: 21.89 kB / 0.536 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-05/1.53, allocations: 7.562 kB / 0.536 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.37e-05/1.531, allocations: 17.08 kB / 0.536 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03517/1.566, allocations: 9.3 MB / 0.5451 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.882e-05/1.566, allocations: 2.406 kB / 0.5451 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/1.568, allocations: 268.4 kB / 0.5454 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006541/1.575, allocations: 1.356 MB / 0.5467 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004527/1.575, allocations: 38.69 kB / 0.5467 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01902/1.594, allocations: 8.937 MB / 0.5554 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/1.594, allocations: 1.344 kB / 0.5554 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01825/1.613, allocations: 7.04 MB / 0.5623 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/1.614, allocations: 406.2 kB / 0.5627 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001568/1.616, allocations: 35.59 kB / 0.5627 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003722/1.62, allocations: 122.1 kB / 0.5629 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000866/1.621, allocations: 112.2 kB / 0.563 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000391/1.621, allocations: 46.47 kB / 0.563 GB, free: 130.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007355/1.628, allocations: 2.512 MB / 0.5655 GB, free: 128.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.12e-07/1.628, allocations: 0 / 0.5655 GB, free: 128.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009575/1.638, allocations: 1.003 MB / 0.5664 GB, free: 127.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.01782/1.656, allocations: 7.687 MB / 0.5739 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01543/1.671, allocations: 6.424 MB / 0.5802 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.671, allocations: 0 / 0.5802 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005423/1.677, allocations: 2.089 MB / 0.5823 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006374/1.683, allocations: 0.4903 MB / 0.5827 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1153/1.799, allocations: 51.53 MB / 0.6331 GB, free: 52.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007639/1.806, allocations: 3.087 MB / 0.6361 GB, free: 49.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008422/1.815, allocations: 1.819 MB / 0.6379 GB, free: 47.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005101/1.82, allocations: 1.75 MB / 0.6396 GB, free: 45.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.994e-06/1.82, allocations: 0 / 0.6396 GB, free: 45.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4185/2.239, allocations: 77.99 MB / 0.7157 GB, free: 159.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/20.18, allocations: 15.95 kB / 0.7157 GB, free: 159.7 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 & 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.0012 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.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) Reference file matches