Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001521/0.00152, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 88.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004086, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3518, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.5341, allocations: 99.69 MB / 474.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004975/0.5347, allocations: 87.95 kB / 474.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6233/1.158, allocations: 75.66 MB / 0.5371 GB, free: 79.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.158, allocations: 0 / 0.5371 GB, free: 79.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001705/1.158, allocations: 71.94 kB / 0.5372 GB, free: 79.12 MB / 378.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.01349/1.172, allocations: 3.667 MB / 0.5407 GB, free: 75.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/1.172, allocations: 8.031 kB / 0.5407 GB, free: 75.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/1.189, allocations: 2.265 MB / 0.543 GB, free: 73.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.203, allocations: 3.956 MB / 0.5468 GB, free: 69.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/1.204, allocations: 283.3 kB / 0.5471 GB, free: 68.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001842/1.205, allocations: 367.8 kB / 0.5474 GB, free: 68.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03064/1.236, allocations: 10.49 MB / 0.5577 GB, free: 57.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/1.236, allocations: 55.47 kB / 0.5577 GB, free: 56.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00101/1.237, allocations: 175.9 kB / 0.5579 GB, free: 56.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002123/1.239, allocations: 1.001 MB / 0.5589 GB, free: 55.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02865/1.268, allocations: 8.761 MB / 0.5674 GB, free: 47.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06049/1.329, allocations: 44.73 MB / 0.6111 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01731/1.346, allocations: 3.873 MB / 0.6149 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02063/1.367, allocations: 7.633 MB / 0.6224 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/1.367, allocations: 43.56 kB / 0.6224 GB, free: 4.852 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 5.039e-06/1.367, allocations: 7.938 kB / 0.6224 GB, free: 4.844 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.09075/1.458, allocations: 17.39 MB / 0.6394 GB, free: 3.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/1.458, allocations: 141.5 kB / 0.6395 GB, free: 3.098 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2947/1.752, allocations: 3.119 MB / 0.6426 GB, free: 106.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004792/1.753, allocations: 52.64 kB / 0.6426 GB, free: 106.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002545/1.756, allocations: 2.693 MB / 0.6452 GB, free: 105.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009942/1.757, allocations: 0.6416 MB / 0.6459 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007203/1.757, allocations: 104.8 kB / 0.646 GB, free: 105.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003673/1.758, allocations: 0.5406 MB / 0.6465 GB, free: 105.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005386/1.763, allocations: 1.943 MB / 0.6484 GB, free: 105.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008322/1.771, allocations: 5.333 MB / 0.6536 GB, free: 100.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008353/1.78, allocations: 3.127 MB / 0.6567 GB, free: 100.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002235/1.78, allocations: 37.94 kB / 0.6567 GB, free: 100.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02818/1.808, allocations: 8.052 MB / 0.6646 GB, free: 99.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/1.809, allocations: 59.75 kB / 0.6646 GB, free: 99.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002248/1.809, allocations: 118.8 kB / 0.6647 GB, free: 99.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007505/1.816, allocations: 1.306 MB / 0.666 GB, free: 99.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007954/1.824, allocations: 1.265 MB / 0.6672 GB, free: 99.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/1.839, allocations: 6.296 MB / 0.6734 GB, free: 96.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007179/1.847, allocations: 340.8 kB / 0.6737 GB, free: 96.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.848, allocations: 337.3 kB / 0.674 GB, free: 96.08 MB / 410.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 () * Number of clocked 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.004972/1.853, allocations: 1.808 MB / 0.6758 GB, free: 95.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008143/1.854, allocations: 314.2 kB / 0.6761 GB, free: 95.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/1.866, allocations: 3.347 MB / 0.6794 GB, free: 93.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.517e-05/1.866, allocations: 19.47 kB / 0.6794 GB, free: 93.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/1.866, allocations: 7.188 kB / 0.6794 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.31e-05/1.866, allocations: 8.5 kB / 0.6794 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.89, allocations: 7.594 MB / 0.6868 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.54e-05/1.891, allocations: 7.656 kB / 0.6868 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/1.893, allocations: 244.3 kB / 0.6871 GB, free: 91.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006779/1.9, allocations: 1.111 MB / 0.6881 GB, free: 91.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004003/1.9, allocations: 33.83 kB / 0.6882 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/1.914, allocations: 5.932 MB / 0.694 GB, free: 88.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/1.914, allocations: 0 / 0.694 GB, free: 88.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/1.93, allocations: 5.742 MB / 0.6996 GB, free: 83.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/1.932, allocations: 0.5865 MB / 0.7002 GB, free: 82.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007012/1.933, allocations: 21 kB / 0.7002 GB, free: 82.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002692/1.935, allocations: 114.2 kB / 0.7003 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004953/1.936, allocations: 86 kB / 0.7004 GB, free: 82.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/1.936, allocations: 47.98 kB / 0.7004 GB, free: 82.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005717/1.942, allocations: 2.169 MB / 0.7025 GB, free: 80.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.942, allocations: 0 / 0.7025 GB, free: 80.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006588/1.949, allocations: 0.9186 MB / 0.7034 GB, free: 79.86 MB / 410.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 () * 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 (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.0007006/1.949, allocations: 175.4 kB / 0.7036 GB, free: 79.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01153/1.961, allocations: 4.744 MB / 0.7082 GB, free: 75.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/1.961, allocations: 0.75 kB / 0.7082 GB, free: 75.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00369/1.965, allocations: 1.526 MB / 0.7097 GB, free: 74.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/1.967, allocations: 330.7 kB / 0.71 GB, free: 73.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0236/1.991, allocations: 9.859 MB / 0.7197 GB, free: 65.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006138/1.997, allocations: 2.932 MB / 0.7225 GB, free: 62.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.999, allocations: 259.3 kB / 0.7228 GB, free: 62.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/1.999, allocations: 0 / 0.7228 GB, free: 62.52 MB / 410.7 MB Notification: Performance of Templates: time 0.1205/2.119, allocations: 63.35 MB / 0.7846 GB, free: 15.52 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches