Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [: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.001769/0.001769, allocations: 183.2 kB / 8.481 MB, free: 1.883 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.446/1.446, allocations: 205.2 MB / 214.1 MB, free: 5.516 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009264/0.000926, allocations: 94.19 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.965e-06/8.145e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09303, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4063, allocations: 98.94 MB / 461.5 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/0.4066, allocations: 84.08 kB / 461.6 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.325/0.7317, allocations: 122.7 MB / 0.5706 GB, free: 6.246 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004115/0.7322, allocations: 116 kB / 0.5707 GB, free: 6.133 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.2128/0.945, allocations: 6.159 MB / 0.5767 GB, free: 71.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.9451, allocations: 9.344 kB / 0.5767 GB, free: 71.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03227/0.9773, allocations: 7.631 MB / 0.5842 GB, free: 70.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01985/0.9972, allocations: 7.341 MB / 0.5913 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003824/0.9977, allocations: 192.8 kB / 0.5915 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004156/1.002, allocations: 348.5 kB / 0.5918 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01982/1.022, allocations: 10.4 MB / 0.602 GB, free: 70.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/1.051, allocations: 14.33 MB / 0.616 GB, free: 67.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003253/1.051, allocations: 81.38 kB / 0.6161 GB, free: 67.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002265/1.054, allocations: 31.47 kB / 0.6161 GB, free: 67.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001919/1.055, allocations: 1.725 MB / 0.6178 GB, free: 67.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07668/1.132, allocations: 62.46 MB / 0.6788 GB, free: 29.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006269/1.139, allocations: 4.607 MB / 0.6833 GB, free: 25.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004531/1.143, allocations: 3.563 MB / 0.6868 GB, free: 22.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02401/1.167, allocations: 15.4 MB / 0.7018 GB, free: 8.734 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/1.167, allocations: 66.95 kB / 0.7019 GB, free: 8.664 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 7.645e-06/1.167, allocations: 0 / 0.7019 GB, free: 8.664 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.08129/1.249, allocations: 29.15 MB / 0.7303 GB, free: 1.023 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/1.249, allocations: 210 kB / 0.7305 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0189/1.268, allocations: 5.05 MB / 0.7355 GB, free: 14.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007794/1.268, allocations: 29.7 kB / 0.7355 GB, free: 14.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004163/1.273, allocations: 4.186 MB / 0.7396 GB, free: 10.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002327/1.275, allocations: 1.224 MB / 0.7408 GB, free: 9.684 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/1.277, allocations: 0 / 0.7408 GB, free: 9.684 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001452/1.278, allocations: 0.7047 MB / 0.7415 GB, free: 9.082 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009072/1.287, allocations: 4.53 MB / 0.7459 GB, free: 4.977 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.229/1.516, allocations: 9.726 MB / 0.7554 GB, free: 89.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009995/1.526, allocations: 6.577 MB / 0.7618 GB, free: 89.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002088/1.527, allocations: 51.12 kB / 0.7619 GB, free: 89.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.04362/1.57, allocations: 17.65 MB / 0.7791 GB, free: 89.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/1.57, allocations: 1.75 kB / 0.7791 GB, free: 89.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/1.571, allocations: 187.4 kB / 0.7793 GB, free: 89.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02228/1.593, allocations: 5.338 MB / 0.7845 GB, free: 89.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008228/1.601, allocations: 2.09 MB / 0.7865 GB, free: 89.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02755/1.629, allocations: 20.9 MB / 0.8069 GB, free: 86.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01037/1.639, allocations: 316.4 kB / 0.8072 GB, free: 86.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002941/1.642, allocations: 0.5331 MB / 0.8078 GB, free: 86.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1114): * Single equations (assignments): 1106 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003404/1.646, allocations: 0.5618 MB / 0.8083 GB, free: 86.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001544/1.647, allocations: 489 kB / 0.8088 GB, free: 86.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02974/1.677, allocations: 12 MB / 0.8205 GB, free: 82.97 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/1.677, allocations: 48.73 kB / 0.8205 GB, free: 82.97 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/1.677, allocations: 7.75 kB / 0.8205 GB, free: 82.97 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.356e-05/1.677, allocations: 13.59 kB / 0.8206 GB, free: 82.97 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05311/1.73, allocations: 22.43 MB / 0.8425 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/1.73, allocations: 4 kB / 0.8425 GB, free: 72.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/1.734, allocations: 0.51 MB / 0.843 GB, free: 72.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01896/1.753, allocations: 4.327 MB / 0.8472 GB, free: 69.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007949/1.754, allocations: 14.66 kB / 0.8472 GB, free: 69.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0201/1.774, allocations: 16.82 MB / 0.8636 GB, free: 54.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/1.774, allocations: 4 kB / 0.8636 GB, free: 54.66 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03403/1.808, allocations: 17.18 MB / 0.8804 GB, free: 40.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003664/1.811, allocations: 1.198 MB / 0.8816 GB, free: 39.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0017/1.813, allocations: 9.359 kB / 0.8816 GB, free: 39.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003839/1.817, allocations: 123.6 kB / 0.8817 GB, free: 38.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007289/1.818, allocations: 158.8 kB / 0.8819 GB, free: 38.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003213/1.818, allocations: 85.31 kB / 0.8819 GB, free: 38.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.005602/1.824, allocations: 2.926 MB / 0.8848 GB, free: 36.26 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01081/1.835, allocations: 1.475 MB / 0.8862 GB, free: 34.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/1.836, allocations: 171.8 kB / 0.8864 GB, free: 34.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01539/1.851, allocations: 10.25 MB / 0.8964 GB, free: 24.52 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/1.851, allocations: 0.9375 kB / 0.8964 GB, free: 24.52 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00559/1.857, allocations: 3.868 MB / 0.9002 GB, free: 20.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003625/1.86, allocations: 459.3 kB / 0.9006 GB, free: 20.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2373/2.098, allocations: 13.68 MB / 0.914 GB, free: 84.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009201/2.107, allocations: 5.143 MB / 0.919 GB, free: 84.01 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/2.107, allocations: 0 / 0.919 GB, free: 84.01 MB / 458.7 MB Notification: Performance of Templates: time 0.1253/2.232, allocations: 76.97 MB / 0.9942 GB, free: 68.79 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches