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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 85.2 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 175.8 kB / 17.2 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.000268, allocations: 8.516 kB / 300.8 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 50.42 MB / 351.2 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2651/0.369, allocations: 50.23 MB / 401.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03151/0.4006, allocations: 11.3 MB / 412.8 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01511/0.4157, allocations: 244.5 kB / 413 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008831/0.4246, allocations: 2.572 MB / 415.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02584/0.4505, allocations: 7.713 MB / 423.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.4552, allocations: 0.9087 MB / 424.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07902/0.5342, allocations: 61.93 MB / 486.1 MB, free: 13.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01159/0.5459, allocations: 6.582 MB / 492.7 MB, free: 6.977 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003795/0.5497, allocations: 1.642 MB / 494.4 MB, free: 5.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004283/0.554, allocations: 2.539 MB / 496.9 MB, free: 2.781 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001122/0.5551, allocations: 187.9 kB / 497.1 MB, free: 2.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003033/0.5582, allocations: 1.186 MB / 498.3 MB, free: 1.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002971/0.5612, allocations: 2.19 MB / 0.4887 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.5632, allocations: 1.038 MB / 0.4897 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00981/0.573, allocations: 7.419 MB / 0.497 GB, free: 6.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.573, allocations: 0 / 0.497 GB, free: 6.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.573, allocations: 3.938 kB / 0.497 GB, free: 6.727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005419/0.5736, allocations: 0 / 0.497 GB, free: 6.727 MB / 414.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.01405/0.5877, allocations: 4.995 MB / 0.5019 GB, free: 1.656 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.5877, allocations: 8.031 kB / 0.5019 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.5988, allocations: 2.586 MB / 0.5044 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008022/0.6069, allocations: 3.679 MB / 0.508 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.6072, allocations: 311.8 kB / 0.5083 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/0.6085, allocations: 439.6 kB / 0.5087 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02298/0.6315, allocations: 12.41 MB / 0.5208 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.6316, allocations: 47.59 kB / 0.5209 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004722/0.6321, allocations: 191.8 kB / 0.521 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002974/0.6351, allocations: 2.031 MB / 0.523 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02048/0.6556, allocations: 10.54 MB / 0.5333 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2647/0.9203, allocations: 44.33 MB / 0.5766 GB, free: 120.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/0.9314, allocations: 4.879 MB / 0.5814 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002265/0.9337, allocations: 2.009 MB / 0.5833 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009048/0.9427, allocations: 7.105 MB / 0.5903 GB, free: 110.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.9428, allocations: 55.5 kB / 0.5903 GB, free: 110.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.939e-06/0.9428, allocations: 4 kB / 0.5903 GB, free: 110.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05482/0.9977, allocations: 19.69 MB / 0.6096 GB, free: 91.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.9978, allocations: 209.8 kB / 0.6098 GB, free: 90.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004849/1.003, allocations: 4.441 MB / 0.6141 GB, free: 86.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002311/1.003, allocations: 58.48 kB / 0.6142 GB, free: 86.31 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/1.004, allocations: 3.514 MB / 0.6176 GB, free: 82.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005346/1.005, allocations: 0.8388 MB / 0.6184 GB, free: 81.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/1.005, allocations: 133.4 kB / 0.6185 GB, free: 81.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002362/1.005, allocations: 0.5792 MB / 0.6191 GB, free: 81.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002825/1.008, allocations: 2.34 MB / 0.6214 GB, free: 78.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00404/1.012, allocations: 6.136 MB / 0.6274 GB, free: 70.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004092/1.016, allocations: 3.716 MB / 0.631 GB, free: 67.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-05/1.016, allocations: 40 kB / 0.6311 GB, free: 67.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01344/1.03, allocations: 9.491 MB / 0.6403 GB, free: 57.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.631e-05/1.03, allocations: 60.75 kB / 0.6404 GB, free: 57.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/1.03, allocations: 132.9 kB / 0.6405 GB, free: 57.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003377/1.034, allocations: 1.387 MB / 0.6419 GB, free: 56.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003837/1.037, allocations: 1.47 MB / 0.6433 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009274/1.047, allocations: 7.974 MB / 0.6511 GB, free: 46.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004587/1.051, allocations: 348.5 kB / 0.6514 GB, free: 46.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000557/1.052, allocations: 392 kB / 0.6518 GB, free: 45.76 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 (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.003171/1.055, allocations: 2.487 MB / 0.6542 GB, free: 43.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005371/1.056, allocations: 403.3 kB / 0.6546 GB, free: 42.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006903/1.062, allocations: 4.106 MB / 0.6586 GB, free: 38.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/1.063, allocations: 29.12 kB / 0.6586 GB, free: 38.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.063, allocations: 8 kB / 0.6587 GB, free: 38.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/1.063, allocations: 11.95 kB / 0.6587 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/1.078, allocations: 10.35 MB / 0.6688 GB, free: 28.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/1.078, allocations: 4 kB / 0.6688 GB, free: 28.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/1.079, allocations: 351.4 kB / 0.6691 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003189/1.082, allocations: 1.156 MB / 0.6702 GB, free: 26.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/1.082, allocations: 40.86 kB / 0.6703 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007892/1.09, allocations: 6.653 MB / 0.6768 GB, free: 19.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/1.09, allocations: 11.94 kB / 0.6768 GB, free: 19.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009565/1.1, allocations: 6.893 MB / 0.6835 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/1.101, allocations: 463.8 kB / 0.684 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004735/1.102, allocations: 41 kB / 0.684 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/1.103, allocations: 115.8 kB / 0.6841 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/1.103, allocations: 149.1 kB / 0.6843 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.104, allocations: 61 kB / 0.6843 GB, free: 12.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003536/1.107, allocations: 2.779 MB / 0.687 GB, free: 9.289 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.107, allocations: 0 / 0.687 GB, free: 9.289 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005161/1.112, allocations: 1.217 MB / 0.6882 GB, free: 8.082 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 (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.000509/1.113, allocations: 208.7 kB / 0.6884 GB, free: 7.879 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007952/1.121, allocations: 5.711 MB / 0.694 GB, free: 2.184 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/1.121, allocations: 4.062 kB / 0.694 GB, free: 2.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002261/1.123, allocations: 1.864 MB / 0.6958 GB, free: 312 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.199/1.322, allocations: 0.5077 MB / 0.6963 GB, free: 144.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/1.346, allocations: 13.07 MB / 0.7091 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008417/1.355, allocations: 3.873 MB / 0.7129 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008672/1.363, allocations: 1.925 MB / 0.7147 GB, free: 138.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.365, allocations: 269.2 kB / 0.715 GB, free: 138.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.093e-06/1.365, allocations: 0 / 0.715 GB, free: 138.1 MB / 446.1 MB Notification: Performance of Templates: time 0.08765/1.452, allocations: 42.61 MB / 0.7566 GB, free: 103.5 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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