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.001526/0.001526, allocations: 105.5 kB / 16.51 MB, free: 6.707 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.001664/0.001664, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009513/0.0009514, allocations: 45.41 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.08752, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01442/0.102, allocations: 14.08 MB / 363.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007635/0.1097, allocations: 4.37 MB / 368 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001933/0.1116, allocations: 59.81 kB / 368 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.1134, allocations: 0.7438 MB / 368.8 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002706/0.1162, allocations: 1.234 MB / 370 MB, free: 200 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1529/0.2691, allocations: 453.3 kB / 370.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004436/0.2736, allocations: 3.427 MB / 373.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.2753, allocations: 1.137 MB / 375 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.2765, allocations: 0.6657 MB / 375.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001771/0.2782, allocations: 1.194 MB / 376.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003342/0.2786, allocations: 94.56 kB / 377 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.2803, allocations: 0.9044 MB / 377.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000904/0.2812, allocations: 0.9876 MB / 378.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009359/0.2822, allocations: 1.166 MB / 380 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003514/0.2857, allocations: 3.779 MB / 383.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2857, allocations: 1.312 kB / 383.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2857, allocations: 0 / 383.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.785e-05/0.2858, allocations: 0 / 383.8 MB, free: 7.844 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.004755/0.2905, allocations: 2.902 MB / 386.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.2906, allocations: 9.281 kB / 386.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000463/0.2911, allocations: 448.1 kB / 387.1 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005393/0.2965, allocations: 1.652 MB / 388.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.299, allocations: 1.61 MB / 390.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.846e-05/0.2991, allocations: 122.1 kB / 390.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002839/0.2994, allocations: 156.7 kB / 390.7 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007239/0.3066, allocations: 6.358 MB / 397 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-05/0.3067, allocations: 37.67 kB / 397.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002713/0.307, allocations: 80.12 kB / 397.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002327/0.3093, allocations: 1.432 MB / 398.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.3194, allocations: 5.678 MB / 404.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.35, allocations: 26.3 MB / 430.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004308/0.3543, allocations: 2.26 MB / 432.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.3557, allocations: 1.023 MB / 433.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.16e-05/0.3558, allocations: 14.66 kB / 433.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3558, allocations: 42.5 kB / 433.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.037e-06/0.3559, allocations: 4 kB / 433.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.0213/0.3772, allocations: 8.578 MB / 442.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.3773, allocations: 140.5 kB / 442.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004274/0.3815, allocations: 2.831 MB / 445.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.3817, allocations: 41.22 kB / 445.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.383, allocations: 2.068 MB / 447.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004722/0.3835, allocations: 437 kB / 448 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.3848, allocations: 0.8846 MB / 448.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.999e-05/0.3848, allocations: 305.1 kB / 449.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002067/0.3869, allocations: 1.41 MB / 450.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003564/0.3905, allocations: 4.237 MB / 454.8 MB, free: 4.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005981/0.3965, allocations: 6.12 MB / 460.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-05/0.3966, allocations: 32 kB / 461 MB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01059/0.4072, allocations: 6.084 MB / 467.1 MB, free: 6.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/0.4073, allocations: 48 kB / 467.1 MB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.4074, allocations: 100.9 kB / 467.2 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/0.4097, allocations: 0.8006 MB / 468 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/0.4126, allocations: 0.9825 MB / 469 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005353/0.418, allocations: 4.156 MB / 473.1 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003097/0.4211, allocations: 255.5 kB / 473.4 MB, free: 252 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000652/0.4217, allocations: 273 kB / 473.7 MB, free: 15.98 MB / 398.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.002745/0.4245, allocations: 1.37 MB / 475 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005549/0.4251, allocations: 233 kB / 475.3 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004305/0.4294, allocations: 1.849 MB / 477.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.4294, allocations: 12 kB / 477.1 MB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.4294, allocations: 4 kB / 477.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4295, allocations: 7.984 kB / 477.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009716/0.4392, allocations: 4.817 MB / 481.9 MB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.4392, allocations: 4 kB / 481.9 MB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006022/0.4398, allocations: 131.8 kB / 482.1 MB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.4418, allocations: 0.6447 MB / 482.7 MB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.461e-05/0.4419, allocations: 28.05 kB / 482.7 MB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/0.4465, allocations: 3.682 MB / 486.4 MB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.4465, allocations: 8.094 kB / 486.4 MB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005643/0.4521, allocations: 3.689 MB / 490.1 MB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006638/0.4528, allocations: 293.9 kB / 490.4 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004777/0.4533, allocations: 16 kB / 490.4 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.4543, allocations: 63.91 kB / 490.5 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.4545, allocations: 47.92 kB / 490.5 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.499e-05/0.4546, allocations: 34.81 kB / 490.6 MB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00337/0.458, allocations: 1.758 MB / 492.3 MB, free: 13.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.458, allocations: 4.062 kB / 492.3 MB, free: 13.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003426/0.4614, allocations: 0.6484 MB / 493 MB, free: 12.37 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.005871/0.4673, allocations: 4.313 MB / 497.3 MB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005119/0.4724, allocations: 3.392 MB / 0.489 GB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.4725, allocations: 0 / 0.489 GB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.4736, allocations: 0.9399 MB / 0.4899 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.4756, allocations: 250.4 kB / 0.4901 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1926/0.6682, allocations: 33.42 MB / 0.5227 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002025/0.6703, allocations: 2.189 MB / 0.5249 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003326/0.6736, allocations: 1.398 MB / 0.5263 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/0.6748, allocations: 1.054 MB / 0.5273 GB, free: 151.1 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6748, allocations: 0 / 0.5273 GB, free: 151.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7038/1.379, allocations: 43.54 MB / 0.5698 GB, free: 121.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/1.379, allocations: 230.7 kB / 0.57 GB, free: 120.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.391/4.77, allocations: 6.375 kB / 0.57 GB, free: 120.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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