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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002099/0.002099, allocations: 100.2 kB / 18.39 MB, free: 4.531 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.002564/0.002564, allocations: 188.3 kB / 19.33 MB, free: 3.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001444/0.001444, allocations: 47.94 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.103, allocations: 46.61 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.2172/0.3202, allocations: 7.13 MB / 382.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006537/0.3268, allocations: 3.162 MB / 386.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/0.3291, allocations: 30.56 kB / 386.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002592/0.3318, allocations: 0.7842 MB / 386.9 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.3361, allocations: 1.316 MB / 388.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.3376, allocations: 0.4941 MB / 388.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005441/0.3431, allocations: 2.54 MB / 391.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.3456, allocations: 1.16 MB / 392.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.3476, allocations: 0.7664 MB / 393.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.3499, allocations: 1.11 MB / 394.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007011/0.3506, allocations: 134.2 kB / 394.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002577/0.3532, allocations: 0.8787 MB / 395.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001753/0.355, allocations: 1.001 MB / 396.3 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002726/0.3577, allocations: 1.191 MB / 397.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006892/0.3646, allocations: 3.963 MB / 401.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3647, allocations: 0 / 401.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.3647, allocations: 3.938 kB / 401.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001949/0.3649, allocations: 1 kB / 401.5 MB, free: 1.371 MB / 318.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.01006/0.375, allocations: 2.887 MB / 404.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.375, allocations: 13.12 kB / 404.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00732/0.3824, allocations: 1.634 MB / 406 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/0.3864, allocations: 1.386 MB / 407.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.3866, allocations: 119.8 kB / 407.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/0.3878, allocations: 160.1 kB / 407.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.4018, allocations: 6.367 MB / 414 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.349e-05/0.4019, allocations: 27.72 kB / 414.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003534/0.4023, allocations: 79.89 kB / 414.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/0.4049, allocations: 1.445 MB / 415.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.4165, allocations: 5.663 MB / 421.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0334/0.45, allocations: 26.2 MB / 447.4 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004493/0.4545, allocations: 2.27 MB / 449.7 MB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.456, allocations: 1.031 MB / 450.7 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.961e-05/0.4561, allocations: 8 kB / 450.8 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.4562, allocations: 42.56 kB / 450.8 MB, free: 2.902 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 4.939e-06/0.4562, allocations: 0 / 450.8 MB, free: 2.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.02167/0.4778, allocations: 8.624 MB / 459.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.478, allocations: 144.4 kB / 459.6 MB, free: 9.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004057/0.482, allocations: 2.824 MB / 462.4 MB, free: 7.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002582/0.4823, allocations: 45.7 kB / 462.4 MB, free: 7.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.4839, allocations: 2.063 MB / 464.5 MB, free: 4.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005897/0.4845, allocations: 442.6 kB / 464.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/0.4857, allocations: 0.8808 MB / 465.8 MB, free: 3.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4858, allocations: 305.3 kB / 466.1 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/0.4881, allocations: 1.41 MB / 467.5 MB, free: 1.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/0.4921, allocations: 4.25 MB / 471.8 MB, free: 12.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007346/0.4995, allocations: 6.138 MB / 477.9 MB, free: 4.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.901e-05/0.4996, allocations: 28 kB / 477.9 MB, free: 4.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.0132/0.5128, allocations: 6.109 MB / 484 MB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.038e-05/0.513, allocations: 52 kB / 484.1 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.5131, allocations: 100 kB / 484.2 MB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/0.5155, allocations: 0.7927 MB / 485 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003402/0.5189, allocations: 0.9941 MB / 486 MB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005846/0.5248, allocations: 4.481 MB / 490.5 MB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/0.5286, allocations: 239.6 kB / 490.7 MB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007727/0.5294, allocations: 284 kB / 491 MB, free: 7.477 MB / 414.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 (537): * Single equations (assignments): 533 * 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.002855/0.5322, allocations: 1.368 MB / 492.3 MB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/0.5328, allocations: 229 kB / 492.6 MB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003972/0.5368, allocations: 1.857 MB / 494.4 MB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.744e-05/0.5369, allocations: 12 kB / 494.4 MB, free: 3.984 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.5369, allocations: 7.938 kB / 494.4 MB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.5369, allocations: 11.97 kB / 494.4 MB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009554/0.5465, allocations: 4.789 MB / 499.2 MB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.5465, allocations: 3.984 kB / 499.2 MB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006663/0.5472, allocations: 143.8 kB / 499.4 MB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.5492, allocations: 0.6405 MB / 0.4883 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.5494, allocations: 16 kB / 0.4883 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004875/0.5542, allocations: 3.956 MB / 0.4922 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5543, allocations: 0 / 0.4922 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006273/0.5606, allocations: 3.697 MB / 0.4958 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.5621, allocations: 437.9 kB / 0.4962 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004249/0.5625, allocations: 12 kB / 0.4962 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.5635, allocations: 67.84 kB / 0.4963 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.5637, allocations: 47.94 kB / 0.4963 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.588e-05/0.5638, allocations: 35.98 kB / 0.4964 GB, free: 5.848 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003069/0.5669, allocations: 1.758 MB / 0.4981 GB, free: 4.082 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5669, allocations: 4.062 kB / 0.4981 GB, free: 4.078 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004455/0.5714, allocations: 0.6523 MB / 0.4987 GB, free: 3.426 MB / 430.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.0004695/0.5719, allocations: 143 kB / 0.4989 GB, free: 3.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005933/0.5778, allocations: 3.421 MB / 0.5022 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.5778, allocations: 0 / 0.5022 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.5791, allocations: 0.9323 MB / 0.5031 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.5815, allocations: 264.7 kB / 0.5034 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.5927, allocations: 5.711 MB / 0.5089 GB, free: 8.898 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/0.5951, allocations: 2.188 MB / 0.5111 GB, free: 6.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007241/0.5958, allocations: 199.4 kB / 0.5113 GB, free: 6.484 MB / 446.1 MB Notification: Performance of SimCode: time 1.864e-06/0.5958, allocations: 3.938 kB / 0.5113 GB, free: 6.48 MB / 446.1 MB Notification: Performance of Templates: time 0.2863/0.8822, allocations: 47.56 MB / 0.5577 GB, free: 152.3 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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