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.001072/0.001072, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001102/0.001102, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009303/0.0009303, allocations: 43.84 kB / 300 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.0876, allocations: 49.45 MB / 349.4 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1955/0.2832, allocations: 34.74 MB / 384.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.2984, allocations: 7.903 MB / 392 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005872/0.3043, allocations: 146.1 kB / 392.2 MB, free: 3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00406/0.3084, allocations: 2.065 MB / 394.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004254/0.3127, allocations: 1.52 MB / 395.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.3143, allocations: 0.6396 MB / 396.4 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005707/0.32, allocations: 4.757 MB / 401.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003533/0.3236, allocations: 2.674 MB / 403.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.3257, allocations: 1.119 MB / 405 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002631/0.3283, allocations: 1.883 MB / 406.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006655/0.329, allocations: 196 kB / 407 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.3313, allocations: 1.127 MB / 408.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001712/0.3331, allocations: 1.539 MB / 409.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.3354, allocations: 1.817 MB / 411.5 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005817/0.3412, allocations: 5.673 MB / 417.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3412, allocations: 0 / 417.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3412, allocations: 0 / 417.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002237/0.3415, allocations: 0 / 417.2 MB, free: 0.9961 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.009327/0.3508, allocations: 4.133 MB / 421.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3508, allocations: 8.031 kB / 421.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006382/0.3572, allocations: 1.852 MB / 423.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003467/0.3607, allocations: 1.882 MB / 425.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.3609, allocations: 209.1 kB / 425.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004819/0.3614, allocations: 267.9 kB / 425.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01633/0.3777, allocations: 9.977 MB / 435.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.775e-05/0.3778, allocations: 35.69 kB / 435.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004388/0.3783, allocations: 139.8 kB / 435.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002977/0.3813, allocations: 1.852 MB / 437.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.3977, allocations: 8.532 MB / 446.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04036/0.4381, allocations: 36.85 MB / 482.9 MB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009481/0.4476, allocations: 3.881 MB / 486.8 MB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002369/0.45, allocations: 1.81 MB / 488.6 MB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.4605, allocations: 7.524 MB / 496.1 MB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.4606, allocations: 51.5 kB / 496.2 MB, free: 15.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 3.958e-06/0.4606, allocations: 0 / 496.2 MB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04985/0.5105, allocations: 17.42 MB / 0.5016 GB, free: 14.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.5105, allocations: 153.4 kB / 0.5017 GB, free: 13.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004788/0.5153, allocations: 3.473 MB / 0.5051 GB, free: 10.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.5155, allocations: 49.7 kB / 0.5052 GB, free: 10.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.5172, allocations: 2.732 MB / 0.5078 GB, free: 7.629 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005966/0.5178, allocations: 0.6441 MB / 0.5085 GB, free: 6.977 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.5192, allocations: 1.115 MB / 0.5095 GB, free: 5.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.5193, allocations: 309.1 kB / 0.5098 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002797/0.5221, allocations: 1.947 MB / 0.5117 GB, free: 3.594 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005448/0.5276, allocations: 5.374 MB / 0.517 GB, free: 12.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008423/0.536, allocations: 7.937 MB / 0.5247 GB, free: 2.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.781e-05/0.5361, allocations: 35.94 kB / 0.5248 GB, free: 2.836 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.1982/0.7343, allocations: 8.16 MB / 0.5327 GB, free: 146.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.678e-05/0.7344, allocations: 56.94 kB / 0.5328 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/0.7346, allocations: 121.9 kB / 0.5329 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004329/0.739, allocations: 1.299 MB / 0.5342 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/0.743, allocations: 1.267 MB / 0.5354 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008542/0.7516, allocations: 6.094 MB / 0.5414 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003883/0.7555, allocations: 301.5 kB / 0.5417 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006897/0.7562, allocations: 343.8 kB / 0.542 GB, free: 143.8 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.002529/0.7587, allocations: 1.808 MB / 0.5438 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004854/0.7592, allocations: 303.3 kB / 0.544 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006258/0.7655, allocations: 3.375 MB / 0.5473 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.7655, allocations: 18.7 kB / 0.5474 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.7655, allocations: 7.938 kB / 0.5474 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.7655, allocations: 7.312 kB / 0.5474 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.7774, allocations: 7.605 MB / 0.5548 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.7774, allocations: 3.938 kB / 0.5548 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.7785, allocations: 236.1 kB / 0.555 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003467/0.782, allocations: 1.12 MB / 0.5561 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/0.7821, allocations: 29.38 kB / 0.5561 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006498/0.7886, allocations: 5.725 MB / 0.5617 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7887, allocations: 0 / 0.5617 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008115/0.7968, allocations: 5.711 MB / 0.5673 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007281/0.7975, allocations: 353.1 kB / 0.5677 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005629/0.7981, allocations: 29.61 kB / 0.5677 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.7995, allocations: 87.89 kB / 0.5678 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/0.7998, allocations: 88.81 kB / 0.5678 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.7999, allocations: 47.98 kB / 0.5679 GB, free: 128.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002982/0.8029, allocations: 2.142 MB / 0.57 GB, free: 126.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8029, allocations: 8 kB / 0.57 GB, free: 126.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004369/0.8073, allocations: 0.9159 MB / 0.5709 GB, free: 125.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.0003849/0.8077, allocations: 161.5 kB / 0.571 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006012/0.8137, allocations: 4.789 MB / 0.5757 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.8137, allocations: 0.5625 kB / 0.5757 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.8155, allocations: 1.537 MB / 0.5772 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.8174, allocations: 337.4 kB / 0.5775 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.8286, allocations: 9.803 MB / 0.5871 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002005/0.8307, allocations: 2.859 MB / 0.5899 GB, free: 105.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003347/0.834, allocations: 1.715 MB / 0.5916 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.8345, allocations: 215.4 kB / 0.5918 GB, free: 103.7 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.8345, allocations: 0 / 0.5918 GB, free: 103.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04571/0.8802, allocations: 32.74 MB / 0.6238 GB, free: 71.17 MB / 446.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