Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001547/0.001547, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.916/1.916, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001127/0.001127, allocations: 98.12 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.000392, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3263, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1541/0.4805, allocations: 94.35 MB / 468.9 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.4809, allocations: 91.95 kB / 469 MB, free: 2.309 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7516/1.232, allocations: 123.4 MB / 0.5785 GB, free: 35.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.233, allocations: 4 kB / 0.5785 GB, free: 35.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004651/1.233, allocations: 120 kB / 0.5787 GB, free: 35.65 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.0304/1.263, allocations: 7.128 MB / 0.5856 GB, free: 28.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.264, allocations: 8.031 kB / 0.5856 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06728/1.331, allocations: 9.414 MB / 0.5948 GB, free: 19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02973/1.361, allocations: 8.618 MB / 0.6032 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005388/1.361, allocations: 431.4 kB / 0.6036 GB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003319/1.365, allocations: 0.5777 MB / 0.6042 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04737/1.412, allocations: 14.82 MB / 0.6187 GB, free: 9.293 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005521/1.413, allocations: 87.23 kB / 0.6188 GB, free: 9.207 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00305/1.416, allocations: 275.9 kB / 0.619 GB, free: 8.938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003823/1.419, allocations: 1.443 MB / 0.6204 GB, free: 7.492 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04541/1.465, allocations: 13.01 MB / 0.6331 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4133/1.878, allocations: 64.73 MB / 0.6964 GB, free: 32.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03418/1.913, allocations: 7.858 MB / 0.704 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03195/1.945, allocations: 12.98 MB / 0.7167 GB, free: 28.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.735e-05/1.945, allocations: 72.03 kB / 0.7168 GB, free: 28.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 7.594e-06/1.945, allocations: 0 / 0.7168 GB, free: 28.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 3.25/5.194, allocations: 266.2 MB / 0.9767 GB, free: 22.33 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/5.194, allocations: 272.8 kB / 0.977 GB, free: 22.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3238/5.518, allocations: 4.781 MB / 0.9816 GB, free: 111.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002156/5.52, allocations: 118.9 kB / 0.9818 GB, free: 111.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003648/5.524, allocations: 3.797 MB / 0.9855 GB, free: 110.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004064/5.528, allocations: 2.114 MB / 0.9875 GB, free: 109.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002922/5.531, allocations: 189.4 kB / 0.9877 GB, free: 109.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008037/5.532, allocations: 0.7156 MB / 0.9884 GB, free: 108.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02019/5.552, allocations: 8.678 MB / 0.9969 GB, free: 108.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02529/5.578, allocations: 12.78 MB / 1.009 GB, free: 103.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02504/5.603, allocations: 10.59 MB / 1.02 GB, free: 99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001948/5.603, allocations: 40.56 kB / 1.02 GB, free: 99 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1633/5.766, allocations: 40.11 MB / 1.059 GB, free: 86.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/5.766, allocations: 64.78 kB / 1.059 GB, free: 86.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002366/5.767, allocations: 143.6 kB / 1.059 GB, free: 86.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1194/5.886, allocations: 21.55 MB / 1.08 GB, free: 71.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008854/5.895, allocations: 1.439 MB / 1.082 GB, free: 70.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7205/6.616, allocations: 151.1 MB / 1.229 GB, free: 66.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01807/6.634, allocations: 0.727 MB / 1.23 GB, free: 65.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003197/6.637, allocations: 0.5326 MB / 1.23 GB, free: 65.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (775): * Single equations (assignments): 768 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.01042/6.647, allocations: 3.127 MB / 1.233 GB, free: 62.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002328/6.65, allocations: 0.5975 MB / 1.234 GB, free: 62.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1421/6.792, allocations: 36.29 MB / 1.269 GB, free: 35.65 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/6.792, allocations: 60 kB / 1.27 GB, free: 35.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001455/6.792, allocations: 64 kB / 1.27 GB, free: 35.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001173/6.792, allocations: 30.86 kB / 1.27 GB, free: 35.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5082/7.3, allocations: 57.19 MB / 1.325 GB, free: 87.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.223e-05/7.301, allocations: 5.344 kB / 1.325 GB, free: 87.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/7.303, allocations: 271.1 kB / 1.326 GB, free: 87.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1108/7.414, allocations: 20.75 MB / 1.346 GB, free: 87.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001971/7.416, allocations: 103.2 kB / 1.346 GB, free: 87.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.66/8.076, allocations: 138.9 MB / 1.482 GB, free: 80.94 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/8.076, allocations: 4.625 kB / 1.482 GB, free: 80.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1689/8.245, allocations: 48.8 MB / 1.529 GB, free: 79.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009098/8.254, allocations: 2.411 MB / 1.532 GB, free: 78.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003647/8.258, allocations: 96.14 kB / 1.532 GB, free: 78.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01286/8.271, allocations: 0.4956 MB / 1.532 GB, free: 77.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005457/8.276, allocations: 0.5049 MB / 1.533 GB, free: 77.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001831/8.278, allocations: 143 kB / 1.533 GB, free: 77.85 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008881/8.287, allocations: 3.416 MB / 1.536 GB, free: 76.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.335e-06/8.287, allocations: 0 / 1.536 GB, free: 76.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01917/8.306, allocations: 3.447 MB / 1.54 GB, free: 76.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.002571/8.309, allocations: 228 kB / 1.54 GB, free: 76.24 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.06405/8.373, allocations: 24.52 MB / 1.564 GB, free: 60.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/8.373, allocations: 0 / 1.564 GB, free: 60.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03996/8.413, allocations: 13.82 MB / 1.577 GB, free: 48.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007386/8.421, allocations: 0.6963 MB / 1.578 GB, free: 48.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06217/8.483, allocations: 27.27 MB / 1.605 GB, free: 23.87 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01222/8.495, allocations: 5.329 MB / 1.61 GB, free: 19.94 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/8.497, allocations: 346.2 kB / 1.61 GB, free: 19.61 MB / 458.7 MB Notification: Performance of SimCode: time 1.352e-06/8.497, allocations: 0 / 1.61 GB, free: 19.61 MB / 458.7 MB Notification: Performance of Templates: time 1.091/9.588, allocations: 227.8 MB / 1.833 GB, free: 123.8 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches