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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009115/0.0009118, allocations: 86.22 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.666e-05, allocations: 4 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3399/0.4518, allocations: 101.9 MB / 0.4921 GB, free: 3.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.4521, allocations: 87.3 kB / 0.4922 GB, free: 3.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2069/0.659, allocations: 77.37 MB / 0.5677 GB, free: 7.562 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.659, allocations: 0 / 0.5677 GB, free: 7.562 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001778/0.6592, allocations: 75.98 kB / 0.5678 GB, free: 7.488 MB / 442.7 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.01114/0.6704, allocations: 3.498 MB / 0.5712 GB, free: 3.941 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.6704, allocations: 15.91 kB / 0.5712 GB, free: 3.926 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/0.6808, allocations: 2.273 MB / 0.5734 GB, free: 1.645 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2963/0.9771, allocations: 3.261 MB / 0.5766 GB, free: 82.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002838/0.9775, allocations: 284.8 kB / 0.5769 GB, free: 82.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/0.9793, allocations: 366 kB / 0.5772 GB, free: 82.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02098/1, allocations: 10.39 MB / 0.5874 GB, free: 79.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001496/1.001, allocations: 56.83 kB / 0.5874 GB, free: 79.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005826/1.001, allocations: 184.7 kB / 0.5876 GB, free: 79.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001262/1.002, allocations: 0.9965 MB / 0.5886 GB, free: 79.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/1.019, allocations: 8.582 MB / 0.597 GB, free: 79.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/1.068, allocations: 44.71 MB / 0.6406 GB, free: 50.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00949/1.078, allocations: 3.843 MB / 0.6444 GB, free: 49.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/1.08, allocations: 1.774 MB / 0.6461 GB, free: 48.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009758/1.09, allocations: 7.63 MB / 0.6536 GB, free: 44.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/1.09, allocations: 54.16 kB / 0.6536 GB, free: 44.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 5.461e-06/1.09, allocations: 0 / 0.6536 GB, free: 44.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.04005/1.13, allocations: 14.66 MB / 0.6679 GB, free: 39.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/1.13, allocations: 151.2 kB / 0.6681 GB, free: 39.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/1.135, allocations: 3.044 MB / 0.671 GB, free: 38.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003221/1.135, allocations: 49.08 kB / 0.6711 GB, free: 38.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001325/1.136, allocations: 2.74 MB / 0.6738 GB, free: 35.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000626/1.137, allocations: 0.6388 MB / 0.6744 GB, free: 35.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/1.137, allocations: 109.1 kB / 0.6745 GB, free: 35.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002426/1.137, allocations: 0.5401 MB / 0.675 GB, free: 34.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/1.14, allocations: 1.868 MB / 0.6768 GB, free: 34.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004496/1.144, allocations: 5.256 MB / 0.682 GB, free: 29.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/1.148, allocations: 3.096 MB / 0.685 GB, free: 27.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.519e-05/1.148, allocations: 32.28 kB / 0.685 GB, free: 27.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01313/1.161, allocations: 7.986 MB / 0.6928 GB, free: 25.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-05/1.161, allocations: 55.31 kB / 0.6929 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.762e-05/1.162, allocations: 126.4 kB / 0.693 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00368/1.165, allocations: 1.307 MB / 0.6943 GB, free: 25.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/1.169, allocations: 1.274 MB / 0.6955 GB, free: 24.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007752/1.177, allocations: 6.112 MB / 0.7015 GB, free: 19.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004709/1.182, allocations: 343.1 kB / 0.7018 GB, free: 19.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000898/1.183, allocations: 339.1 kB / 0.7021 GB, free: 19.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (679): * Single equations (assignments): 675 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008602/1.183, allocations: 0.5346 MB / 0.7027 GB, free: 18.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005173/1.184, allocations: 304 kB / 0.703 GB, free: 18.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006382/1.19, allocations: 3.322 MB / 0.7062 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.756e-05/1.19, allocations: 20 kB / 0.7062 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/1.19, allocations: 7.938 kB / 0.7062 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/1.191, allocations: 11.28 kB / 0.7062 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/1.204, allocations: 7.563 MB / 0.7136 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/1.204, allocations: 1.406 kB / 0.7136 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/1.205, allocations: 239.6 kB / 0.7139 GB, free: 9.691 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/1.208, allocations: 1.119 MB / 0.7149 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/1.208, allocations: 30.86 kB / 0.715 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0071/1.215, allocations: 5.753 MB / 0.7206 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.215, allocations: 4.031 kB / 0.7206 GB, free: 3.957 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.228, allocations: 6.001 MB / 0.7265 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/1.229, allocations: 360.6 kB / 0.7268 GB, free: 15.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003208/1.229, allocations: 27.95 kB / 0.7268 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/1.23, allocations: 106.7 kB / 0.7269 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/1.231, allocations: 83.94 kB / 0.727 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/1.231, allocations: 48.64 kB / 0.7271 GB, free: 15.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00333/1.234, allocations: 2.093 MB / 0.7291 GB, free: 13.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.234, allocations: 0 / 0.7291 GB, free: 13.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004973/1.239, allocations: 0.9218 MB / 0.73 GB, free: 12.64 MB / 458.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005206/1.24, allocations: 188.1 kB / 0.7302 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007328/1.247, allocations: 4.647 MB / 0.7347 GB, free: 8.238 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/1.247, allocations: 0 / 0.7347 GB, free: 8.238 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/1.249, allocations: 1.518 MB / 0.7362 GB, free: 6.863 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/1.251, allocations: 319.3 kB / 0.7365 GB, free: 6.586 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/1.265, allocations: 6.583 MB / 0.7429 GB, free: 420 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2653/1.53, allocations: 2.928 MB / 0.7458 GB, free: 85.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004153/1.534, allocations: 1.703 MB / 0.7475 GB, free: 85.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005624/1.535, allocations: 217.6 kB / 0.7477 GB, free: 85.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.794e-06/1.535, allocations: 3.125 kB / 0.7477 GB, free: 85.56 MB / 458.7 MB Notification: Performance of Templates: time 0.06347/1.598, allocations: 31.77 MB / 0.7787 GB, free: 84.56 MB / 458.7 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.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches