Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002463/0.002462, allocations: 179.8 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.861/1.861, allocations: 205.2 MB / 213.8 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.001279/0.001279, allocations: 89.8 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.666e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2458, allocations: 47.56 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1566/0.4024, allocations: 98.95 MB / 460.8 MB, free: 3.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.4028, allocations: 91.94 kB / 460.9 MB, free: 2.965 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.7035/1.106, allocations: 122.7 MB / 0.5699 GB, free: 54.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003899/1.107, allocations: 119.9 kB / 0.57 GB, free: 54.73 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02634/1.133, allocations: 6.161 MB / 0.576 GB, free: 49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/1.133, allocations: 12.03 kB / 0.576 GB, free: 48.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05706/1.19, allocations: 7.632 MB / 0.5835 GB, free: 41.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02806/1.218, allocations: 7.351 MB / 0.5907 GB, free: 36.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003764/1.219, allocations: 192 kB / 0.5908 GB, free: 36.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003717/1.223, allocations: 351.1 kB / 0.5912 GB, free: 35.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02666/1.249, allocations: 10.39 MB / 0.6013 GB, free: 25.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0402/1.289, allocations: 14.34 MB / 0.6153 GB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003778/1.29, allocations: 63.41 kB / 0.6154 GB, free: 9.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003459/1.293, allocations: 36 kB / 0.6154 GB, free: 9.801 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003544/1.297, allocations: 1.739 MB / 0.6171 GB, free: 8.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2883/1.585, allocations: 62.45 MB / 0.6781 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009441/1.595, allocations: 4.613 MB / 0.6826 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0078/1.603, allocations: 3.556 MB / 0.6861 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04083/1.644, allocations: 15.41 MB / 0.7011 GB, free: 98.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.809e-05/1.644, allocations: 72.88 kB / 0.7012 GB, free: 98.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 7.695e-06/1.644, allocations: 0 / 0.7012 GB, free: 98.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.1362/1.78, allocations: 29.1 MB / 0.7296 GB, free: 90.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.78, allocations: 213.1 kB / 0.7298 GB, free: 90.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01341/1.793, allocations: 4.364 MB / 0.7341 GB, free: 88.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000955/1.794, allocations: 26.42 kB / 0.7341 GB, free: 88.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003615/1.798, allocations: 4.098 MB / 0.7381 GB, free: 85.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002608/1.801, allocations: 1.231 MB / 0.7393 GB, free: 84.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001928/1.803, allocations: 0 / 0.7393 GB, free: 84.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001499/1.804, allocations: 0.7022 MB / 0.74 GB, free: 84.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01225/1.817, allocations: 4.528 MB / 0.7444 GB, free: 82.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01491/1.832, allocations: 9.728 MB / 0.7539 GB, free: 71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/1.847, allocations: 6.587 MB / 0.7603 GB, free: 65.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001945/1.847, allocations: 52 kB / 0.7604 GB, free: 65.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.07522/1.922, allocations: 17.51 MB / 0.7775 GB, free: 51.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/1.922, allocations: 8 kB / 0.7775 GB, free: 51.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002838/1.922, allocations: 187.9 kB / 0.7777 GB, free: 51.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04424/1.967, allocations: 5.314 MB / 0.7829 GB, free: 48.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01474/1.981, allocations: 2.089 MB / 0.7849 GB, free: 46.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04942/2.031, allocations: 20.97 MB / 0.8054 GB, free: 27.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0105/2.041, allocations: 303.3 kB / 0.8057 GB, free: 27.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002573/2.044, allocations: 0.5343 MB / 0.8062 GB, free: 27.21 MB / 426.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 {(3,66.7%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003613/2.048, allocations: 493.8 kB / 0.8067 GB, free: 26.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/2.049, allocations: 481.7 kB / 0.8071 GB, free: 26.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05991/2.109, allocations: 12 MB / 0.8189 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001884/2.11, allocations: 47.98 kB / 0.8189 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.893e-05/2.11, allocations: 14.94 kB / 0.8189 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-05/2.11, allocations: 15.94 kB / 0.8189 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2535/2.363, allocations: 22.43 MB / 0.8408 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.752e-05/2.363, allocations: 9.688 kB / 0.8408 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006101/2.369, allocations: 0.5116 MB / 0.8413 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04426/2.414, allocations: 4.323 MB / 0.8456 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009661/2.415, allocations: 13.08 kB / 0.8456 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04053/2.455, allocations: 16.82 MB / 0.862 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-05/2.455, allocations: 11.41 kB / 0.862 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06443/2.52, allocations: 17.18 MB / 0.8788 GB, free: 116.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004659/2.525, allocations: 1.189 MB / 0.8799 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002341/2.527, allocations: 7.656 kB / 0.88 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006499/2.533, allocations: 133.8 kB / 0.8801 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.535, allocations: 159 kB / 0.8802 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000523/2.535, allocations: 81.69 kB / 0.8803 GB, free: 116.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.007904/2.543, allocations: 2.928 MB / 0.8832 GB, free: 115.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01158/2.555, allocations: 1.478 MB / 0.8846 GB, free: 115.3 MB / 426.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.001419/2.556, allocations: 166.2 kB / 0.8848 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02502/2.581, allocations: 10.26 MB / 0.8948 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/2.581, allocations: 1.656 kB / 0.8948 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01034/2.592, allocations: 3.879 MB / 0.8986 GB, free: 110.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005605/2.597, allocations: 461.1 kB / 0.899 GB, free: 110.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04668/2.644, allocations: 14.37 MB / 0.9131 GB, free: 99.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01539/2.66, allocations: 5.173 MB / 0.9181 GB, free: 96.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.883e-06/2.66, allocations: 2.406 kB / 0.9181 GB, free: 96.02 MB / 426.7 MB Notification: Performance of Templates: time 0.4281/3.088, allocations: 148.1 MB / 1.063 GB, free: 90.88 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches