Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008896/0.0008896, allocations: 90.98 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.0002541, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2139, allocations: 50.42 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.3281, allocations: 101.4 MB / 0.4911 GB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.3284, allocations: 99.89 kB / 0.4912 GB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4864/0.8148, allocations: 128.5 MB / 0.6167 GB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.686e-06/0.8148, allocations: 0 / 0.6167 GB, free: 10.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002851/0.8151, allocations: 116 kB / 0.6168 GB, free: 10.64 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.02103/0.8361, allocations: 6.763 MB / 0.6234 GB, free: 3.801 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.8362, allocations: 8.031 kB / 0.6234 GB, free: 3.793 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03236/0.8686, allocations: 8.302 MB / 0.6316 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/0.8869, allocations: 6.998 MB / 0.6384 GB, free: 4.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004435/0.8874, allocations: 447.8 kB / 0.6388 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/0.8902, allocations: 0.5857 MB / 0.6394 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03267/0.9229, allocations: 15.72 MB / 0.6547 GB, free: 2.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/0.9232, allocations: 79.22 kB / 0.6548 GB, free: 2.422 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001306/0.9245, allocations: 283.8 kB / 0.6551 GB, free: 2.145 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002041/0.9266, allocations: 1.624 MB / 0.6567 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.228/1.155, allocations: 13.96 MB / 0.6703 GB, free: 68.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06661/1.221, allocations: 64.03 MB / 0.7328 GB, free: 31.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/1.233, allocations: 6.436 MB / 0.7391 GB, free: 29.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01623/1.249, allocations: 14.29 MB / 0.7531 GB, free: 21.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/1.249, allocations: 64.03 kB / 0.7531 GB, free: 21.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.482e-06/1.249, allocations: 3.969 kB / 0.7531 GB, free: 21.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1292/1.378, allocations: 42.08 MB / 0.7942 GB, free: 10.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/1.378, allocations: 213.7 kB / 0.7944 GB, free: 10.31 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007344/1.386, allocations: 4.823 MB / 0.7991 GB, free: 6.332 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006867/1.387, allocations: 69.7 kB / 0.7992 GB, free: 6.258 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003073/1.39, allocations: 4.432 MB / 0.8035 GB, free: 2.066 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.391, allocations: 1.24 MB / 0.8047 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005017/1.392, allocations: 172 kB / 0.8049 GB, free: 0.668 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005089/1.392, allocations: 0.6781 MB / 0.8056 GB, free: 15.98 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006143/1.398, allocations: 4.538 MB / 0.81 GB, free: 11.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009255/1.408, allocations: 9.509 MB / 0.8193 GB, free: 15.58 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009495/1.417, allocations: 6.417 MB / 0.8255 GB, free: 9.141 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000158/1.417, allocations: 52 kB / 0.8256 GB, free: 9.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2807/1.698, allocations: 18.68 MB / 0.8438 GB, free: 103.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.698, allocations: 82.84 kB / 0.8439 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/1.698, allocations: 173.9 kB / 0.8441 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02013/1.719, allocations: 5.632 MB / 0.8496 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008055/1.727, allocations: 2.049 MB / 0.8516 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03049/1.757, allocations: 24.29 MB / 0.8753 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009058/1.766, allocations: 0.5438 MB / 0.8758 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001968/1.768, allocations: 0.5028 MB / 0.8763 GB, free: 100.7 MB / 474.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.007093/1.775, allocations: 3.096 MB / 0.8794 GB, free: 99.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/1.777, allocations: 0.4927 MB / 0.8798 GB, free: 99.69 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02763/1.804, allocations: 12.35 MB / 0.8919 GB, free: 95.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/1.805, allocations: 56.38 kB / 0.8919 GB, free: 95.76 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.164e-05/1.805, allocations: 7.875 kB / 0.892 GB, free: 95.76 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-05/1.805, allocations: 15.91 kB / 0.892 GB, free: 95.76 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05043/1.855, allocations: 23.93 MB / 0.9153 GB, free: 86.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-05/1.855, allocations: 14.16 kB / 0.9154 GB, free: 86.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.858, allocations: 0.5661 MB / 0.9159 GB, free: 86.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01721/1.875, allocations: 4.649 MB / 0.9204 GB, free: 85.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008299/1.876, allocations: 56 kB / 0.9205 GB, free: 85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/1.898, allocations: 19.59 MB / 0.9396 GB, free: 67.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.898, allocations: 17.98 kB / 0.9396 GB, free: 67.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03/1.928, allocations: 17.36 MB / 0.9566 GB, free: 50.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.929, allocations: 0.532 MB / 0.9571 GB, free: 50.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/1.931, allocations: 59.94 kB / 0.9572 GB, free: 50.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002946/1.934, allocations: 243.6 kB / 0.9574 GB, free: 50.17 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006345/1.934, allocations: 192.5 kB / 0.9576 GB, free: 49.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/1.935, allocations: 86.88 kB / 0.9577 GB, free: 49.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005232/1.94, allocations: 3.35 MB / 0.9609 GB, free: 46.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.94, allocations: 0 / 0.9609 GB, free: 46.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009148/1.949, allocations: 1.708 MB / 0.9626 GB, free: 44.88 MB / 474.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.0007967/1.95, allocations: 213.7 kB / 0.9628 GB, free: 44.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01462/1.964, allocations: 10.44 MB / 0.973 GB, free: 34.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.964, allocations: 4 kB / 0.973 GB, free: 34.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005052/1.97, allocations: 3.956 MB / 0.9769 GB, free: 30.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/1.974, allocations: 0.5738 MB / 0.9774 GB, free: 30.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02907/2.003, allocations: 18.29 MB / 0.9953 GB, free: 12.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004913/2.008, allocations: 4.749 MB / 0.9999 GB, free: 7.492 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006885/2.015, allocations: 2.984 MB / 1.003 GB, free: 4.621 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2178/2.232, allocations: 347 kB / 1.003 GB, free: 95.61 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/2.233, allocations: 2.781 kB / 1.003 GB, free: 95.61 MB / 474.7 MB Notification: Performance of Templates: time 0.1095/2.342, allocations: 73.31 MB / 1.075 GB, free: 86.01 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches