Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 179.3 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.363/1.363, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0007635/0.0007633, allocations: 102.1 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002751, allocations: 7.938 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2282, allocations: 50.42 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.3491, allocations: 105.2 MB / 0.4948 GB, free: 7.281 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.3494, allocations: 95.95 kB / 0.4949 GB, free: 7.188 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4236/0.773, allocations: 112.7 MB / 0.6049 GB, free: 7.426 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7731, allocations: 0 / 0.6049 GB, free: 7.426 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003196/0.7734, allocations: 104 kB / 0.605 GB, free: 7.324 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01739/0.7908, allocations: 5.359 MB / 0.6102 GB, free: 1.891 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.7909, allocations: 8.031 kB / 0.6103 GB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02734/0.8182, allocations: 6.896 MB / 0.617 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01941/0.8377, allocations: 6.483 MB / 0.6233 GB, free: 4.426 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005415/0.8383, allocations: 394.2 kB / 0.6237 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/0.8414, allocations: 0.5153 MB / 0.6242 GB, free: 3.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03347/0.8749, allocations: 12.65 MB / 0.6366 GB, free: 5.898 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004303/0.8754, allocations: 59.38 kB / 0.6366 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002341/0.8777, allocations: 243.9 kB / 0.6368 GB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001719/0.8795, allocations: 1.055 MB / 0.6379 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02391/0.9034, allocations: 10.53 MB / 0.6482 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2898/1.193, allocations: 50.15 MB / 0.6971 GB, free: 44.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/1.205, allocations: 4.805 MB / 0.7018 GB, free: 43.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009684/1.214, allocations: 7.027 MB / 0.7087 GB, free: 41.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/1.215, allocations: 59.19 kB / 0.7087 GB, free: 41.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 5.26e-06/1.215, allocations: 6.75 kB / 0.7088 GB, free: 41.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=224): time 0.06451/1.279, allocations: 20.22 MB / 0.7285 GB, free: 38.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/1.279, allocations: 204 kB / 0.7287 GB, free: 38.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00518/1.284, allocations: 3.921 MB / 0.7325 GB, free: 37.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002698/1.285, allocations: 58.05 kB / 0.7326 GB, free: 37.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/1.286, allocations: 3.573 MB / 0.7361 GB, free: 35.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006423/1.287, allocations: 0.8391 MB / 0.7369 GB, free: 35.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/1.287, allocations: 123.8 kB / 0.737 GB, free: 35.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002606/1.288, allocations: 0.5701 MB / 0.7376 GB, free: 34.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/1.29, allocations: 2.171 MB / 0.7397 GB, free: 34.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003936/1.294, allocations: 5.917 MB / 0.7455 GB, free: 28.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003853/1.298, allocations: 3.517 MB / 0.7489 GB, free: 27.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.782e-05/1.298, allocations: 43.98 kB / 0.7489 GB, free: 27.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.0129/1.311, allocations: 8.788 MB / 0.7575 GB, free: 24.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/1.311, allocations: 63.62 kB / 0.7576 GB, free: 24.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/1.311, allocations: 131.3 kB / 0.7577 GB, free: 24.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003208/1.314, allocations: 1.036 MB / 0.7587 GB, free: 23.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004392/1.319, allocations: 1.42 MB / 0.7601 GB, free: 23.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009393/1.328, allocations: 7.135 MB / 0.7671 GB, free: 17.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005346/1.334, allocations: 340.7 kB / 0.7674 GB, free: 16.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.335, allocations: 379.5 kB / 0.7678 GB, free: 16.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005315/1.34, allocations: 2.489 MB / 0.7702 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009677/1.341, allocations: 410.8 kB / 0.7706 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007647/1.349, allocations: 3.65 MB / 0.7741 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/1.349, allocations: 24 kB / 0.7742 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/1.349, allocations: 10.34 kB / 0.7742 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.111e-05/1.349, allocations: 11.02 kB / 0.7742 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02237/1.371, allocations: 9.861 MB / 0.7838 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.098e-05/1.371, allocations: 8.656 kB / 0.7838 GB, free: 2.828 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.373, allocations: 361.8 kB / 0.7842 GB, free: 2.543 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002906/1.376, allocations: 0.8019 MB / 0.785 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002969/1.376, allocations: 46.77 kB / 0.785 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008776/1.385, allocations: 5.841 MB / 0.7907 GB, free: 12.77 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/1.385, allocations: 8 kB / 0.7907 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.397, allocations: 7.015 MB / 0.7976 GB, free: 6.285 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/1.399, allocations: 448.2 kB / 0.798 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001143/1.4, allocations: 47.23 kB / 0.798 GB, free: 5.797 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.403, allocations: 104.1 kB / 0.7981 GB, free: 5.723 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004135/1.403, allocations: 144.3 kB / 0.7983 GB, free: 5.629 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/1.403, allocations: 70.38 kB / 0.7983 GB, free: 5.566 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006323/1.41, allocations: 2.764 MB / 0.801 GB, free: 3.289 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.41, allocations: 4 kB / 0.801 GB, free: 3.285 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008113/1.418, allocations: 1.174 MB / 0.8022 GB, free: 2.125 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/1.419, allocations: 231 kB / 0.8024 GB, free: 1.914 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01119/1.43, allocations: 5.481 MB / 0.8078 GB, free: 13.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/1.43, allocations: 8.125 kB / 0.8078 GB, free: 13.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003404/1.434, allocations: 1.793 MB / 0.8095 GB, free: 11.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003878/1.437, allocations: 0.5165 MB / 0.81 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02567/1.463, allocations: 12.92 MB / 0.8226 GB, free: 15.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007168/1.47, allocations: 3.972 MB / 0.8265 GB, free: 11.08 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006142/1.477, allocations: 1.941 MB / 0.8284 GB, free: 9.148 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/1.478, allocations: 275.4 kB / 0.8287 GB, free: 8.879 MB / 474.7 MB Notification: Performance of SimCode: time 9.11e-07/1.478, allocations: 4 kB / 0.8287 GB, free: 8.875 MB / 474.7 MB Notification: Performance of Templates: time 0.2837/1.761, allocations: 41.51 MB / 0.8692 GB, free: 109.8 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches