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.001596/0.001596, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001781/0.001781, allocations: 191 kB / 17.99 MB, free: 5.109 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 43.94 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2366, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01118/0.2478, allocations: 10.29 MB / 411 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006937/0.2548, allocations: 3.866 MB / 414.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009034/0.2557, allocations: 55.81 kB / 414.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003509/0.2592, allocations: 2.075 MB / 417 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003443/0.2627, allocations: 1.684 MB / 418.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.2641, allocations: 0.6901 MB / 419.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003589/0.2677, allocations: 3.354 MB / 422.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002819/0.2705, allocations: 2.694 MB / 425.4 MB, free: 44 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.2723, allocations: 1.258 MB / 426.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.2741, allocations: 1.764 MB / 428.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004677/0.2746, allocations: 264 kB / 428.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.2764, allocations: 1.119 MB / 429.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.2778, allocations: 1.578 MB / 431.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.2794, allocations: 1.868 MB / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005999/0.2854, allocations: 5.94 MB / 439.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2854, allocations: 0 / 439.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2855, allocations: 0 / 439.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001105/0.2856, allocations: 0 / 439.2 MB, free: 2.215 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.007663/0.2932, allocations: 4.129 MB / 443.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2933, allocations: 12.03 kB / 443.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006895/0.3002, allocations: 1.852 MB / 445.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003665/0.3039, allocations: 1.917 MB / 447.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.3041, allocations: 201.2 kB / 447.3 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005096/0.3046, allocations: 271.8 kB / 447.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/0.3222, allocations: 9.977 MB / 457.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.817e-05/0.3223, allocations: 35.69 kB / 457.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003601/0.3227, allocations: 135.9 kB / 457.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003148/0.3259, allocations: 1.856 MB / 459.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.3432, allocations: 8.532 MB / 468.1 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04443/0.3877, allocations: 36.7 MB / 0.493 GB, free: 14.74 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.3982, allocations: 3.883 MB / 0.4968 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002608/0.4008, allocations: 1.814 MB / 0.4986 GB, free: 8.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.4125, allocations: 7.523 MB / 0.5059 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.4126, allocations: 51.5 kB / 0.506 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.717e-06/0.4126, allocations: 0 / 0.506 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05556/0.4682, allocations: 17.42 MB / 0.523 GB, free: 15.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.4683, allocations: 149.5 kB / 0.5231 GB, free: 15.26 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006445/0.4748, allocations: 3.473 MB / 0.5265 GB, free: 11.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003831/0.4752, allocations: 49.7 kB / 0.5265 GB, free: 11.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002539/0.4777, allocations: 2.736 MB / 0.5292 GB, free: 8.953 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001152/0.4789, allocations: 0.6402 MB / 0.5298 GB, free: 8.305 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00293/0.4818, allocations: 1.119 MB / 0.5309 GB, free: 7.176 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.482, allocations: 313.1 kB / 0.5312 GB, free: 6.867 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003507/0.4855, allocations: 1.943 MB / 0.5331 GB, free: 4.918 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2261/0.7116, allocations: 5.371 MB / 0.5384 GB, free: 127.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00811/0.7198, allocations: 7.933 MB / 0.5461 GB, free: 121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.054e-05/0.7199, allocations: 35.5 kB / 0.5462 GB, free: 121 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01294/0.7328, allocations: 8.17 MB / 0.5541 GB, free: 118.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.44e-05/0.7329, allocations: 58.06 kB / 0.5542 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.733, allocations: 128.6 kB / 0.5543 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00374/0.7368, allocations: 1.296 MB / 0.5556 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003458/0.7403, allocations: 1.265 MB / 0.5568 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007474/0.7478, allocations: 6.539 MB / 0.5632 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/0.7518, allocations: 299.7 kB / 0.5635 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005587/0.7524, allocations: 340.6 kB / 0.5638 GB, free: 111.6 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.002175/0.7545, allocations: 1.812 MB / 0.5656 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004249/0.755, allocations: 299.8 kB / 0.5659 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00612/0.7611, allocations: 3.371 MB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/0.7611, allocations: 16 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.7612, allocations: 4 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.7612, allocations: 11.97 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/0.7724, allocations: 7.577 MB / 0.5766 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.7724, allocations: 0.5625 kB / 0.5766 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.7735, allocations: 239.7 kB / 0.5768 GB, free: 98.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003363/0.7769, allocations: 1.118 MB / 0.5779 GB, free: 97.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.777, allocations: 35.98 kB / 0.5779 GB, free: 97.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006701/0.7837, allocations: 6.163 MB / 0.584 GB, free: 91.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.7837, allocations: 0 / 0.584 GB, free: 91.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00789/0.7916, allocations: 5.717 MB / 0.5895 GB, free: 85.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006006/0.7922, allocations: 345.1 kB / 0.5899 GB, free: 85.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.7926, allocations: 31.98 kB / 0.5899 GB, free: 85.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.7938, allocations: 91.88 kB / 0.59 GB, free: 84.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002488/0.7941, allocations: 93.89 kB / 0.5901 GB, free: 84.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.7942, allocations: 44.42 kB / 0.5901 GB, free: 84.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002472/0.7967, allocations: 2.148 MB / 0.5922 GB, free: 82.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7967, allocations: 0 / 0.5922 GB, free: 82.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004135/0.8008, allocations: 0.9153 MB / 0.5931 GB, free: 81.77 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.000351/0.8012, allocations: 171.2 kB / 0.5933 GB, free: 81.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00646/0.8076, allocations: 4.798 MB / 0.598 GB, free: 76.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.8077, allocations: 0 / 0.598 GB, free: 76.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.8096, allocations: 1.538 MB / 0.5995 GB, free: 75.28 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.812, allocations: 360.2 kB / 0.5998 GB, free: 74.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.8255, allocations: 8.004 MB / 0.6076 GB, free: 66.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/0.8278, allocations: 2.851 MB / 0.6104 GB, free: 64.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003111/0.8309, allocations: 1.707 MB / 0.6121 GB, free: 62.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004743/0.8314, allocations: 215.4 kB / 0.6123 GB, free: 62.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.8314, allocations: 0 / 0.6123 GB, free: 62.1 MB / 462.1 MB Notification: Performance of Templates: time 0.04616/0.8775, allocations: 31.13 MB / 0.6427 GB, free: 31.18 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches