Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 116 kB / 17.75 MB, free: 5.223 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.001104/0.001104, allocations: 181.4 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2187, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01026/0.229, allocations: 10.28 MB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00636/0.2353, allocations: 3.868 MB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.2364, allocations: 55.88 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003715/0.2402, allocations: 2.079 MB / 417.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.2437, allocations: 1.673 MB / 419.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.2451, allocations: 0.6979 MB / 420.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003789/0.2489, allocations: 3.36 MB / 423.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002949/0.2519, allocations: 2.688 MB / 426.1 MB, free: 28 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.2537, allocations: 1.254 MB / 427.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002415/0.2561, allocations: 1.76 MB / 429.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007012/0.2568, allocations: 260 kB / 429.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002172/0.259, allocations: 1.131 MB / 430.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/0.2608, allocations: 1.578 MB / 432.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002559/0.2634, allocations: 1.864 MB / 434 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005601/0.269, allocations: 5.941 MB / 439.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.269, allocations: 0 / 439.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2691, allocations: 0 / 439.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.434e-05/0.2691, allocations: 0 / 439.9 MB, free: 2.199 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006368/0.2755, allocations: 4.122 MB / 444 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2755, allocations: 12.02 kB / 444 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006708/0.2822, allocations: 1.856 MB / 445.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003402/0.2857, allocations: 1.917 MB / 447.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.2858, allocations: 209.2 kB / 448 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004484/0.2863, allocations: 267.9 kB / 448.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01631/0.3026, allocations: 9.977 MB / 458.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.3027, allocations: 35.73 kB / 458.3 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003427/0.303, allocations: 135.9 kB / 458.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002978/0.306, allocations: 1.852 MB / 460.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/0.3281, allocations: 8.54 MB / 468.8 MB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07515/0.4032, allocations: 36.69 MB / 0.4937 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/0.4227, allocations: 3.887 MB / 0.4975 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004705/0.4275, allocations: 1.822 MB / 0.4992 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01956/0.4471, allocations: 7.516 MB / 0.5066 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/0.4472, allocations: 55.55 kB / 0.5066 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 6.412e-06/0.4472, allocations: 0 / 0.5066 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.09792/0.5451, allocations: 17.42 MB / 0.5236 GB, free: 15.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.85e-05/0.5453, allocations: 145.5 kB / 0.5238 GB, free: 15.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008031/0.5533, allocations: 3.473 MB / 0.5272 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003126/0.5537, allocations: 53.7 kB / 0.5272 GB, free: 11.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002984/0.5567, allocations: 2.728 MB / 0.5299 GB, free: 8.941 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/0.5577, allocations: 0.648 MB / 0.5305 GB, free: 8.285 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002472/0.5602, allocations: 1.119 MB / 0.5316 GB, free: 7.156 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5604, allocations: 305.1 kB / 0.5319 GB, free: 6.855 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005115/0.5655, allocations: 1.951 MB / 0.5338 GB, free: 4.898 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1755/0.741, allocations: 5.372 MB / 0.5391 GB, free: 127.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007154/0.7482, allocations: 7.935 MB / 0.5468 GB, free: 121.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.223e-05/0.7483, allocations: 34.56 kB / 0.5468 GB, free: 121.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01204/0.7603, allocations: 8.171 MB / 0.5548 GB, free: 118.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/0.7604, allocations: 57.34 kB / 0.5549 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.151e-05/0.7605, allocations: 120.6 kB / 0.555 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003727/0.7642, allocations: 1.301 MB / 0.5563 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003207/0.7674, allocations: 1.267 MB / 0.5575 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007313/0.7748, allocations: 6.538 MB / 0.5639 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00319/0.778, allocations: 291 kB / 0.5642 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/0.7783, allocations: 347.7 kB / 0.5645 GB, free: 112.4 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.001947/0.7802, allocations: 1.81 MB / 0.5663 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003867/0.7806, allocations: 304.4 kB / 0.5665 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/0.7869, allocations: 3.365 MB / 0.5698 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.7869, allocations: 4.734 kB / 0.5698 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.7869, allocations: 0 / 0.5698 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005281/0.7875, allocations: 358.1 kB / 0.5702 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.7878, allocations: 20 kB / 0.5702 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.7891, allocations: 95.88 kB / 0.5703 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.7893, allocations: 100.8 kB / 0.5704 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00587/0.7952, allocations: 3.627 MB / 0.5739 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004348/0.7995, allocations: 4.626 MB / 0.5784 GB, free: 98.55 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001143/0.8007, allocations: 1.198 MB / 0.5796 GB, free: 97.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.803, allocations: 2.15 MB / 0.5817 GB, free: 95.21 MB / 462.1 MB Notification: Performance of Backend: time 3.71e-07/0.803, allocations: 0 / 0.5817 GB, free: 95.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006148/0.8091, allocations: 3.972 MB / 0.5856 GB, free: 91.29 MB / 462.1 MB Notification: Performance of SimCode: time 0.008213/0.8174, allocations: 7.929 MB / 0.5933 GB, free: 83.32 MB / 462.1 MB Notification: Performance of Templates: time 0.05437/0.8717, allocations: 41.18 MB / 0.6336 GB, free: 42.33 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches