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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001546, allocations: 181.5 kB / 17.01 MB, free: 5.125 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.385/1.385, allocations: 205.4 MB / 223.1 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.001015/0.001015, allocations: 96.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 11.98 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2516, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3728, allocations: 99.77 MB / 475.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.3732, allocations: 91.95 kB / 475.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4895/0.8626, allocations: 126.8 MB / 0.5884 GB, free: 27.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.8627, allocations: 0 / 0.5884 GB, free: 27.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000384/0.8631, allocations: 119.9 kB / 0.5885 GB, free: 27.27 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.02261/0.8857, allocations: 6.786 MB / 0.5951 GB, free: 20.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.8858, allocations: 8.031 kB / 0.5951 GB, free: 20.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.9161, allocations: 8.303 MB / 0.6033 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/0.9359, allocations: 7.338 MB / 0.6104 GB, free: 4.672 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004652/0.9364, allocations: 447.8 kB / 0.6108 GB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003237/0.9397, allocations: 0.5818 MB / 0.6114 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03681/0.9765, allocations: 15.71 MB / 0.6268 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003242/0.9769, allocations: 83.17 kB / 0.6268 GB, free: 2.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002564/0.9794, allocations: 287.8 kB / 0.6271 GB, free: 2.406 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002797/0.9823, allocations: 1.616 MB / 0.6287 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03118/1.013, allocations: 13.97 MB / 0.6423 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3276/1.341, allocations: 64.07 MB / 0.7049 GB, free: 36.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01318/1.354, allocations: 6.434 MB / 0.7112 GB, free: 34.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0223/1.377, allocations: 14.33 MB / 0.7252 GB, free: 27.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.84e-05/1.377, allocations: 61.22 kB / 0.7252 GB, free: 26.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 6.032e-06/1.377, allocations: 0 / 0.7252 GB, free: 26.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1554/1.532, allocations: 42.18 MB / 0.7664 GB, free: 8.703 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/1.532, allocations: 212.9 kB / 0.7666 GB, free: 8.453 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/1.543, allocations: 4.847 MB / 0.7714 GB, free: 4.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009532/1.544, allocations: 74.83 kB / 0.7714 GB, free: 4.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003452/1.547, allocations: 4.446 MB / 0.7758 GB, free: 440 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002034/1.549, allocations: 1.244 MB / 0.777 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/1.551, allocations: 172 kB / 0.7771 GB, free: 15.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001134/1.552, allocations: 0.6786 MB / 0.7778 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00834/1.56, allocations: 4.54 MB / 0.7822 GB, free: 9.812 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01301/1.574, allocations: 9.505 MB / 0.7915 GB, free: 13.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/1.585, allocations: 6.427 MB / 0.7978 GB, free: 7.641 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002104/1.585, allocations: 48 kB / 0.7978 GB, free: 7.594 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.3611/1.946, allocations: 18.67 MB / 0.8161 GB, free: 94.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003144/1.947, allocations: 80.97 kB / 0.8162 GB, free: 94.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004162/1.947, allocations: 173.2 kB / 0.8163 GB, free: 94.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03862/1.986, allocations: 5.638 MB / 0.8218 GB, free: 94.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/1.997, allocations: 2.056 MB / 0.8238 GB, free: 94.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03171/2.029, allocations: 24.29 MB / 0.8476 GB, free: 90.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008404/2.038, allocations: 0.5426 MB / 0.8481 GB, free: 90.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002254/2.04, allocations: 0.5113 MB / 0.8486 GB, free: 90.24 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.008105/2.048, allocations: 3.096 MB / 0.8516 GB, free: 89.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/2.049, allocations: 0.4981 MB / 0.8521 GB, free: 89.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0288/2.078, allocations: 12.35 MB / 0.8642 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.73e-05/2.078, allocations: 52.48 kB / 0.8642 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/2.078, allocations: 9.281 kB / 0.8642 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.73e-05/2.078, allocations: 13.59 kB / 0.8642 GB, free: 85.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04884/2.127, allocations: 23.94 MB / 0.8876 GB, free: 73.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.841e-05/2.127, allocations: 4 kB / 0.8876 GB, free: 73.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/2.13, allocations: 0.5676 MB / 0.8882 GB, free: 73.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0172/2.148, allocations: 4.649 MB / 0.8927 GB, free: 70.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008265/2.148, allocations: 63.03 kB / 0.8928 GB, free: 70.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/2.17, allocations: 19.58 MB / 0.9119 GB, free: 50.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/2.17, allocations: 11.56 kB / 0.9119 GB, free: 50.73 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0312/2.201, allocations: 17.38 MB / 0.9289 GB, free: 33.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004199/2.205, allocations: 1.217 MB / 0.9301 GB, free: 32.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00137/2.207, allocations: 55.98 kB / 0.9301 GB, free: 32.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003118/2.21, allocations: 242.9 kB / 0.9303 GB, free: 31.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006054/2.211, allocations: 193.2 kB / 0.9305 GB, free: 31.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002566/2.211, allocations: 83.98 kB / 0.9306 GB, free: 31.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005624/2.216, allocations: 3.374 MB / 0.9339 GB, free: 28.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.216, allocations: 0 / 0.9339 GB, free: 28.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009153/2.226, allocations: 1.711 MB / 0.9356 GB, free: 26.52 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.0009358/2.227, allocations: 215 kB / 0.9358 GB, free: 26.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01504/2.242, allocations: 10.45 MB / 0.946 GB, free: 16.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/2.242, allocations: 0 / 0.946 GB, free: 16.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005346/2.247, allocations: 3.957 MB / 0.9499 GB, free: 12.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003705/2.251, allocations: 0.5764 MB / 0.9504 GB, free: 11.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2649/2.516, allocations: 18.31 MB / 0.9683 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007812/2.524, allocations: 4.761 MB / 0.9729 GB, free: 106 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007483/2.531, allocations: 2.985 MB / 0.9759 GB, free: 106 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/2.533, allocations: 355 kB / 0.9762 GB, free: 106 MB / 458.7 MB Notification: Performance of SimCode: time 1.583e-06/2.533, allocations: 2.812 kB / 0.9762 GB, free: 106 MB / 458.7 MB Notification: Performance of Templates: time 0.1227/2.655, allocations: 73.38 MB / 1.048 GB, free: 82.14 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