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.001046/0.001046, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 59.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3155, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0106/0.3262, allocations: 10.25 MB / 419.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008123/0.3343, allocations: 3.882 MB / 423.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0027/0.3371, allocations: 59.81 kB / 423.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004233/0.3414, allocations: 2.071 MB / 425.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004415/0.3458, allocations: 1.607 MB / 427.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.3475, allocations: 0.6862 MB / 427.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004444/0.352, allocations: 3.385 MB / 431.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002924/0.3549, allocations: 2.684 MB / 433.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.3568, allocations: 1.25 MB / 435.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.3593, allocations: 1.748 MB / 436.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005847/0.3599, allocations: 264 kB / 437.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.362, allocations: 1.108 MB / 438.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001418/0.3634, allocations: 1.57 MB / 439.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.365, allocations: 1.84 MB / 441.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005861/0.3709, allocations: 5.887 MB / 447.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3709, allocations: 0 / 447.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3709, allocations: 0 / 447.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.473e-05/0.371, allocations: 3.938 kB / 447.5 MB, free: 11.13 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.00741/0.3784, allocations: 4.106 MB / 451.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3785, allocations: 8.031 kB / 451.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006676/0.3852, allocations: 1.852 MB / 453.5 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/0.3907, allocations: 1.886 MB / 455.4 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.3909, allocations: 201.2 kB / 455.6 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.392, allocations: 271.8 kB / 455.9 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02408/0.4161, allocations: 10 MB / 465.9 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.4163, allocations: 43.62 kB / 465.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004316/0.4167, allocations: 143.8 kB / 466 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002828/0.4196, allocations: 1.848 MB / 467.9 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.4371, allocations: 8.564 MB / 476.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04093/0.478, allocations: 36.69 MB / 0.5011 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009886/0.488, allocations: 3.901 MB / 0.5049 GB, free: 3.566 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/0.4904, allocations: 1.826 MB / 0.5067 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01369/0.5042, allocations: 7.611 MB / 0.5141 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.451e-05/0.5043, allocations: 51.5 kB / 0.5142 GB, free: 9.762 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 7.073e-06/0.5043, allocations: 0 / 0.5142 GB, free: 9.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05406/0.5584, allocations: 17.54 MB / 0.5313 GB, free: 8.094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.5585, allocations: 149.5 kB / 0.5315 GB, free: 7.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005345/0.5638, allocations: 3.461 MB / 0.5348 GB, free: 4.453 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003202/0.5642, allocations: 49.7 kB / 0.5349 GB, free: 4.398 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002333/0.5665, allocations: 2.736 MB / 0.5376 GB, free: 1.625 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009977/0.5675, allocations: 0.6441 MB / 0.5382 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2102/0.7778, allocations: 1.114 MB / 0.5393 GB, free: 126 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.7778, allocations: 308 kB / 0.5396 GB, free: 125.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004201/0.7821, allocations: 1.963 MB / 0.5415 GB, free: 125.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004094/0.7862, allocations: 5.389 MB / 0.5468 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00726/0.7935, allocations: 7.96 MB / 0.5545 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.34e-05/0.7935, allocations: 39.09 kB / 0.5546 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01255/0.8061, allocations: 8.188 MB / 0.5626 GB, free: 109.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.62e-05/0.8062, allocations: 60 kB / 0.5626 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-05/0.8063, allocations: 120 kB / 0.5627 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003491/0.8098, allocations: 1.296 MB / 0.564 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003315/0.8131, allocations: 1.272 MB / 0.5652 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007071/0.8202, allocations: 6.536 MB / 0.5716 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003537/0.8237, allocations: 307.8 kB / 0.5719 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004356/0.8242, allocations: 340 kB / 0.5722 GB, free: 100.9 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.001948/0.8261, allocations: 1.806 MB / 0.574 GB, free: 99.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/0.8266, allocations: 316.5 kB / 0.5743 GB, free: 98.95 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006121/0.8327, allocations: 3.381 MB / 0.5776 GB, free: 95.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/0.8327, allocations: 20 kB / 0.5776 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.8327, allocations: 4 kB / 0.5776 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.8328, allocations: 7.969 kB / 0.5776 GB, free: 95.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.8442, allocations: 7.585 MB / 0.5851 GB, free: 87.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.8443, allocations: 4 kB / 0.5851 GB, free: 87.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.8453, allocations: 247.6 kB / 0.5853 GB, free: 87.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/0.8486, allocations: 1.117 MB / 0.5864 GB, free: 86.58 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001526/0.8488, allocations: 27.98 kB / 0.5864 GB, free: 86.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006946/0.8557, allocations: 6.162 MB / 0.5924 GB, free: 80.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.8558, allocations: 11.8 kB / 0.5924 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008593/0.8644, allocations: 5.74 MB / 0.598 GB, free: 74.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008347/0.8653, allocations: 361 kB / 0.5984 GB, free: 74.24 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/0.8656, allocations: 20 kB / 0.5984 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.8668, allocations: 103.5 kB / 0.5985 GB, free: 74.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.8671, allocations: 96.75 kB / 0.5986 GB, free: 74.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.8672, allocations: 44 kB / 0.5986 GB, free: 73.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002596/0.8698, allocations: 2.142 MB / 0.6007 GB, free: 71.86 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8698, allocations: 4 kB / 0.6007 GB, free: 71.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003702/0.8735, allocations: 0.8972 MB / 0.6016 GB, free: 70.96 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.0003379/0.8739, allocations: 160.2 kB / 0.6018 GB, free: 70.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006093/0.88, allocations: 4.825 MB / 0.6065 GB, free: 66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.88, allocations: 0 / 0.6065 GB, free: 66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.882, allocations: 1.554 MB / 0.608 GB, free: 64.44 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.8838, allocations: 348 kB / 0.6083 GB, free: 64.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.8949, allocations: 8.001 MB / 0.6161 GB, free: 56.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/0.897, allocations: 2.85 MB / 0.6189 GB, free: 53.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003051/0.9001, allocations: 1.697 MB / 0.6206 GB, free: 51.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005468/0.9007, allocations: 219.4 kB / 0.6208 GB, free: 51.27 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.9007, allocations: 0 / 0.6208 GB, free: 51.27 MB / 462.1 MB Notification: Performance of Templates: time 0.04884/0.9495, allocations: 30.94 MB / 0.651 GB, free: 20.52 MB / 462.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","/var/lib/jenkins/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