Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001712/0.001717, allocations: 178.9 kB / 8.154 MB, free: 2.18 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.669/1.669, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001282/0.001281, allocations: 87.25 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.136e-05/1.149e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2444, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.4051, allocations: 102.1 MB / 463.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.4055, allocations: 87.95 kB / 464 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.7353/1.141, allocations: 135.1 MB / 0.585 GB, free: 43.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00064/1.141, allocations: 147.9 kB / 0.5852 GB, free: 42.88 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.03389/1.175, allocations: 7.403 MB / 0.5924 GB, free: 35.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/1.175, allocations: 12.02 kB / 0.5924 GB, free: 35.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07776/1.253, allocations: 11.32 MB / 0.6034 GB, free: 24.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03876/1.292, allocations: 10.62 MB / 0.6138 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/1.293, allocations: 227.9 kB / 0.614 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003632/1.296, allocations: 427.8 kB / 0.6144 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02741/1.324, allocations: 10.23 MB / 0.6244 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04591/1.37, allocations: 14.99 MB / 0.6391 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000669/1.37, allocations: 103.1 kB / 0.6392 GB, free: 2.176 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003431/1.374, allocations: 40 kB / 0.6392 GB, free: 2.137 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00407/1.378, allocations: 1.572 MB / 0.6407 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2967/1.675, allocations: 73.9 MB / 0.7129 GB, free: 83.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.686, allocations: 6.077 MB / 0.7189 GB, free: 82.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00978/1.696, allocations: 5.033 MB / 0.7238 GB, free: 82.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0389/1.735, allocations: 14.65 MB / 0.7381 GB, free: 76.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.298e-05/1.735, allocations: 65.31 kB / 0.7381 GB, free: 76.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=275): time 9.849e-06/1.735, allocations: 0 / 0.7381 GB, free: 76.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=368): time 0.221/1.956, allocations: 44.28 MB / 0.7814 GB, free: 55.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/1.957, allocations: 376.6 kB / 0.7817 GB, free: 55.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/1.971, allocations: 4.967 MB / 0.7866 GB, free: 50.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001212/1.972, allocations: 29.7 kB / 0.7866 GB, free: 50.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003181/1.975, allocations: 4.163 MB / 0.7907 GB, free: 47.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002573/1.978, allocations: 1.31 MB / 0.792 GB, free: 46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001849/1.98, allocations: 0 / 0.792 GB, free: 46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008723/1.981, allocations: 0.6971 MB / 0.7926 GB, free: 45.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01292/1.994, allocations: 5.413 MB / 0.7979 GB, free: 40.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01647/2.01, allocations: 10.46 MB / 0.8081 GB, free: 28.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01663/2.027, allocations: 7.431 MB / 0.8154 GB, free: 21.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/2.027, allocations: 55.47 kB / 0.8155 GB, free: 21.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.07416/2.101, allocations: 19.63 MB / 0.8346 GB, free: 5.887 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/2.101, allocations: 8 kB / 0.8346 GB, free: 5.879 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004593/2.102, allocations: 176.8 kB / 0.8348 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03914/2.141, allocations: 5.869 MB / 0.8405 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01613/2.157, allocations: 2.102 MB / 0.8426 GB, free: 0 / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2352/2.392, allocations: 29.65 MB / 0.8715 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01156/2.404, allocations: 395.7 kB / 0.8719 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002767/2.407, allocations: 0.5252 MB / 0.8724 GB, free: 108.8 MB / 426.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 {(8,56.2%) 65,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.004716/2.412, allocations: 492.5 kB / 0.8729 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/2.414, allocations: 0.5535 MB / 0.8734 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06057/2.474, allocations: 14.73 MB / 0.8878 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001986/2.475, allocations: 42.09 kB / 0.8879 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.352e-05/2.475, allocations: 18.97 kB / 0.8879 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-05/2.475, allocations: 17.86 kB / 0.8879 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09821/2.573, allocations: 28.5 MB / 0.9157 GB, free: 95.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.72e-05/2.573, allocations: 2.469 kB / 0.9157 GB, free: 95.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006594/2.58, allocations: 0.5027 MB / 0.9162 GB, free: 95.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03965/2.619, allocations: 5.628 MB / 0.9217 GB, free: 94.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001244/2.621, allocations: 3.438 kB / 0.9217 GB, free: 94.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06855/2.689, allocations: 27.48 MB / 0.9486 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/2.689, allocations: 10.23 kB / 0.9486 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07298/2.762, allocations: 22.28 MB / 0.9703 GB, free: 55.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006254/2.769, allocations: 1.539 MB / 0.9718 GB, free: 53.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003051/2.772, allocations: 0 / 0.9718 GB, free: 53.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008504/2.78, allocations: 220.4 kB / 0.972 GB, free: 53.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/2.782, allocations: 168.1 kB / 0.9722 GB, free: 53.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001213/2.783, allocations: 89.23 kB / 0.9723 GB, free: 53.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.01033/2.794, allocations: 3.427 MB / 0.9756 GB, free: 50.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01433/2.808, allocations: 1.869 MB / 0.9775 GB, free: 48.72 MB / 426.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.002082/2.81, allocations: 220.5 kB / 0.9777 GB, free: 48.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03392/2.844, allocations: 13.24 MB / 0.9906 GB, free: 35.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/2.844, allocations: 6.688 kB / 0.9906 GB, free: 35.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01697/2.861, allocations: 5.902 MB / 0.9964 GB, free: 30 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007393/2.869, allocations: 0.6888 MB / 0.997 GB, free: 29.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2686/3.137, allocations: 17.76 MB / 1.014 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01928/3.157, allocations: 5.84 MB / 1.02 GB, free: 107.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.913e-06/3.157, allocations: 0 / 1.02 GB, free: 107.3 MB / 426.7 MB Notification: Performance of Templates: time 0.5386/3.695, allocations: 205.3 MB / 1.221 GB, free: 84.68 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches