Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002284/0.002284, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 87.12 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.341e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3361, allocations: 47.55 MB / 362.3 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.5017, allocations: 89.83 MB / 452.2 MB, free: 12.48 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004082/0.5021, allocations: 79.95 kB / 452.2 MB, free: 12.4 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.265/0.7672, allocations: 56.82 MB / 0.4971 GB, free: 3.227 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7673, allocations: 0 / 0.4971 GB, free: 3.227 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.7674, allocations: 40 kB / 0.4972 GB, free: 3.188 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01023/0.7777, allocations: 2.543 MB / 0.4996 GB, free: 0.5898 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.7777, allocations: 12.03 kB / 0.4997 GB, free: 0.5781 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2862/1.064, allocations: 1.965 MB / 0.5016 GB, free: 99.97 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01343/1.077, allocations: 3.29 MB / 0.5048 GB, free: 99.72 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/1.078, allocations: 75.16 kB / 0.5049 GB, free: 99.72 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001413/1.079, allocations: 135.5 kB / 0.505 GB, free: 99.72 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009958/1.089, allocations: 3.921 MB / 0.5088 GB, free: 99.7 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01464/1.104, allocations: 6.188 MB / 0.5149 GB, free: 97.61 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/1.104, allocations: 46.25 kB / 0.5149 GB, free: 97.61 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007269/1.105, allocations: 29.33 kB / 0.5149 GB, free: 97.61 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001519/1.106, allocations: 0.7138 MB / 0.5156 GB, free: 97.61 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04151/1.148, allocations: 32.06 MB / 0.5469 GB, free: 74.06 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00349/1.151, allocations: 2.028 MB / 0.5489 GB, free: 72.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001916/1.153, allocations: 0.9857 MB / 0.5499 GB, free: 72.45 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/1.153, allocations: 15.09 kB / 0.5499 GB, free: 72.45 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/1.153, allocations: 50.92 kB / 0.5499 GB, free: 72.39 MB / 395.1 MB Notification: Performance of pre-optimization done (n=98): time 4.659e-06/1.154, allocations: 0 / 0.5499 GB, free: 72.39 MB / 395.1 MB Notification: Performance of matching and sorting (n=106): time 0.02372/1.177, allocations: 8.19 MB / 0.5579 GB, free: 68.96 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/1.177, allocations: 138.9 kB / 0.5581 GB, free: 68.8 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004128/1.181, allocations: 2.175 MB / 0.5602 GB, free: 67.96 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002669/1.182, allocations: 29.05 kB / 0.5602 GB, free: 67.93 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/1.183, allocations: 2.146 MB / 0.5623 GB, free: 66.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000574/1.184, allocations: 440 kB / 0.5627 GB, free: 65.88 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/1.184, allocations: 0 / 0.5627 GB, free: 65.88 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002741/1.185, allocations: 0.4934 MB / 0.5632 GB, free: 65.49 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/1.187, allocations: 1.314 MB / 0.5645 GB, free: 65.05 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004795/1.192, allocations: 4.235 MB / 0.5686 GB, free: 60.51 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004963/1.197, allocations: 2.336 MB / 0.5709 GB, free: 59.66 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.06e-05/1.197, allocations: 32.97 kB / 0.571 GB, free: 59.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01617/1.214, allocations: 5.448 MB / 0.5763 GB, free: 56.23 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.578e-05/1.214, allocations: 48 kB / 0.5763 GB, free: 56.19 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.214, allocations: 112.8 kB / 0.5764 GB, free: 56.08 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003916/1.218, allocations: 0.8148 MB / 0.5772 GB, free: 55.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006063/1.224, allocations: 1.04 MB / 0.5782 GB, free: 54.6 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007712/1.232, allocations: 3.962 MB / 0.5821 GB, free: 51.11 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005063/1.237, allocations: 209.4 kB / 0.5823 GB, free: 50.94 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.238, allocations: 284.1 kB / 0.5826 GB, free: 50.67 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (555): * Single equations (assignments): 551 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008472/1.239, allocations: 363.7 kB / 0.5829 GB, free: 50.31 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005462/1.239, allocations: 217.1 kB / 0.5831 GB, free: 50.1 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005881/1.245, allocations: 1.78 MB / 0.5849 GB, free: 48.77 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.905e-05/1.245, allocations: 16.7 kB / 0.5849 GB, free: 48.75 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/1.245, allocations: 4 kB / 0.5849 GB, free: 48.75 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.643e-05/1.245, allocations: 7.938 kB / 0.5849 GB, free: 48.75 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.258, allocations: 4.307 MB / 0.5891 GB, free: 45.33 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/1.258, allocations: 0.75 kB / 0.5891 GB, free: 45.33 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.259, allocations: 132.1 kB / 0.5892 GB, free: 45.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003424/1.263, allocations: 0.6429 MB / 0.5899 GB, free: 44.82 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002001/1.263, allocations: 17.86 kB / 0.5899 GB, free: 44.81 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006609/1.27, allocations: 3.501 MB / 0.5933 GB, free: 41.64 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/1.27, allocations: 2.062 kB / 0.5933 GB, free: 41.64 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008512/1.278, allocations: 3.672 MB / 0.5969 GB, free: 37.9 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/1.28, allocations: 418.2 kB / 0.5973 GB, free: 37.47 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/1.28, allocations: 4 kB / 0.5973 GB, free: 37.46 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.282, allocations: 55.91 kB / 0.5973 GB, free: 37.41 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/1.282, allocations: 51.92 kB / 0.5974 GB, free: 37.36 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/1.282, allocations: 31.94 kB / 0.5974 GB, free: 37.33 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00306/1.285, allocations: 1.432 MB / 0.5988 GB, free: 35.88 MB / 395.1 MB Notification: Performance of sort global known variables: time 9.02e-07/1.285, allocations: 4 kB / 0.5988 GB, free: 35.88 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005205/1.291, allocations: 0.5634 MB / 0.5994 GB, free: 35.32 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005301/1.291, allocations: 132.5 kB / 0.5995 GB, free: 35.19 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006787/1.298, allocations: 3.184 MB / 0.6026 GB, free: 32.02 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.298, allocations: 0 / 0.6026 GB, free: 32.02 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/1.3, allocations: 0.8958 MB / 0.6035 GB, free: 31.12 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/1.302, allocations: 195.6 kB / 0.6037 GB, free: 30.93 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/1.313, allocations: 4.654 MB / 0.6082 GB, free: 26.23 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003343/1.316, allocations: 2.249 MB / 0.6104 GB, free: 23.96 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009288/1.317, allocations: 191.4 kB / 0.6106 GB, free: 23.77 MB / 395.1 MB Notification: Performance of SimCode: time 1.092e-06/1.317, allocations: 0 / 0.6106 GB, free: 23.77 MB / 395.1 MB Notification: Performance of Templates: time 0.3673/1.685, allocations: 44.25 MB / 0.6538 GB, free: 101.9 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches