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.001079/0.001079, allocations: 106.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.91 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.0936, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2323/0.326, allocations: 55.07 MB / 412 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02958/0.3556, allocations: 11.67 MB / 423.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01347/0.3691, allocations: 243.4 kB / 424 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008065/0.3773, allocations: 4.028 MB / 428 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005904/0.3832, allocations: 1.978 MB / 430 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002895/0.3861, allocations: 1.034 MB / 431 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008752/0.3949, allocations: 6.438 MB / 437.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007722/0.4026, allocations: 5.579 MB / 443 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003887/0.4066, allocations: 2.197 MB / 445.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004417/0.411, allocations: 3.167 MB / 448.4 MB, free: 104 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.4125, allocations: 0.4922 MB / 448.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003441/0.416, allocations: 1.635 MB / 450.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003256/0.4193, allocations: 2.588 MB / 453.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004694/0.424, allocations: 2.91 MB / 456 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.4344, allocations: 9.296 MB / 465.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4344, allocations: 3.984 kB / 465.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4344, allocations: 0 / 465.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002847/0.4347, allocations: 4 kB / 465.3 MB, free: 15.12 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.01446/0.4492, allocations: 5.994 MB / 471.3 MB, free: 9.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.4492, allocations: 8.031 kB / 471.3 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.461, allocations: 2.54 MB / 473.9 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008328/0.4694, allocations: 3.694 MB / 477.5 MB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.4697, allocations: 304.5 kB / 477.8 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/0.4714, allocations: 439.6 kB / 478.3 MB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02254/0.4939, allocations: 12.42 MB / 490.7 MB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.4941, allocations: 51.5 kB / 490.7 MB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004719/0.4946, allocations: 191.9 kB / 490.9 MB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002872/0.4974, allocations: 2.039 MB / 493 MB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01957/0.517, allocations: 10.56 MB / 0.4917 GB, free: 7.988 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2325/0.7496, allocations: 44.36 MB / 0.535 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01331/0.763, allocations: 4.848 MB / 0.5398 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002674/0.7657, allocations: 2.011 MB / 0.5417 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.776, allocations: 7.187 MB / 0.5488 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.7761, allocations: 50.44 kB / 0.5488 GB, free: 114.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.508e-06/0.7761, allocations: 0 / 0.5488 GB, free: 114.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06057/0.8366, allocations: 19.5 MB / 0.5679 GB, free: 107.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.8368, allocations: 208 kB / 0.5681 GB, free: 107.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005033/0.8418, allocations: 4.467 MB / 0.5724 GB, free: 104.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003818/0.8422, allocations: 53.7 kB / 0.5725 GB, free: 104.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.8438, allocations: 3.507 MB / 0.5759 GB, free: 100.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007047/0.8445, allocations: 0.8483 MB / 0.5767 GB, free: 100 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00134/0.8458, allocations: 1.34 MB / 0.578 GB, free: 98.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.8459, allocations: 301.1 kB / 0.5783 GB, free: 98.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002741/0.8486, allocations: 2.371 MB / 0.5806 GB, free: 96.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003868/0.8525, allocations: 6.173 MB / 0.5867 GB, free: 88.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007675/0.8602, allocations: 9.172 MB / 0.5956 GB, free: 77.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.279e-05/0.8603, allocations: 40 kB / 0.5957 GB, free: 77.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01519/0.8755, allocations: 9.558 MB / 0.605 GB, free: 67.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.961e-05/0.8757, allocations: 60 kB / 0.605 GB, free: 67.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/0.8758, allocations: 139.9 kB / 0.6052 GB, free: 67.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003648/0.8794, allocations: 1.367 MB / 0.6065 GB, free: 66.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/0.8835, allocations: 1.478 MB / 0.608 GB, free: 64.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009602/0.8931, allocations: 8.503 MB / 0.6163 GB, free: 55.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005435/0.8986, allocations: 355.5 kB / 0.6166 GB, free: 55.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008039/0.8994, allocations: 395.2 kB / 0.617 GB, free: 55.18 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.003316/0.9027, allocations: 2.485 MB / 0.6194 GB, free: 52.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007123/0.9034, allocations: 402.8 kB / 0.6198 GB, free: 52.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0071/0.9105, allocations: 4.122 MB / 0.6238 GB, free: 48.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.514e-05/0.9106, allocations: 24 kB / 0.6238 GB, free: 48.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/0.9106, allocations: 11.94 kB / 0.6238 GB, free: 48.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.9107, allocations: 15.95 kB / 0.6239 GB, free: 48.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/0.9284, allocations: 10.38 MB / 0.634 GB, free: 37.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-05/0.9285, allocations: 8 kB / 0.634 GB, free: 37.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.9303, allocations: 347.4 kB / 0.6343 GB, free: 37.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00364/0.9339, allocations: 1.148 MB / 0.6355 GB, free: 36.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003607/0.9343, allocations: 40 kB / 0.6355 GB, free: 36.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008222/0.9426, allocations: 7.146 MB / 0.6425 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.9426, allocations: 8 kB / 0.6425 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009651/0.9523, allocations: 6.928 MB / 0.6492 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/0.9535, allocations: 450.9 kB / 0.6497 GB, free: 21.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004557/0.954, allocations: 47.5 kB / 0.6497 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.9555, allocations: 115.9 kB / 0.6498 GB, free: 21.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003548/0.9559, allocations: 141 kB / 0.65 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.956, allocations: 63.98 kB / 0.65 GB, free: 20.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003366/0.9594, allocations: 2.798 MB / 0.6528 GB, free: 18.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9594, allocations: 0 / 0.6528 GB, free: 18.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005102/0.9645, allocations: 1.195 MB / 0.6539 GB, free: 16.96 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.0005436/0.9651, allocations: 231.9 kB / 0.6541 GB, free: 16.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009814/0.9749, allocations: 6.864 MB / 0.6609 GB, free: 9.914 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.9749, allocations: 0 / 0.6609 GB, free: 9.914 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.9772, allocations: 1.886 MB / 0.6627 GB, free: 8.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.9804, allocations: 0.5526 MB / 0.6632 GB, free: 7.477 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/0.9997, allocations: 13.57 MB / 0.6765 GB, free: 9.816 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004581/1.004, allocations: 3.863 MB / 0.6803 GB, free: 5.918 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004898/1.009, allocations: 1.926 MB / 0.6821 GB, free: 3.984 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009012/1.01, allocations: 267.4 kB / 0.6824 GB, free: 3.723 MB / 462.1 MB Notification: Performance of SimCode: time 1.402e-06/1.01, allocations: 0 / 0.6824 GB, free: 3.723 MB / 462.1 MB Notification: Performance of Templates: time 0.2739/1.284, allocations: 45.52 MB / 0.7269 GB, free: 167 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/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