Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001345/0.001345, allocations: 110.9 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 8.957 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.78 kB / 306.9 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.0921, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2055/0.2977, allocations: 55.07 MB / 412.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02826/0.326, allocations: 11.78 MB / 424.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01111/0.3371, allocations: 243.4 kB / 424.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007497/0.3447, allocations: 4.176 MB / 428.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005292/0.3501, allocations: 1.997 MB / 430.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.3524, allocations: 1.01 MB / 431.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.3625, allocations: 8.766 MB / 440.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006415/0.3689, allocations: 5.209 MB / 445.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003759/0.3727, allocations: 1.9 MB / 447.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004388/0.3772, allocations: 3.026 MB / 450.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.3783, allocations: 340 kB / 450.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00334/0.3817, allocations: 1.552 MB / 452.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.3848, allocations: 2.431 MB / 454.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004258/0.3891, allocations: 2.73 MB / 457.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009763/0.3988, allocations: 7.574 MB / 465.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3989, allocations: 0 / 465.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.3989, allocations: 8 kB / 465.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003388/0.3992, allocations: 0 / 465.2 MB, free: 15.61 MB / 382.1 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.01519/0.4145, allocations: 5.997 MB / 471.2 MB, free: 9.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.4145, allocations: 12.03 kB / 471.3 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.4259, allocations: 2.537 MB / 473.8 MB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008728/0.4347, allocations: 3.694 MB / 477.5 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.435, allocations: 308.4 kB / 477.8 MB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001829/0.4369, allocations: 435.6 kB / 478.2 MB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02643/0.4633, allocations: 12.41 MB / 490.6 MB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002713/0.4637, allocations: 55.5 kB / 490.7 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001454/0.4651, allocations: 191.9 kB / 490.9 MB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003353/0.4685, allocations: 2.039 MB / 492.9 MB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02251/0.491, allocations: 10.56 MB / 0.4917 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.237/0.728, allocations: 44.36 MB / 0.535 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01329/0.7414, allocations: 4.849 MB / 0.5397 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00305/0.7445, allocations: 2.01 MB / 0.5417 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.7553, allocations: 7.189 MB / 0.5487 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.7554, allocations: 59.44 kB / 0.5488 GB, free: 114.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.909e-06/0.7554, allocations: 0 / 0.5488 GB, free: 114.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06062/0.816, allocations: 19.5 MB / 0.5678 GB, free: 107.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.8161, allocations: 207.3 kB / 0.568 GB, free: 107.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005028/0.8211, allocations: 4.456 MB / 0.5723 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003612/0.8215, allocations: 60.48 kB / 0.5724 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.8229, allocations: 3.516 MB / 0.5758 GB, free: 101 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006344/0.8236, allocations: 0.842 MB / 0.5767 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.8249, allocations: 1.343 MB / 0.578 GB, free: 98.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.825, allocations: 301.1 kB / 0.5783 GB, free: 98.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/0.8279, allocations: 2.369 MB / 0.5806 GB, free: 96.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/0.8317, allocations: 6.171 MB / 0.5866 GB, free: 88.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007689/0.8394, allocations: 9.18 MB / 0.5956 GB, free: 77.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.238e-05/0.8395, allocations: 40 kB / 0.5956 GB, free: 77.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01506/0.8546, allocations: 9.544 MB / 0.6049 GB, free: 67.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.8547, allocations: 63.94 kB / 0.605 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.8548, allocations: 132 kB / 0.6051 GB, free: 67.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003849/0.8586, allocations: 1.37 MB / 0.6064 GB, free: 66.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004107/0.8628, allocations: 1.474 MB / 0.6079 GB, free: 64.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009364/0.8722, allocations: 7.968 MB / 0.6157 GB, free: 56.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004528/0.8767, allocations: 355.4 kB / 0.616 GB, free: 56.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008031/0.8776, allocations: 384 kB / 0.6164 GB, free: 55.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * 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 (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003862/0.8814, allocations: 2.497 MB / 0.6188 GB, free: 53.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009459/0.8824, allocations: 398.8 kB / 0.6192 GB, free: 52.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007332/0.8897, allocations: 4.125 MB / 0.6232 GB, free: 48.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/0.8898, allocations: 24 kB / 0.6232 GB, free: 48.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.8898, allocations: 12 kB / 0.6233 GB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/0.8898, allocations: 11.91 kB / 0.6233 GB, free: 48.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/0.9072, allocations: 10.38 MB / 0.6334 GB, free: 38.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/0.9072, allocations: 8 kB / 0.6334 GB, free: 38.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/0.9088, allocations: 347.4 kB / 0.6337 GB, free: 37.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003495/0.9123, allocations: 1.148 MB / 0.6349 GB, free: 36.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003078/0.9126, allocations: 40 kB / 0.6349 GB, free: 36.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007901/0.9205, allocations: 6.674 MB / 0.6414 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.9205, allocations: 7.938 kB / 0.6414 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009939/0.9305, allocations: 6.924 MB / 0.6482 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.9318, allocations: 455.8 kB / 0.6486 GB, free: 22.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005659/0.9323, allocations: 43.94 kB / 0.6487 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.9339, allocations: 119.9 kB / 0.6488 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000364/0.9343, allocations: 140.9 kB / 0.6489 GB, free: 22.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.9344, allocations: 67.94 kB / 0.649 GB, free: 22.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003499/0.9379, allocations: 2.798 MB / 0.6517 GB, free: 19.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.938, allocations: 4 kB / 0.6517 GB, free: 19.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005403/0.9434, allocations: 1.199 MB / 0.6529 GB, free: 18.09 MB / 446.1 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000558/0.944, allocations: 226.4 kB / 0.6531 GB, free: 17.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007451/0.9514, allocations: 5.747 MB / 0.6587 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.627e-06/0.9515, allocations: 0.9375 kB / 0.6587 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002284/0.9537, allocations: 1.886 MB / 0.6606 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.9568, allocations: 0.5114 MB / 0.6611 GB, free: 9.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.975, allocations: 14.06 MB / 0.6748 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004274/0.9793, allocations: 3.843 MB / 0.6785 GB, free: 7.707 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.9805, allocations: 315.4 kB / 0.6788 GB, free: 7.398 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.9805, allocations: 0 / 0.6788 GB, free: 7.398 MB / 462.1 MB Notification: Performance of Templates: time 0.3121/1.293, allocations: 89.99 MB / 0.7667 GB, free: 143.7 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches