Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.00135, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.6 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2609, allocations: 50.56 MB / 410 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01091/0.2718, allocations: 10.24 MB / 420.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007944/0.2798, allocations: 3.882 MB / 424.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.2811, allocations: 59.81 kB / 424.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003694/0.2848, allocations: 2.075 MB / 426.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003796/0.2886, allocations: 1.603 MB / 427.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.2903, allocations: 0.694 MB / 428.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004667/0.295, allocations: 3.385 MB / 431.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003355/0.2984, allocations: 2.686 MB / 434.6 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.3003, allocations: 1.25 MB / 435.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002277/0.3026, allocations: 1.748 MB / 437.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006176/0.3032, allocations: 260 kB / 437.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.3053, allocations: 1.108 MB / 438.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001448/0.3068, allocations: 1.57 MB / 440.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001973/0.3088, allocations: 1.844 MB / 442.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006101/0.3149, allocations: 5.886 MB / 448.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3149, allocations: 0 / 448.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3149, allocations: 0 / 448.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001269/0.3151, allocations: 0 / 448.2 MB, free: 11.31 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007271/0.3223, allocations: 4.11 MB / 452.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3224, allocations: 8.031 kB / 452.3 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006606/0.329, allocations: 1.852 MB / 454.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003285/0.3323, allocations: 1.893 MB / 456.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.3325, allocations: 205.2 kB / 456.3 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004813/0.333, allocations: 267.8 kB / 456.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.3504, allocations: 10 MB / 466.6 MB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.3506, allocations: 43.69 kB / 466.6 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003887/0.351, allocations: 135.8 kB / 466.7 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003077/0.3541, allocations: 1.856 MB / 468.6 MB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.3715, allocations: 8.563 MB / 477.2 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04084/0.4123, allocations: 36.68 MB / 0.5018 GB, free: 7.844 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009878/0.4222, allocations: 3.901 MB / 0.5056 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00234/0.4246, allocations: 1.814 MB / 0.5074 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.4351, allocations: 7.607 MB / 0.5148 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.4352, allocations: 59.5 kB / 0.5149 GB, free: 9.949 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.858e-06/0.4352, allocations: 0 / 0.5149 GB, free: 9.949 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05401/0.4892, allocations: 17.54 MB / 0.532 GB, free: 8.277 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.4894, allocations: 153.5 kB / 0.5321 GB, free: 8.098 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004694/0.4941, allocations: 3.457 MB / 0.5355 GB, free: 4.637 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003156/0.4944, allocations: 53.7 kB / 0.5356 GB, free: 4.578 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.4963, allocations: 2.728 MB / 0.5382 GB, free: 1.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/0.497, allocations: 0.6479 MB / 0.5389 GB, free: 1.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.4983, allocations: 1.119 MB / 0.54 GB, free: 32 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.2233/0.7217, allocations: 309.4 kB / 0.5402 GB, free: 125.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004134/0.7259, allocations: 1.964 MB / 0.5422 GB, free: 125.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004111/0.73, allocations: 5.387 MB / 0.5474 GB, free: 120.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006597/0.7366, allocations: 7.954 MB / 0.5552 GB, free: 113.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.604e-05/0.7367, allocations: 34 kB / 0.5552 GB, free: 113.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01287/0.7496, allocations: 8.201 MB / 0.5632 GB, free: 110.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/0.7497, allocations: 56 kB / 0.5633 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.753e-05/0.7498, allocations: 124 kB / 0.5634 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003714/0.7535, allocations: 1.29 MB / 0.5647 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003383/0.7569, allocations: 1.267 MB / 0.5659 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00722/0.7641, allocations: 6.549 MB / 0.5723 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/0.7677, allocations: 300.7 kB / 0.5726 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000412/0.7682, allocations: 347.6 kB / 0.5729 GB, free: 101.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001994/0.7702, allocations: 1.808 MB / 0.5747 GB, free: 99.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.7706, allocations: 312.9 kB / 0.575 GB, free: 99.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006163/0.7767, allocations: 3.373 MB / 0.5783 GB, free: 95.92 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/0.7768, allocations: 16 kB / 0.5783 GB, free: 95.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.7768, allocations: 12 kB / 0.5783 GB, free: 95.89 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.7768, allocations: 7.969 kB / 0.5783 GB, free: 95.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.7881, allocations: 7.587 MB / 0.5857 GB, free: 88.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.7881, allocations: 4 kB / 0.5857 GB, free: 88.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.7892, allocations: 247.6 kB / 0.586 GB, free: 88.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003445/0.7927, allocations: 1.118 MB / 0.587 GB, free: 86.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.7929, allocations: 27.98 kB / 0.5871 GB, free: 86.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006807/0.7997, allocations: 6.165 MB / 0.5931 GB, free: 80.67 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7997, allocations: 12.05 kB / 0.5931 GB, free: 80.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008245/0.8079, allocations: 5.74 MB / 0.5987 GB, free: 74.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/0.8086, allocations: 353 kB / 0.5991 GB, free: 74.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/0.809, allocations: 24 kB / 0.5991 GB, free: 74.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.8102, allocations: 103.9 kB / 0.5992 GB, free: 74.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.8105, allocations: 88.81 kB / 0.5993 GB, free: 74.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.8106, allocations: 47.83 kB / 0.5993 GB, free: 74.35 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.813, allocations: 2.142 MB / 0.6014 GB, free: 72.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.813, allocations: 3.75 kB / 0.6014 GB, free: 72.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003661/0.8167, allocations: 0.8932 MB / 0.6023 GB, free: 71.33 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003662/0.8171, allocations: 167.9 kB / 0.6024 GB, free: 71.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005863/0.8229, allocations: 4.823 MB / 0.6071 GB, free: 66.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.823, allocations: 0 / 0.6071 GB, free: 66.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.8248, allocations: 1.546 MB / 0.6086 GB, free: 64.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.8266, allocations: 356.9 kB / 0.609 GB, free: 64.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.8376, allocations: 8.39 MB / 0.6172 GB, free: 56.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/0.8398, allocations: 2.85 MB / 0.62 GB, free: 53.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007796/0.8406, allocations: 255.4 kB / 0.6202 GB, free: 52.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.8406, allocations: 4 kB / 0.6202 GB, free: 52.9 MB / 462.1 MB Notification: Performance of Templates: time 0.06807/0.9087, allocations: 66.04 MB / 0.6847 GB, free: 2.938 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches