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.001407/0.001407, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.7 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09881, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008339/0.1072, allocations: 7.091 MB / 364.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005517/0.1127, allocations: 3.177 MB / 367.8 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/0.1135, allocations: 31.94 kB / 367.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.1153, allocations: 0.7899 MB / 368.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.1184, allocations: 1.292 MB / 370 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.1196, allocations: 491 kB / 370.4 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1653/0.2849, allocations: 2.55 MB / 373 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001713/0.2867, allocations: 1.155 MB / 374.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.2878, allocations: 0.7491 MB / 374.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.2893, allocations: 1.099 MB / 376 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004241/0.2897, allocations: 136 kB / 376.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.2916, allocations: 0.8642 MB / 377 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.2928, allocations: 0.9786 MB / 378 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.2939, allocations: 1.181 MB / 379.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005521/0.2995, allocations: 3.75 MB / 382.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.2995, allocations: 5.25 kB / 382.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.2995, allocations: 0 / 382.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001115/0.2996, allocations: 0 / 382.9 MB, free: 7.812 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.006357/0.306, allocations: 2.878 MB / 385.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.3061, allocations: 11.03 kB / 385.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007228/0.3068, allocations: 455.1 kB / 386.2 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006258/0.3131, allocations: 1.65 MB / 387.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.3158, allocations: 1.51 MB / 389.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-05/0.3159, allocations: 114.7 kB / 389.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003417/0.3163, allocations: 160.7 kB / 389.7 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008801/0.3251, allocations: 6.363 MB / 396 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.31e-05/0.3252, allocations: 33.66 kB / 396.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.3254, allocations: 77.64 kB / 396.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002243/0.3277, allocations: 1.44 MB / 397.6 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/0.3379, allocations: 5.67 MB / 403.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.37, allocations: 26.28 MB / 429.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004501/0.3746, allocations: 2.264 MB / 431.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.3759, allocations: 1.022 MB / 432.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.376, allocations: 14.81 kB / 432.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.376, allocations: 46.55 kB / 432.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.917e-06/0.3761, allocations: 3.75 kB / 432.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02333/0.3994, allocations: 8.576 MB / 441.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.3995, allocations: 145.7 kB / 441.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004065/0.4036, allocations: 2.823 MB / 444.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001714/0.4038, allocations: 37.7 kB / 444.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.4053, allocations: 2.076 MB / 446.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005093/0.4058, allocations: 435.5 kB / 447 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.407, allocations: 0.882 MB / 447.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4071, allocations: 301.1 kB / 448.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00214/0.4092, allocations: 1.41 MB / 449.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003931/0.4132, allocations: 4.239 MB / 453.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006747/0.4199, allocations: 6.117 MB / 459.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.424e-05/0.42, allocations: 32 kB / 459.9 MB, free: 15 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01041/0.4304, allocations: 6.083 MB / 466 MB, free: 8.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.853e-05/0.4305, allocations: 48 kB / 466.1 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.606e-05/0.4306, allocations: 104.2 kB / 466.2 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/0.4329, allocations: 0.7928 MB / 467 MB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/0.4356, allocations: 0.9825 MB / 467.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005664/0.4413, allocations: 4.481 MB / 472.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/0.4445, allocations: 251.5 kB / 472.7 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005653/0.4451, allocations: 275.3 kB / 472.9 MB, free: 1.855 MB / 382.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.002668/0.4478, allocations: 1.368 MB / 474.3 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000569/0.4484, allocations: 233 kB / 474.5 MB, free: 248 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004297/0.4527, allocations: 1.853 MB / 476.4 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.301e-05/0.4527, allocations: 12 kB / 476.4 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.4527, allocations: 4 kB / 476.4 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.4527, allocations: 11.92 kB / 476.4 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4631, allocations: 4.802 MB / 481.2 MB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.4631, allocations: 8 kB / 481.2 MB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.4638, allocations: 132.2 kB / 481.4 MB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/0.4659, allocations: 0.6483 MB / 482 MB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.466, allocations: 23.98 kB / 482 MB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005033/0.4711, allocations: 3.953 MB / 486 MB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4711, allocations: 0 / 486 MB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005912/0.477, allocations: 3.696 MB / 489.7 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007339/0.4778, allocations: 293.9 kB / 490 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005715/0.4784, allocations: 12 kB / 490 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4796, allocations: 67.81 kB / 490 MB, free: 500 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.4799, allocations: 59.86 kB / 490.1 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.032e-05/0.48, allocations: 24 kB / 490.1 MB, free: 416 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003779/0.4838, allocations: 1.758 MB / 491.9 MB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4838, allocations: 64 / 491.9 MB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00425/0.488, allocations: 0.6289 MB / 492.5 MB, free: 14.01 MB / 414.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.006679/0.4947, allocations: 4.317 MB / 496.8 MB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006204/0.501, allocations: 3.619 MB / 0.4887 GB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.501, allocations: 0 / 0.4887 GB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.5024, allocations: 0.9396 MB / 0.4896 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/0.5054, allocations: 260.8 kB / 0.4899 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0493/0.5547, allocations: 32.34 MB / 0.5215 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.5572, allocations: 2.184 MB / 0.5236 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003101/0.5603, allocations: 1.396 MB / 0.525 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.5616, allocations: 1.046 MB / 0.526 GB, free: 10.85 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5616, allocations: 0 / 0.526 GB, free: 10.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2414/0.803, allocations: 44.42 MB / 0.5694 GB, free: 147.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.92, allocations: 2.531 kB / 0.5694 GB, free: 147.2 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.0.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