Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 105.2 kB / 17.58 MB, free: 5.562 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.001964/0.001964, allocations: 184.2 kB / 18.5 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.381/2.381, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002669/0.002669, allocations: 55.86 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1497, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01625/0.166, allocations: 7.133 MB / 334.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1773, allocations: 3.147 MB / 337.7 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.179, allocations: 31.94 kB / 337.7 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003349/0.1824, allocations: 0.7898 MB / 338.5 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006647/0.1891, allocations: 1.319 MB / 339.8 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.1913, allocations: 499 kB / 340.3 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005937/0.1973, allocations: 2.543 MB / 342.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002705/0.2, allocations: 1.157 MB / 344 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.2019, allocations: 0.7627 MB / 344.8 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.2049, allocations: 1.109 MB / 345.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007526/0.2056, allocations: 136 kB / 346 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003089/0.2088, allocations: 0.8736 MB / 346.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001879/0.2107, allocations: 1.001 MB / 347.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0027/0.2134, allocations: 1.203 MB / 349.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007794/0.2212, allocations: 3.801 MB / 352.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.2213, allocations: 0 / 352.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.2213, allocations: 0 / 352.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001442/0.2215, allocations: 0 / 352.9 MB, free: 10.76 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.01152/0.233, allocations: 2.913 MB / 355.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.2331, allocations: 8.031 kB / 355.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001441/0.2345, allocations: 450 kB / 356.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01347/0.248, allocations: 1.655 MB / 357.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006023/0.2541, allocations: 1.769 MB / 359.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.2544, allocations: 118.8 kB / 359.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009378/0.2553, allocations: 151.9 kB / 359.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.2735, allocations: 6.355 MB / 366.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.2737, allocations: 35.66 kB / 366.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007236/0.2744, allocations: 79.89 kB / 366.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005185/0.2796, allocations: 1.437 MB / 367.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0206/0.3003, allocations: 5.677 MB / 373.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3087/0.6091, allocations: 26.3 MB / 399.8 MB, free: 31.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007308/0.6164, allocations: 2.259 MB / 402.1 MB, free: 29.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002197/0.6187, allocations: 1.015 MB / 403.1 MB, free: 29.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.61e-05/0.6187, allocations: 15.39 kB / 403.1 MB, free: 29.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.6188, allocations: 46.09 kB / 403.1 MB, free: 29.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 4.398e-06/0.6188, allocations: 1.094 kB / 403.1 MB, free: 29.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.03369/0.6525, allocations: 8.657 MB / 411.8 MB, free: 25.69 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.6526, allocations: 140.2 kB / 411.9 MB, free: 25.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/0.6578, allocations: 2.84 MB / 414.8 MB, free: 24.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002198/0.6581, allocations: 41.48 kB / 414.8 MB, free: 24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.6595, allocations: 2.077 MB / 416.9 MB, free: 22.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004962/0.66, allocations: 439.7 kB / 417.3 MB, free: 21.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.6614, allocations: 0.8778 MB / 418.2 MB, free: 21.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.058e-05/0.6615, allocations: 301.1 kB / 418.5 MB, free: 21.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002856/0.6644, allocations: 1.41 MB / 419.9 MB, free: 19.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004369/0.6688, allocations: 4.234 MB / 424.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008169/0.677, allocations: 6.127 MB / 430.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-05/0.6771, allocations: 31.94 kB / 430.3 MB, free: 6.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01724/0.6944, allocations: 6.1 MB / 436.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/0.6945, allocations: 48 kB / 436.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/0.6947, allocations: 100 kB / 436.5 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00391/0.6986, allocations: 0.7968 MB / 437.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005407/0.704, allocations: 0.9825 MB / 438.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.7141, allocations: 4.466 MB / 442.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005684/0.7199, allocations: 247.6 kB / 443 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007784/0.7207, allocations: 279.9 kB / 443.3 MB, free: 9.535 MB / 334.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.003307/0.724, allocations: 1.369 MB / 444.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007575/0.7248, allocations: 232.9 kB / 444.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006545/0.7313, allocations: 1.857 MB / 446.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.105e-05/0.7314, allocations: 16 kB / 446.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/0.7314, allocations: 4 kB / 446.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.238e-05/0.7315, allocations: 3.984 kB / 446.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/0.7467, allocations: 4.807 MB / 451.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/0.7467, allocations: 4 kB / 451.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.7479, allocations: 135.8 kB / 451.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003778/0.7517, allocations: 0.655 MB / 452.4 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000189/0.7519, allocations: 16 kB / 452.4 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009246/0.7612, allocations: 3.957 MB / 456.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7613, allocations: 0 / 456.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/0.7726, allocations: 3.692 MB / 460 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.7746, allocations: 437.8 kB / 460.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008626/0.7755, allocations: 12.66 kB / 460.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/0.7776, allocations: 63.91 kB / 460.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003625/0.778, allocations: 59.86 kB / 460.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/0.7782, allocations: 24 kB / 460.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005772/0.784, allocations: 1.778 MB / 462.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.784, allocations: 0 / 462.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.007384/0.7914, allocations: 0.643 MB / 463 MB, free: 5.516 MB / 350.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.01244/0.8039, allocations: 4.315 MB / 467.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/0.8146, allocations: 3.616 MB / 471 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/0.8146, allocations: 0.9375 kB / 471 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.8171, allocations: 0.9432 MB / 471.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/0.821, allocations: 253.2 kB / 472.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08664/0.9077, allocations: 32.52 MB / 0.4929 GB, free: 6.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005421/0.9132, allocations: 2.195 MB / 0.495 GB, free: 4.598 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.007728/0.921, allocations: 1.4 MB / 0.4964 GB, free: 3.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003158/0.9242, allocations: 1.058 MB / 0.4974 GB, free: 2.133 MB / 398.1 MB Notification: Performance of SimCode: time 4.869e-06/0.9242, allocations: 0 / 0.4974 GB, free: 2.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4275/1.352, allocations: 44.63 MB / 0.541 GB, free: 152.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.59/18.94, allocations: 2.688 kB / 0.541 GB, free: 152.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches