Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_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.001948/0.001948, 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.002806/0.002806, 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.208/2.208, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 47.66 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1693, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01408/0.1835, allocations: 7.118 MB / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008119/0.1917, allocations: 3.15 MB / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/0.1934, allocations: 35.88 kB / 360.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002517/0.196, allocations: 0.7859 MB / 361.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004808/0.2009, allocations: 1.321 MB / 362.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002387/0.2033, allocations: 499 kB / 363.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006206/0.2095, allocations: 2.531 MB / 365.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.2128, allocations: 1.153 MB / 366.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.2151, allocations: 0.7549 MB / 367.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.2178, allocations: 1.102 MB / 368.6 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008014/0.2186, allocations: 136 kB / 368.7 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002519/0.2212, allocations: 0.8775 MB / 369.6 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2998/0.5211, allocations: 0.9934 MB / 370.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00425/0.5254, allocations: 1.198 MB / 371.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0122/0.5376, allocations: 3.803 MB / 375.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.2e-05/0.5377, allocations: 0.5156 kB / 375.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5377, allocations: 0 / 375.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.538, allocations: 1.375 kB / 375.6 MB, free: 10.99 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.01563/0.5536, allocations: 2.891 MB / 378.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.476e-05/0.5537, allocations: 8.469 kB / 378.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002796/0.5566, allocations: 451.2 kB / 378.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01254/0.5691, allocations: 1.651 MB / 380.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006763/0.5759, allocations: 1.615 MB / 382.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000355/0.5763, allocations: 121 kB / 382.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001523/0.5779, allocations: 157.7 kB / 382.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.5978, allocations: 6.362 MB / 388.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/0.598, allocations: 42.34 kB / 388.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005068/0.5985, allocations: 78.53 kB / 389 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004578/0.6031, allocations: 1.433 MB / 390.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.6217, allocations: 5.674 MB / 396.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05632/0.6781, allocations: 26.3 MB / 422.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008849/0.687, allocations: 2.268 MB / 424.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003066/0.6901, allocations: 1.022 MB / 425.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.6903, allocations: 15.12 kB / 425.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.406e-05/0.6904, allocations: 42.56 kB / 425.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 6.633e-06/0.6904, allocations: 0 / 425.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.04568/0.7361, allocations: 8.586 MB / 434.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.7363, allocations: 140.5 kB / 434.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009768/0.7461, allocations: 2.831 MB / 437.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000386/0.7465, allocations: 41.7 kB / 437.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002976/0.7495, allocations: 2.072 MB / 439.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.7507, allocations: 436.2 kB / 439.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003519/0.7543, allocations: 0.8768 MB / 440.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.7545, allocations: 304.5 kB / 441 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00434/0.7588, allocations: 1.408 MB / 442.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008198/0.7671, allocations: 4.241 MB / 446.6 MB, free: 220 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01342/0.7805, allocations: 6.115 MB / 452.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001923/0.7808, allocations: 32 kB / 452.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.02483/0.8057, allocations: 6.092 MB / 458.9 MB, free: 2.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001975/0.8059, allocations: 48 kB / 458.9 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002751/0.8062, allocations: 104.1 kB / 459 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004467/0.8107, allocations: 0.7928 MB / 459.8 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005812/0.8166, allocations: 0.9786 MB / 460.8 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009096/0.8257, allocations: 4.482 MB / 465.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004512/0.8303, allocations: 247.6 kB / 465.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/0.8314, allocations: 274.5 kB / 465.8 MB, free: 11.93 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.005249/0.8367, allocations: 1.375 MB / 467.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.8379, allocations: 229 kB / 467.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007922/0.8458, allocations: 1.847 MB / 469.2 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.395e-05/0.8459, allocations: 19.98 kB / 469.2 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/0.8459, allocations: 4 kB / 469.2 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.632e-05/0.846, allocations: 7.922 kB / 469.3 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/0.8658, allocations: 4.806 MB / 474.1 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/0.8658, allocations: 0 / 474.1 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.8671, allocations: 131.8 kB / 474.2 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/0.871, allocations: 0.6495 MB / 474.8 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002864/0.8713, allocations: 23.59 kB / 474.9 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009676/0.881, allocations: 3.949 MB / 478.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/0.8811, allocations: 7.969 kB / 478.8 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/0.8929, allocations: 3.679 MB / 482.5 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.8942, allocations: 298 kB / 482.8 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008914/0.8951, allocations: 23.92 kB / 482.8 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002246/0.8974, allocations: 67.36 kB / 482.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004463/0.8979, allocations: 55.8 kB / 482.9 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002708/0.8982, allocations: 35.98 kB / 483 MB, free: 10.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.006412/0.9046, allocations: 1.758 MB / 484.7 MB, free: 8.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.9047, allocations: 0 / 484.7 MB, free: 8.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.008334/0.913, allocations: 0.6484 MB / 485.4 MB, free: 8.047 MB / 398.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.01374/0.9268, allocations: 4.302 MB / 489.7 MB, free: 3.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01137/0.9382, allocations: 3.623 MB / 493.3 MB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.9383, allocations: 0 / 493.3 MB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002755/0.941, allocations: 0.9357 MB / 494.2 MB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003875/0.945, allocations: 258 kB / 494.5 MB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07879/1.024, allocations: 32.39 MB / 0.5145 GB, free: 9.523 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004675/1.029, allocations: 2.188 MB / 0.5167 GB, free: 7.301 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004574/1.033, allocations: 1.4 MB / 0.518 GB, free: 5.895 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002641/1.036, allocations: 1.05 MB / 0.5191 GB, free: 4.844 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/1.036, allocations: 0 / 0.5191 GB, free: 4.844 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3522/1.388, allocations: 44.5 MB / 0.5625 GB, free: 131.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.86/19.25, allocations: 13.06 kB / 0.5625 GB, free: 131.8 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches