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.001279/0.001285, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 75.86 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09717, allocations: 50.54 MB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01241/0.1096, allocations: 10.25 MB / 367.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.164/0.2736, allocations: 3.885 MB / 371.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2752, allocations: 55.28 kB / 371.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003792/0.279, allocations: 2.063 MB / 373.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004312/0.2833, allocations: 1.611 MB / 375.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.2851, allocations: 0.6948 MB / 376.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00539/0.2905, allocations: 3.388 MB / 379.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003669/0.2942, allocations: 2.679 MB / 382.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002379/0.2966, allocations: 1.243 MB / 383.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002681/0.2993, allocations: 1.759 MB / 385.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008162/0.3001, allocations: 261.9 kB / 385.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.3025, allocations: 1.104 MB / 386.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.304, allocations: 1.555 MB / 388.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001883/0.3059, allocations: 1.847 MB / 389.9 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.3112, allocations: 5.674 MB / 395.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3113, allocations: 0 / 395.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3113, allocations: 0 / 395.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001131/0.3114, allocations: 0 / 395.6 MB, free: 0.8906 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.007456/0.3188, allocations: 4.109 MB / 399.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3189, allocations: 9.125 kB / 399.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007007/0.3259, allocations: 1.85 MB / 401.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003892/0.3298, allocations: 1.852 MB / 403.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.33, allocations: 210.2 kB / 403.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005362/0.3306, allocations: 271.2 kB / 403.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01968/0.3502, allocations: 10 MB / 413.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.3504, allocations: 39.59 kB / 413.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003711/0.3508, allocations: 133.1 kB / 414.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003309/0.3541, allocations: 1.859 MB / 415.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/0.3733, allocations: 8.563 MB / 424.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04842/0.4217, allocations: 36.84 MB / 461.3 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.432, allocations: 3.9 MB / 465.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002544/0.4346, allocations: 1.803 MB / 467 MB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/0.446, allocations: 7.633 MB / 474.7 MB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.4461, allocations: 47.5 kB / 474.7 MB, free: 1.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.577e-06/0.4461, allocations: 0 / 474.7 MB, free: 1.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05401/0.5001, allocations: 17.54 MB / 492.3 MB, free: 15.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.5002, allocations: 153.5 kB / 492.4 MB, free: 15.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004921/0.5052, allocations: 3.457 MB / 495.9 MB, free: 12.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001983/0.5054, allocations: 49.7 kB / 495.9 MB, free: 12.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.5075, allocations: 2.735 MB / 498.6 MB, free: 9.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007476/0.5083, allocations: 0.6398 MB / 499.3 MB, free: 8.898 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001659/0.51, allocations: 1.118 MB / 0.4887 GB, free: 7.773 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.5101, allocations: 301.1 kB / 0.489 GB, free: 7.477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003209/0.5133, allocations: 1.963 MB / 0.4909 GB, free: 5.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005918/0.5193, allocations: 5.389 MB / 0.4961 GB, free: 14.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.5295, allocations: 7.955 MB / 0.5039 GB, free: 4.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.637e-05/0.5295, allocations: 36 kB / 0.5039 GB, free: 4.715 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01606/0.5456, allocations: 8.193 MB / 0.5119 GB, free: 12.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.484e-05/0.5457, allocations: 60 kB / 0.512 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/0.5459, allocations: 120 kB / 0.5121 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004125/0.55, allocations: 1.298 MB / 0.5134 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003834/0.5538, allocations: 1.272 MB / 0.5146 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009851/0.5637, allocations: 6.551 MB / 0.521 GB, free: 3.082 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/0.5674, allocations: 307.5 kB / 0.5213 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/0.5679, allocations: 343.9 kB / 0.5216 GB, free: 2.445 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.00282/0.5707, allocations: 1.813 MB / 0.5234 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.5712, allocations: 304 kB / 0.5237 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2074/0.7786, allocations: 3.396 MB / 0.527 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/0.7787, allocations: 17.88 kB / 0.527 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.7787, allocations: 5.5 kB / 0.527 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/0.7788, allocations: 8.594 kB / 0.527 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/0.7936, allocations: 7.616 MB / 0.5345 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.7936, allocations: 1.625 kB / 0.5345 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.7948, allocations: 247.6 kB / 0.5347 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003723/0.7985, allocations: 1.119 MB / 0.5358 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/0.7987, allocations: 31.19 kB / 0.5358 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007704/0.8064, allocations: 6.17 MB / 0.5419 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8064, allocations: 2.406 kB / 0.5419 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008761/0.8152, allocations: 5.741 MB / 0.5475 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007549/0.816, allocations: 354.2 kB / 0.5478 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/0.8163, allocations: 34.97 kB / 0.5479 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.8175, allocations: 99.19 kB / 0.5479 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.8178, allocations: 84.52 kB / 0.548 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.8179, allocations: 49.3 kB / 0.5481 GB, free: 125.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002803/0.8207, allocations: 2.143 MB / 0.5502 GB, free: 125 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8207, allocations: 0 / 0.5502 GB, free: 125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003749/0.8245, allocations: 0.8876 MB / 0.551 GB, free: 124.9 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.0003426/0.8248, allocations: 165.5 kB / 0.5512 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006889/0.8317, allocations: 5.563 MB / 0.5566 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.8318, allocations: 0 / 0.5566 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.8336, allocations: 1.563 MB / 0.5582 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.8354, allocations: 354.3 kB / 0.5585 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.8458, allocations: 8.102 MB / 0.5664 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002083/0.8479, allocations: 2.843 MB / 0.5692 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003342/0.8512, allocations: 1.705 MB / 0.5708 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000498/0.8517, allocations: 215.4 kB / 0.571 GB, free: 107.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8517, allocations: 3.938 kB / 0.5711 GB, free: 107.5 MB / 446.1 MB Notification: Performance of Templates: time 0.05003/0.9018, allocations: 33.83 MB / 0.6041 GB, free: 73.87 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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