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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 185.3 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.949/1.949, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001532/0.001532, allocations: 96.41 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004027, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3282, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.4889, allocations: 99.78 MB / 474.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.4893, allocations: 91.95 kB / 474.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8016/1.291, allocations: 126.9 MB / 0.5872 GB, free: 27.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.646e-06/1.291, allocations: 0 / 0.5872 GB, free: 27.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005397/1.292, allocations: 119.9 kB / 0.5873 GB, free: 27.4 MB / 378.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.03337/1.325, allocations: 6.786 MB / 0.5939 GB, free: 20.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/1.325, allocations: 8.031 kB / 0.5939 GB, free: 20.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.059/1.384, allocations: 8.307 MB / 0.602 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02579/1.41, allocations: 7.322 MB / 0.6092 GB, free: 4.816 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005168/1.41, allocations: 451.8 kB / 0.6096 GB, free: 4.375 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003526/1.414, allocations: 0.5857 MB / 0.6102 GB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04934/1.463, allocations: 15.71 MB / 0.6255 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004949/1.464, allocations: 75.3 kB / 0.6256 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003369/1.467, allocations: 287.8 kB / 0.6259 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003944/1.471, allocations: 1.62 MB / 0.6274 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04492/1.516, allocations: 13.97 MB / 0.6411 GB, free: 2.938 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.405/1.921, allocations: 64.06 MB / 0.7037 GB, free: 36.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0221/1.943, allocations: 6.44 MB / 0.7099 GB, free: 34.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03278/1.976, allocations: 14.33 MB / 0.7239 GB, free: 27.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/1.976, allocations: 58.59 kB / 0.724 GB, free: 27.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 6.222e-06/1.976, allocations: 0 / 0.724 GB, free: 27.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.2656/2.242, allocations: 42.17 MB / 0.7652 GB, free: 8.941 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/2.242, allocations: 212 kB / 0.7654 GB, free: 8.691 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01165/2.254, allocations: 4.85 MB / 0.7701 GB, free: 4.672 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008819/2.255, allocations: 73.7 kB / 0.7702 GB, free: 4.594 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003624/2.258, allocations: 4.308 MB / 0.7744 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002183/2.261, allocations: 1.244 MB / 0.7756 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/2.262, allocations: 173.6 kB / 0.7758 GB, free: 15.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009645/2.263, allocations: 0.6905 MB / 0.7764 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01263/2.276, allocations: 4.538 MB / 0.7809 GB, free: 10.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01743/2.293, allocations: 9.504 MB / 0.7902 GB, free: 14.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01619/2.31, allocations: 6.427 MB / 0.7964 GB, free: 8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001781/2.31, allocations: 52 kB / 0.7965 GB, free: 7.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.3761/2.686, allocations: 18.5 MB / 0.8145 GB, free: 94.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/2.686, allocations: 80.67 kB / 0.8146 GB, free: 94.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003081/2.687, allocations: 179.4 kB / 0.8148 GB, free: 94.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04029/2.727, allocations: 5.634 MB / 0.8203 GB, free: 94.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01399/2.741, allocations: 2.046 MB / 0.8223 GB, free: 94.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05299/2.794, allocations: 24.3 MB / 0.846 GB, free: 90.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01098/2.805, allocations: 0.5386 MB / 0.8466 GB, free: 90.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002217/2.807, allocations: 0.5072 MB / 0.847 GB, free: 90.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1060): * Single equations (assignments): 1052 * 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.008778/2.816, allocations: 3.096 MB / 0.8501 GB, free: 89.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/2.818, allocations: 0.4986 MB / 0.8506 GB, free: 89.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05512/2.873, allocations: 12.34 MB / 0.8626 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/2.873, allocations: 54.23 kB / 0.8627 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-05/2.873, allocations: 10.47 kB / 0.8627 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.122e-05/2.873, allocations: 19.27 kB / 0.8627 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08074/2.954, allocations: 23.95 MB / 0.8861 GB, free: 74.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-05/2.954, allocations: 8 kB / 0.8861 GB, free: 74.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005571/2.959, allocations: 0.5645 MB / 0.8866 GB, free: 73.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03462/2.994, allocations: 4.644 MB / 0.8912 GB, free: 70.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008649/2.995, allocations: 57.72 kB / 0.8912 GB, free: 70.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03896/3.034, allocations: 19.58 MB / 0.9103 GB, free: 51.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/3.034, allocations: 11.56 kB / 0.9104 GB, free: 51.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05714/3.091, allocations: 17.37 MB / 0.9273 GB, free: 33.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004434/3.096, allocations: 1.226 MB / 0.9285 GB, free: 32.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001974/3.098, allocations: 55.98 kB / 0.9286 GB, free: 32.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00617/3.104, allocations: 246.6 kB / 0.9288 GB, free: 32.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001453/3.105, allocations: 188.7 kB / 0.929 GB, free: 32.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000497/3.106, allocations: 83.98 kB / 0.9291 GB, free: 32.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008763/3.115, allocations: 3.378 MB / 0.9324 GB, free: 28.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/3.115, allocations: 0 / 0.9324 GB, free: 28.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01087/3.126, allocations: 1.703 MB / 0.934 GB, free: 27.15 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * 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.001319/3.127, allocations: 224.3 kB / 0.9342 GB, free: 26.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02304/3.15, allocations: 10.46 MB / 0.9445 GB, free: 16.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/3.15, allocations: 0 / 0.9445 GB, free: 16.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01394/3.164, allocations: 3.957 MB / 0.9483 GB, free: 12.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005076/3.169, allocations: 0.5818 MB / 0.9489 GB, free: 12.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3583/3.528, allocations: 19.01 MB / 0.9675 GB, free: 107.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/3.539, allocations: 4.761 MB / 0.9721 GB, free: 106.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003249/3.542, allocations: 419.8 kB / 0.9725 GB, free: 106.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.503e-06/3.542, allocations: 3.094 kB / 0.9725 GB, free: 106.3 MB / 458.7 MB Notification: Performance of Templates: time 0.259/3.801, allocations: 142.6 MB / 1.112 GB, free: 16.75 MB / 458.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