Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [: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.00112/0.00112, allocations: 179.8 kB / 8.478 MB, free: 1.875 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.422/1.422, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.000958/0.000958, allocations: 81.56 kB / 262.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.346e-06/8.376e-06, allocations: 0 / 315 MB, free: 8.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2537, allocations: 47.55 MB / 362.5 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.3814, allocations: 102.1 MB / 464.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.3817, allocations: 91.78 kB / 464.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.531/0.9126, allocations: 135 MB / 0.5857 GB, free: 55.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006921/0.9134, allocations: 159.8 kB / 0.5858 GB, free: 55.51 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02655/0.9399, allocations: 7.403 MB / 0.5931 GB, free: 48.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.94, allocations: 12.03 kB / 0.5931 GB, free: 48.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04126/0.9813, allocations: 11.31 MB / 0.6041 GB, free: 36.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02689/1.008, allocations: 10.62 MB / 0.6145 GB, free: 26.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003975/1.009, allocations: 228 kB / 0.6147 GB, free: 25.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003644/1.012, allocations: 431.8 kB / 0.6151 GB, free: 25.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02105/1.033, allocations: 10.23 MB / 0.6251 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03351/1.067, allocations: 15 MB / 0.6398 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006705/1.068, allocations: 95.14 kB / 0.6399 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003327/1.071, allocations: 40 kB / 0.6399 GB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/1.074, allocations: 1.576 MB / 0.6414 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2495/1.323, allocations: 73.9 MB / 0.7136 GB, free: 71.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006579/1.33, allocations: 6.077 MB / 0.7195 GB, free: 70.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005159/1.335, allocations: 5.039 MB / 0.7245 GB, free: 69.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02216/1.357, allocations: 14.64 MB / 0.7388 GB, free: 62.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/1.357, allocations: 69.19 kB / 0.7388 GB, free: 62.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=275): time 7.794e-06/1.357, allocations: 0 / 0.7388 GB, free: 62.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=368): time 0.118/1.476, allocations: 44.28 MB / 0.7821 GB, free: 39.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.878e-05/1.476, allocations: 372.6 kB / 0.7824 GB, free: 39.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009551/1.485, allocations: 4.965 MB / 0.7873 GB, free: 35.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001408/1.487, allocations: 25.7 kB / 0.7873 GB, free: 34.99 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003138/1.49, allocations: 4.358 MB / 0.7916 GB, free: 31.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00243/1.492, allocations: 1.311 MB / 0.7928 GB, free: 29.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009693/1.493, allocations: 4 kB / 0.7928 GB, free: 29.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004629/1.494, allocations: 0.6895 MB / 0.7935 GB, free: 29.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00701/1.501, allocations: 5.416 MB / 0.7988 GB, free: 24.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01067/1.511, allocations: 10.46 MB / 0.809 GB, free: 12.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.522, allocations: 7.434 MB / 0.8163 GB, free: 5.828 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001577/1.522, allocations: 52 kB / 0.8163 GB, free: 5.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.2182/1.741, allocations: 19.84 MB / 0.8357 GB, free: 99.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/1.741, allocations: 3.5 kB / 0.8357 GB, free: 99.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002998/1.741, allocations: 179.9 kB / 0.8359 GB, free: 99.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/1.761, allocations: 5.961 MB / 0.8417 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008212/1.77, allocations: 2.015 MB / 0.8437 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04168/1.811, allocations: 28.91 MB / 0.8719 GB, free: 94.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/1.822, allocations: 404.5 kB / 0.8723 GB, free: 94.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00324/1.825, allocations: 0.5353 MB / 0.8728 GB, free: 94.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1040 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.003914/1.829, allocations: 0.5403 MB / 0.8733 GB, free: 94.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002099/1.831, allocations: 0.5563 MB / 0.8739 GB, free: 94.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/1.863, allocations: 14.73 MB / 0.8883 GB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001508/1.863, allocations: 50.34 kB / 0.8883 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.67e-05/1.863, allocations: 16.53 kB / 0.8883 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.461e-05/1.863, allocations: 18.27 kB / 0.8883 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05376/1.917, allocations: 28.51 MB / 0.9162 GB, free: 72.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-05/1.917, allocations: 4.797 kB / 0.9162 GB, free: 72.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003452/1.92, allocations: 0.4904 MB / 0.9167 GB, free: 72.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01941/1.94, allocations: 5.625 MB / 0.9222 GB, free: 68.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001171/1.941, allocations: 8 kB / 0.9222 GB, free: 68.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03452/1.975, allocations: 27.48 MB / 0.949 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/1.975, allocations: 2.875 kB / 0.949 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2047/2.18, allocations: 22.29 MB / 0.9708 GB, free: 95.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004695/2.185, allocations: 1.531 MB / 0.9723 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002435/2.187, allocations: 6.375 kB / 0.9723 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005073/2.193, allocations: 211.6 kB / 0.9725 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00106/2.194, allocations: 164.1 kB / 0.9726 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004332/2.194, allocations: 92.08 kB / 0.9727 GB, free: 95.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00787/2.202, allocations: 3.421 MB / 0.976 GB, free: 95.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01216/2.214, allocations: 1.877 MB / 0.9779 GB, free: 95.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 230 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001642/2.216, allocations: 223.4 kB / 0.9781 GB, free: 95.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02089/2.237, allocations: 13.22 MB / 0.991 GB, free: 94.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.237, allocations: 2.469 kB / 0.991 GB, free: 94.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00969/2.246, allocations: 5.898 MB / 0.9968 GB, free: 94.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005196/2.252, allocations: 0.6979 MB / 0.9974 GB, free: 94.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03694/2.289, allocations: 16.91 MB / 1.014 GB, free: 88.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01103/2.3, allocations: 5.778 MB / 1.02 GB, free: 87.18 MB / 410.7 MB Notification: Performance of SimCode: time 2.315e-06/2.3, allocations: 1.469 kB / 1.02 GB, free: 87.18 MB / 410.7 MB Notification: Performance of Templates: time 0.3383/2.638, allocations: 105.5 MB / 1.123 GB, free: 83.06 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches