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.001045/0.001045, allocations: 96.45 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 203.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002405, allocations: 8 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1044, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2363/0.3407, allocations: 29.71 MB / 387.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01783/0.3586, allocations: 7.737 MB / 395.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005877/0.3646, allocations: 144.6 kB / 395.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005102/0.3697, allocations: 1.426 MB / 397.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01503/0.3848, allocations: 4.33 MB / 401.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002716/0.3875, allocations: 0.5533 MB / 402 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003935/0.3914, allocations: 1.968 MB / 403.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004255/0.3957, allocations: 3.334 MB / 407.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.397, allocations: 0.857 MB / 408.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.3984, allocations: 1.194 MB / 409.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000304/0.3987, allocations: 126.9 kB / 409.4 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.4002, allocations: 0.8417 MB / 410.3 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.4014, allocations: 1.305 MB / 411.6 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006856/0.402, allocations: 0.7025 MB / 412.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004417/0.4065, allocations: 4.487 MB / 416.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4065, allocations: 0 / 416.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4065, allocations: 0 / 416.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.371e-05/0.4066, allocations: 0 / 416.8 MB, free: 0.9805 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006671/0.4133, allocations: 3.491 MB / 420.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.4133, allocations: 12.03 kB / 420.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007686/0.421, allocations: 2.241 MB / 422.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/0.4255, allocations: 1.909 MB / 424.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/0.4257, allocations: 209.2 kB / 424.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006305/0.4263, allocations: 275.7 kB / 424.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01957/0.4459, allocations: 10.11 MB / 435 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.4461, allocations: 35.69 kB / 435.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000383/0.4465, allocations: 127.9 kB / 435.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002983/0.4495, allocations: 1.852 MB / 437 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.4668, allocations: 8.688 MB / 445.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0459/0.5128, allocations: 37.35 MB / 483.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02729/0.5401, allocations: 6.483 MB / 489.6 MB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01856/0.5587, allocations: 8.673 MB / 498.2 MB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.122e-05/0.5589, allocations: 47.5 kB / 498.3 MB, free: 13.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 6.843e-06/0.5589, allocations: 0 / 498.3 MB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.086/0.6449, allocations: 23.86 MB / 0.5099 GB, free: 5.062 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.645, allocations: 149.5 kB / 0.51 GB, free: 4.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/0.6491, allocations: 3.571 MB / 0.5135 GB, free: 1.312 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001992/0.6493, allocations: 49.7 kB / 0.5136 GB, free: 1.258 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.6509, allocations: 2.736 MB / 0.5163 GB, free: 14.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006548/0.6516, allocations: 0.6441 MB / 0.5169 GB, free: 13.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.6518, allocations: 112 kB / 0.517 GB, free: 13.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003363/0.6521, allocations: 0.5337 MB / 0.5175 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002974/0.6551, allocations: 2.045 MB / 0.5195 GB, free: 11.13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005113/0.6602, allocations: 5.447 MB / 0.5248 GB, free: 3.969 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004768/0.665, allocations: 3.222 MB / 0.528 GB, free: 0.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.589e-05/0.6651, allocations: 39.95 kB / 0.528 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.2248/0.8899, allocations: 8.349 MB / 0.5362 GB, free: 116.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-05/0.8901, allocations: 61.84 kB / 0.5362 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/0.8902, allocations: 120.6 kB / 0.5363 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004634/0.8949, allocations: 1.311 MB / 0.5376 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004763/0.8997, allocations: 1.285 MB / 0.5389 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008163/0.9079, allocations: 6.267 MB / 0.545 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004245/0.9121, allocations: 328.4 kB / 0.5453 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005828/0.9127, allocations: 342.5 kB / 0.5456 GB, free: 115.4 MB / 446.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 (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002314/0.915, allocations: 1.808 MB / 0.5474 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.9154, allocations: 303 kB / 0.5477 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006581/0.922, allocations: 3.616 MB / 0.5512 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.9221, allocations: 19.39 kB / 0.5512 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.9221, allocations: 3.719 kB / 0.5512 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.9221, allocations: 7.547 kB / 0.5512 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.9347, allocations: 8.028 MB / 0.5591 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.9348, allocations: 0 / 0.5591 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.936, allocations: 273.9 kB / 0.5593 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003438/0.9394, allocations: 1.118 MB / 0.5604 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.9396, allocations: 25.25 kB / 0.5605 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007145/0.9467, allocations: 5.888 MB / 0.5662 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.9468, allocations: 0 / 0.5662 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008521/0.9553, allocations: 6.185 MB / 0.5723 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009222/0.9562, allocations: 370.8 kB / 0.5726 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003361/0.9566, allocations: 25.17 kB / 0.5726 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.9579, allocations: 120.9 kB / 0.5727 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.9581, allocations: 84.88 kB / 0.5728 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.9582, allocations: 44.7 kB / 0.5729 GB, free: 100.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.9611, allocations: 2.228 MB / 0.575 GB, free: 98.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9611, allocations: 2.438 kB / 0.575 GB, free: 98.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004642/0.9657, allocations: 0.929 MB / 0.576 GB, free: 97.8 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004613/0.9662, allocations: 176 kB / 0.5761 GB, free: 97.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006456/0.9727, allocations: 4.98 MB / 0.581 GB, free: 93.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.9727, allocations: 4 kB / 0.581 GB, free: 93.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001942/0.9746, allocations: 1.647 MB / 0.5826 GB, free: 91.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.976, allocations: 332.7 kB / 0.5829 GB, free: 91.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.9872, allocations: 9.676 MB / 0.5924 GB, free: 81.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/0.9894, allocations: 2.925 MB / 0.5952 GB, free: 78.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003467/0.9928, allocations: 1.735 MB / 0.5969 GB, free: 76.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005184/0.9934, allocations: 215.4 kB / 0.5971 GB, free: 76.46 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.9934, allocations: 4 kB / 0.5971 GB, free: 76.46 MB / 446.1 MB Notification: Performance of Templates: time 0.04932/1.043, allocations: 32.5 MB / 0.6289 GB, free: 44.2 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches