Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002062/0.002062, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3053, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009659/0.315, allocations: 7.1 MB / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006847/0.3219, allocations: 3.154 MB / 419 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.3232, allocations: 31.94 kB / 419 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.3255, allocations: 0.7937 MB / 419.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.3292, allocations: 1.288 MB / 421.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.3305, allocations: 499 kB / 421.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003987/0.3345, allocations: 2.559 MB / 424.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.3361, allocations: 1.153 MB / 425.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.3373, allocations: 0.7471 MB / 426.1 MB, free: 120 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3389, allocations: 1.102 MB / 427.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000317/0.3392, allocations: 136 kB / 427.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.3409, allocations: 0.8658 MB / 428.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.342, allocations: 0.9816 MB / 429.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.3433, allocations: 1.184 MB / 430.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005037/0.3483, allocations: 3.943 MB / 434.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3483, allocations: 0 / 434.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3483, allocations: 0 / 434.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.732e-05/0.3484, allocations: 3.938 kB / 434.3 MB, free: 7.875 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.00691/0.3554, allocations: 2.952 MB / 437.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.3554, allocations: 12.03 kB / 437.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006263/0.3561, allocations: 446 kB / 437.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005966/0.362, allocations: 1.668 MB / 439.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003276/0.3653, allocations: 1.543 MB / 440.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.3655, allocations: 114.9 kB / 441 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/0.3659, allocations: 151.9 kB / 441.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.3767, allocations: 6.359 MB / 447.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.031e-05/0.3768, allocations: 35.7 kB / 447.6 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/0.3771, allocations: 79.89 kB / 447.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002568/0.3797, allocations: 1.437 MB / 449.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.3905, allocations: 5.67 MB / 454.7 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03549/0.426, allocations: 26.25 MB / 481 MB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004594/0.4306, allocations: 2.261 MB / 483.2 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.4322, allocations: 1.026 MB / 484.3 MB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.4322, allocations: 4 kB / 484.3 MB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.4323, allocations: 50.55 kB / 484.3 MB, free: 4.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.517e-06/0.4323, allocations: 0 / 484.3 MB, free: 4.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02111/0.4534, allocations: 8.723 MB / 493 MB, free: 11.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.4536, allocations: 144.5 kB / 493.2 MB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.4579, allocations: 2.824 MB / 496 MB, free: 8.324 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001924/0.4581, allocations: 41.7 kB / 496.1 MB, free: 8.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/0.4598, allocations: 2.155 MB / 498.2 MB, free: 6.102 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00062/0.4605, allocations: 452.7 kB / 498.6 MB, free: 5.656 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001305/0.4618, allocations: 0.8815 MB / 499.5 MB, free: 4.762 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4619, allocations: 309.3 kB / 499.8 MB, free: 4.457 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002324/0.4642, allocations: 1.406 MB / 0.4895 GB, free: 3.043 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004463/0.4687, allocations: 4.241 MB / 0.4936 GB, free: 13.37 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0079/0.4766, allocations: 6.121 MB / 0.4996 GB, free: 5.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.713e-05/0.4768, allocations: 32 kB / 0.4996 GB, free: 5.809 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01169/0.4885, allocations: 6.101 MB / 0.5056 GB, free: 15.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.276e-05/0.4886, allocations: 48 kB / 0.5056 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.4887, allocations: 103.9 kB / 0.5057 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002312/0.491, allocations: 0.8083 MB / 0.5065 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/0.4939, allocations: 0.9825 MB / 0.5075 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00616/0.5001, allocations: 4.465 MB / 0.5119 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002901/0.503, allocations: 251.7 kB / 0.5121 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004441/0.5034, allocations: 280 kB / 0.5124 GB, free: 8.629 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (533): * Single equations (assignments): 529 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.5055, allocations: 1.368 MB / 0.5137 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/0.5059, allocations: 242.4 kB / 0.5139 GB, free: 7.012 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003871/0.5098, allocations: 1.853 MB / 0.5157 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.5098, allocations: 15.94 kB / 0.5158 GB, free: 5.121 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.5099, allocations: 4 kB / 0.5158 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.5099, allocations: 3.984 kB / 0.5158 GB, free: 5.113 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008689/0.5186, allocations: 4.783 MB / 0.5204 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.5186, allocations: 7.938 kB / 0.5204 GB, free: 248 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005805/0.5192, allocations: 131.8 kB / 0.5206 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002024/0.5212, allocations: 0.6444 MB / 0.5212 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.591e-05/0.5213, allocations: 19.98 kB / 0.5212 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.5265, allocations: 3.961 MB / 0.5251 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.5266, allocations: 0 / 0.5251 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006025/0.5326, allocations: 3.709 MB / 0.5287 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006202/0.5332, allocations: 299.4 kB / 0.529 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002186/0.5335, allocations: 15.94 kB / 0.529 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008062/0.5343, allocations: 63.91 kB / 0.5291 GB, free: 7.215 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.5345, allocations: 59.98 kB / 0.5291 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.144e-05/0.5346, allocations: 24 kB / 0.5291 GB, free: 7.133 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00282/0.5374, allocations: 1.758 MB / 0.5309 GB, free: 5.367 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5374, allocations: 0 / 0.5309 GB, free: 5.367 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003216/0.5406, allocations: 0.6288 MB / 0.5315 GB, free: 4.738 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (75): * Single equations (assignments): 71 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006438/0.5471, allocations: 4.332 MB / 0.5357 GB, free: 376 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.222/0.7691, allocations: 3.406 MB / 0.539 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.7691, allocations: 3.938 kB / 0.539 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.7702, allocations: 0.9277 MB / 0.5399 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.772, allocations: 258.2 kB / 0.5402 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/0.8039, allocations: 30.21 MB / 0.5697 GB, free: 99.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/0.8057, allocations: 2.182 MB / 0.5718 GB, free: 96.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002461/0.8081, allocations: 1.4 MB / 0.5732 GB, free: 95.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009861/0.8091, allocations: 1.046 MB / 0.5742 GB, free: 94.51 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.8091, allocations: 0 / 0.5742 GB, free: 94.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07975/0.8889, allocations: 41.61 MB / 0.6148 GB, free: 53.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.74/20.63, allocations: 7.719 kB / 0.6148 GB, free: 53.17 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches