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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001661/0.001661, allocations: 108.4 kB / 17.74 MB, free: 5.23 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.001813/0.001813, allocations: 188.5 kB / 18.67 MB, free: 4.309 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.443/1.443, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3059, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008019/0.314, allocations: 7.111 MB / 408.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006431/0.3204, allocations: 3.15 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.3215, allocations: 31.88 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.3232, allocations: 0.782 MB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002993/0.3263, allocations: 1.326 MB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3274, allocations: 495 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003205/0.3306, allocations: 2.534 MB / 416.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.332, allocations: 1.157 MB / 418 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009677/0.333, allocations: 0.7627 MB / 418.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001193/0.3342, allocations: 1.098 MB / 419.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.3345, allocations: 132 kB / 420 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.3359, allocations: 0.8853 MB / 420.9 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008381/0.3368, allocations: 1.001 MB / 421.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.3378, allocations: 1.195 MB / 423.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003929/0.3417, allocations: 3.963 MB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3417, allocations: 3.938 kB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3418, allocations: 0 / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.252e-05/0.3418, allocations: 0 / 427 MB, free: 15.16 MB / 350.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.004656/0.3465, allocations: 2.882 MB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3465, allocations: 12.03 kB / 429.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005664/0.3522, allocations: 1.643 MB / 431.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002641/0.3549, allocations: 1.328 MB / 432.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.459e-05/0.355, allocations: 126.8 kB / 433 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003035/0.3553, allocations: 155.8 kB / 433.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009052/0.3644, allocations: 6.355 MB / 439.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-05/0.3645, allocations: 27.75 kB / 439.5 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.3647, allocations: 83.89 kB / 439.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002355/0.3671, allocations: 1.441 MB / 441.1 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009459/0.3766, allocations: 5.674 MB / 446.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02971/0.4063, allocations: 26.2 MB / 472.9 MB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004353/0.4107, allocations: 2.266 MB / 475.2 MB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.412, allocations: 1.019 MB / 476.2 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.503e-05/0.4121, allocations: 15.92 kB / 476.2 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4122, allocations: 42.56 kB / 476.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.409e-06/0.4122, allocations: 0 / 476.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02122/0.4334, allocations: 8.591 MB / 484.9 MB, free: 3.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.325e-05/0.4335, allocations: 136.5 kB / 485 MB, free: 3.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004884/0.4384, allocations: 2.819 MB / 487.8 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/0.4386, allocations: 41.7 kB / 487.9 MB, free: 476 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/0.4403, allocations: 2.075 MB / 489.9 MB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005326/0.4409, allocations: 434.6 kB / 490.4 MB, free: 13.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/0.4423, allocations: 0.8847 MB / 491.3 MB, free: 13.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4424, allocations: 305.1 kB / 491.6 MB, free: 12.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/0.4444, allocations: 1.41 MB / 493 MB, free: 11.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003975/0.4484, allocations: 4.254 MB / 497.2 MB, free: 5.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007091/0.4555, allocations: 6.131 MB / 0.4915 GB, free: 14.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.018e-05/0.4556, allocations: 28 kB / 0.4916 GB, free: 14.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.0112/0.4668, allocations: 6.109 MB / 0.4975 GB, free: 7.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.084e-05/0.467, allocations: 51.98 kB / 0.4976 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/0.4671, allocations: 100.1 kB / 0.4977 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.4693, allocations: 0.8008 MB / 0.4985 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002897/0.4722, allocations: 0.9981 MB / 0.4994 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005529/0.4778, allocations: 4.466 MB / 0.5038 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/0.4809, allocations: 251.4 kB / 0.504 GB, free: 1.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004896/0.4814, allocations: 276 kB / 0.5043 GB, free: 0.8711 MB / 430.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.002069/0.4835, allocations: 1.372 MB / 0.5056 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.4839, allocations: 229 kB / 0.5059 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003755/0.4877, allocations: 1.849 MB / 0.5077 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.911e-05/0.4877, allocations: 15.94 kB / 0.5077 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.4877, allocations: 4 kB / 0.5077 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.4878, allocations: 7.984 kB / 0.5077 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008515/0.4963, allocations: 4.789 MB / 0.5124 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.4963, allocations: 8 kB / 0.5124 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006231/0.497, allocations: 127.9 kB / 0.5125 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00193/0.4989, allocations: 0.6443 MB / 0.5131 GB, free: 7.715 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.499, allocations: 24.05 kB / 0.5132 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004898/0.5039, allocations: 3.96 MB / 0.517 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.504, allocations: 0 / 0.517 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006016/0.51, allocations: 3.685 MB / 0.5206 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008292/0.5109, allocations: 293.9 kB / 0.5209 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.5111, allocations: 23.92 kB / 0.5209 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008997/0.512, allocations: 55.92 kB / 0.521 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.5122, allocations: 55.92 kB / 0.521 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.967e-05/0.5123, allocations: 24 kB / 0.5211 GB, free: 15.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002957/0.5153, allocations: 1.766 MB / 0.5228 GB, free: 13.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5153, allocations: 0 / 0.5228 GB, free: 13.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003459/0.5187, allocations: 0.6406 MB / 0.5234 GB, free: 13 MB / 462.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.0003619/0.5191, allocations: 153.3 kB / 0.5235 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005579/0.5247, allocations: 3.43 MB / 0.5269 GB, free: 9.422 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5248, allocations: 4.875 kB / 0.5269 GB, free: 9.418 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.5261, allocations: 0.9239 MB / 0.5278 GB, free: 8.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.5278, allocations: 249.2 kB / 0.528 GB, free: 8.234 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008754/0.5366, allocations: 5.709 MB / 0.5336 GB, free: 2.469 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/0.5386, allocations: 2.18 MB / 0.5357 GB, free: 260 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005995/0.5392, allocations: 195.4 kB / 0.5359 GB, free: 64 kB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5393, allocations: 0 / 0.5359 GB, free: 64 kB / 462.1 MB Notification: Performance of Templates: time 0.2742/0.8135, allocations: 47.91 MB / 0.5827 GB, free: 92.41 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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