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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002371/0.002371, allocations: 176.9 kB / 8.153 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.961/1.961, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.00126/0.00126, allocations: 88.86 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.346e-05/1.375e-05, allocations: 0 / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3456, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.5525, allocations: 89.75 MB / 451.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004284/0.553, allocations: 83.95 kB / 451.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.3828/0.9358, allocations: 55.84 MB / 0.4956 GB, free: 4.008 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002004/0.936, allocations: 44 kB / 0.4957 GB, free: 3.965 MB / 394.7 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.01461/0.9507, allocations: 2.5 MB / 0.4981 GB, free: 1.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.743e-05/0.9508, allocations: 12.03 kB / 0.4981 GB, free: 1.398 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1952/1.146, allocations: 1.573 MB / 0.4996 GB, free: 141.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02004/1.166, allocations: 3.34 MB / 0.5029 GB, free: 140.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/1.166, allocations: 76.97 kB / 0.503 GB, free: 140.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001833/1.168, allocations: 136.6 kB / 0.5031 GB, free: 140.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01457/1.183, allocations: 4.035 MB / 0.5071 GB, free: 140.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/1.205, allocations: 6.308 MB / 0.5132 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002132/1.205, allocations: 45.59 kB / 0.5133 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00129/1.207, allocations: 28.09 kB / 0.5133 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002183/1.209, allocations: 0.759 MB / 0.514 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06404/1.273, allocations: 32.62 MB / 0.5459 GB, free: 116.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005697/1.279, allocations: 2.151 MB / 0.548 GB, free: 115 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00353/1.282, allocations: 1.133 MB / 0.5491 GB, free: 114.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01417/1.296, allocations: 3.644 MB / 0.5526 GB, free: 112.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/1.297, allocations: 46.16 kB / 0.5527 GB, free: 112.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 8.045e-06/1.297, allocations: 0 / 0.5527 GB, free: 112.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=101): time 0.04443/1.341, allocations: 8.146 MB / 0.5606 GB, free: 108.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/1.341, allocations: 136.9 kB / 0.5608 GB, free: 108.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008833/1.35, allocations: 2.203 MB / 0.5629 GB, free: 107.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003554/1.35, allocations: 26.61 kB / 0.563 GB, free: 107.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002381/1.353, allocations: 2.065 MB / 0.565 GB, free: 106.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001034/1.354, allocations: 414.8 kB / 0.5654 GB, free: 105.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007191/1.355, allocations: 5.281 kB / 0.5654 GB, free: 105.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000605/1.355, allocations: 0.4982 MB / 0.5659 GB, free: 105.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005636/1.361, allocations: 1.338 MB / 0.5672 GB, free: 105 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008354/1.369, allocations: 4.251 MB / 0.5713 GB, free: 99.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007991/1.378, allocations: 2.392 MB / 0.5737 GB, free: 97.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/1.378, allocations: 32 kB / 0.5737 GB, free: 97.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.02629/1.404, allocations: 5.386 MB / 0.5789 GB, free: 93.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/1.404, allocations: 4 kB / 0.5789 GB, free: 93.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00027/1.404, allocations: 104 kB / 0.579 GB, free: 93.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006483/1.411, allocations: 0.749 MB / 0.5798 GB, free: 92.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009206/1.42, allocations: 1.027 MB / 0.5808 GB, free: 91.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/1.434, allocations: 4.213 MB / 0.5849 GB, free: 87.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007607/1.441, allocations: 166.2 kB / 0.5851 GB, free: 87.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001701/1.443, allocations: 287.7 kB / 0.5853 GB, free: 87.57 MB / 394.7 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 (550): * Single equations (assignments): 546 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002095/1.445, allocations: 276.5 kB / 0.5856 GB, free: 87.29 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009944/1.446, allocations: 213.2 kB / 0.5858 GB, free: 87.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/1.457, allocations: 1.743 MB / 0.5875 GB, free: 85.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/1.457, allocations: 12 kB / 0.5875 GB, free: 85.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-05/1.457, allocations: 7.312 kB / 0.5875 GB, free: 85.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.372e-05/1.457, allocations: 3.516 kB / 0.5875 GB, free: 85.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/1.48, allocations: 3.976 MB / 0.5914 GB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.974e-05/1.48, allocations: 3.906 kB / 0.5914 GB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/1.482, allocations: 126.1 kB / 0.5915 GB, free: 82.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006448/1.488, allocations: 0.5827 MB / 0.5921 GB, free: 82.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003434/1.489, allocations: 5.5 kB / 0.5921 GB, free: 82.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/1.501, allocations: 3.48 MB / 0.5955 GB, free: 78.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-05/1.501, allocations: 4.656 kB / 0.5955 GB, free: 78.91 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01519/1.516, allocations: 3.601 MB / 0.599 GB, free: 75.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00214/1.519, allocations: 406.5 kB / 0.5994 GB, free: 75.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/1.52, allocations: 5.312 kB / 0.5994 GB, free: 75.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/1.523, allocations: 42.59 kB / 0.5995 GB, free: 75.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004964/1.524, allocations: 39.39 kB / 0.5995 GB, free: 75.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/1.524, allocations: 28.61 kB / 0.5995 GB, free: 75.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005692/1.53, allocations: 1.457 MB / 0.6009 GB, free: 74.01 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008701/1.538, allocations: 0.5494 MB / 0.6015 GB, free: 73.46 MB / 394.7 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 (70): * Single equations (assignments): 66 * 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.0008916/1.539, allocations: 147.5 kB / 0.6016 GB, free: 73.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01102/1.55, allocations: 3.185 MB / 0.6047 GB, free: 70.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/1.551, allocations: 0 / 0.6047 GB, free: 70.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003059/1.554, allocations: 0.8818 MB / 0.6056 GB, free: 69.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.557, allocations: 193.1 kB / 0.6058 GB, free: 69.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02213/1.579, allocations: 4.702 MB / 0.6104 GB, free: 64.33 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007849/1.587, allocations: 2.442 MB / 0.6127 GB, free: 61.88 MB / 394.7 MB Notification: Performance of SimCode: time 4.558e-06/1.587, allocations: 0 / 0.6127 GB, free: 61.88 MB / 394.7 MB Notification: Performance of Templates: time 0.1263/1.714, allocations: 45.31 MB / 0.657 GB, free: 17.24 MB / 394.7 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