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.001299/0.001299, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 59.53 kB / 307.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08203, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01098/0.09305, allocations: 10.25 MB / 368.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1431/0.2362, allocations: 3.89 MB / 372.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.2377, allocations: 53.41 kB / 372.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003804/0.2416, allocations: 2.063 MB / 374.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2454, allocations: 1.608 MB / 376 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.2469, allocations: 0.6931 MB / 376.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004466/0.2514, allocations: 3.386 MB / 380.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00351/0.2549, allocations: 2.685 MB / 382.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.2568, allocations: 1.241 MB / 384 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002075/0.2589, allocations: 1.758 MB / 385.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005929/0.2595, allocations: 263.1 kB / 386 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.2614, allocations: 1.103 MB / 387.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.2627, allocations: 1.553 MB / 388.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.2642, allocations: 1.85 MB / 390.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004882/0.2691, allocations: 5.676 MB / 396.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2691, allocations: 4 kB / 396.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2691, allocations: 0 / 396.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.2693, allocations: 0 / 396.2 MB, free: 0.9727 MB / 302.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.008049/0.2773, allocations: 4.104 MB / 400.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2774, allocations: 7.5 kB / 400.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006672/0.284, allocations: 1.852 MB / 402.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003632/0.2877, allocations: 1.848 MB / 404 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.2879, allocations: 220.2 kB / 404.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006087/0.2885, allocations: 269.4 kB / 404.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.3066, allocations: 10.01 MB / 414.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-05/0.3068, allocations: 39.59 kB / 414.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003564/0.3071, allocations: 128.8 kB / 414.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002875/0.31, allocations: 1.851 MB / 416.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/0.327, allocations: 8.575 MB / 425.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04264/0.3697, allocations: 36.84 MB / 461.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.3798, allocations: 3.901 MB / 465.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002571/0.3824, allocations: 1.806 MB / 467.7 MB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.3938, allocations: 7.619 MB / 475.3 MB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.3939, allocations: 63.42 kB / 475.3 MB, free: 1.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.368e-06/0.3939, allocations: 0 / 475.3 MB, free: 1.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05317/0.4471, allocations: 17.53 MB / 492.9 MB, free: 88 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.483e-05/0.4472, allocations: 145.5 kB / 493 MB, free: 15.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005805/0.453, allocations: 3.465 MB / 496.5 MB, free: 12.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002621/0.4533, allocations: 49.7 kB / 496.5 MB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.4554, allocations: 2.731 MB / 499.3 MB, free: 9.664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000787/0.4561, allocations: 0.6459 MB / 499.9 MB, free: 9.023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/0.4581, allocations: 1.118 MB / 0.4893 GB, free: 7.898 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.4582, allocations: 301.1 kB / 0.4896 GB, free: 7.602 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/0.4616, allocations: 1.967 MB / 0.4915 GB, free: 5.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005704/0.4673, allocations: 5.385 MB / 0.4967 GB, free: 14.53 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00953/0.4768, allocations: 7.958 MB / 0.5045 GB, free: 4.875 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.477, allocations: 36 kB / 0.5045 GB, free: 4.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01718/0.4942, allocations: 8.189 MB / 0.5125 GB, free: 12.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.4944, allocations: 61 kB / 0.5126 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001915/0.4946, allocations: 124 kB / 0.5127 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004126/0.4987, allocations: 1.302 MB / 0.514 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/0.5029, allocations: 1.275 MB / 0.5152 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00971/0.5127, allocations: 6.549 MB / 0.5216 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004491/0.5172, allocations: 303.5 kB / 0.5219 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/0.5183, allocations: 343.9 kB / 0.5222 GB, free: 2.562 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 (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.0039/0.5222, allocations: 1.815 MB / 0.524 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006923/0.5229, allocations: 300.1 kB / 0.5243 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1773/0.7003, allocations: 3.382 MB / 0.5276 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.296e-05/0.7003, allocations: 17.75 kB / 0.5276 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.311e-05/0.7004, allocations: 5.531 kB / 0.5276 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.154e-05/0.7004, allocations: 14.53 kB / 0.5276 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/0.7175, allocations: 7.614 MB / 0.5351 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.7175, allocations: 1.75 kB / 0.5351 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.7188, allocations: 248.1 kB / 0.5353 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00367/0.7225, allocations: 1.124 MB / 0.5364 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002593/0.7228, allocations: 27.44 kB / 0.5364 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007984/0.7308, allocations: 6.175 MB / 0.5425 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.7308, allocations: 2 kB / 0.5425 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009548/0.7404, allocations: 5.748 MB / 0.5481 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008922/0.7413, allocations: 351.6 kB / 0.5484 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007018/0.742, allocations: 23.38 kB / 0.5484 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.7437, allocations: 103.3 kB / 0.5485 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.744, allocations: 88.45 kB / 0.5486 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.7442, allocations: 50.86 kB / 0.5487 GB, free: 135 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003588/0.7478, allocations: 2.14 MB / 0.5508 GB, free: 134.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7478, allocations: 0 / 0.5508 GB, free: 134.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004661/0.7524, allocations: 0.8977 MB / 0.5516 GB, free: 134.2 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 (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.0005231/0.753, allocations: 157 kB / 0.5518 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008227/0.7612, allocations: 5.577 MB / 0.5572 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.7613, allocations: 0 / 0.5572 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.7634, allocations: 1.538 MB / 0.5587 GB, free: 130.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.766, allocations: 361.3 kB / 0.5591 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.7795, allocations: 8.488 MB / 0.5674 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002452/0.782, allocations: 2.851 MB / 0.5702 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008183/0.7829, allocations: 255.4 kB / 0.5704 GB, free: 118.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.7829, allocations: 0 / 0.5704 GB, free: 118.2 MB / 446.1 MB Notification: Performance of Templates: time 0.06123/0.8441, allocations: 65.47 MB / 0.6343 GB, free: 52.79 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/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