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.001154/0.001154, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 55.41 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 50.54 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.223/0.3258, allocations: 55.08 MB / 412.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02881/0.3547, allocations: 11.67 MB / 424.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01214/0.3668, allocations: 243.4 kB / 424.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007473/0.3744, allocations: 4.039 MB / 428.7 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00569/0.3801, allocations: 1.966 MB / 430.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.3827, allocations: 1.03 MB / 431.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008922/0.3916, allocations: 6.446 MB / 438.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007261/0.3989, allocations: 5.583 MB / 443.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004299/0.4033, allocations: 2.197 MB / 445.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004491/0.4078, allocations: 3.163 MB / 449 MB, free: 80 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001651/0.4095, allocations: 0.4883 MB / 449.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.413, allocations: 1.635 MB / 451.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003251/0.4163, allocations: 2.588 MB / 453.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004487/0.4208, allocations: 2.91 MB / 456.7 MB, free: 8.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008859/0.4297, allocations: 7.648 MB / 464.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4298, allocations: 0 / 464.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4298, allocations: 0 / 464.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002713/0.4301, allocations: 0 / 464.3 MB, free: 0.7695 MB / 366.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.01468/0.4447, allocations: 6.001 MB / 470.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.4448, allocations: 8.031 kB / 470.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.4563, allocations: 2.54 MB / 472.9 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008245/0.4646, allocations: 3.683 MB / 476.5 MB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.4649, allocations: 308.5 kB / 476.8 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/0.4665, allocations: 443.6 kB / 477.3 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02331/0.4898, allocations: 12.42 MB / 489.7 MB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001674/0.49, allocations: 55.47 kB / 489.7 MB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006968/0.4908, allocations: 191.9 kB / 489.9 MB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00307/0.4938, allocations: 2.027 MB / 492 MB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02134/0.5152, allocations: 10.58 MB / 0.4908 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.251/0.7662, allocations: 44.35 MB / 0.5341 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01288/0.7791, allocations: 4.85 MB / 0.5388 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002775/0.7819, allocations: 2.009 MB / 0.5408 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.792, allocations: 7.191 MB / 0.5478 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.7921, allocations: 54.69 kB / 0.5478 GB, free: 114.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.168e-06/0.7921, allocations: 0 / 0.5478 GB, free: 114.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06062/0.8527, allocations: 19.5 MB / 0.5669 GB, free: 107.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.8529, allocations: 208.5 kB / 0.5671 GB, free: 107.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005172/0.858, allocations: 4.464 MB / 0.5714 GB, free: 104.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004185/0.8585, allocations: 61.38 kB / 0.5715 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001577/0.8601, allocations: 3.503 MB / 0.5749 GB, free: 101.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007641/0.8608, allocations: 0.8419 MB / 0.5758 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.8622, allocations: 1.336 MB / 0.5771 GB, free: 99.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.8622, allocations: 301.1 kB / 0.5773 GB, free: 98.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.8649, allocations: 2.375 MB / 0.5797 GB, free: 96.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003969/0.8689, allocations: 6.17 MB / 0.5857 GB, free: 88.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007978/0.8769, allocations: 9.179 MB / 0.5947 GB, free: 77.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001003/0.8771, allocations: 40 kB / 0.5947 GB, free: 77.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01631/0.8934, allocations: 9.55 MB / 0.604 GB, free: 67.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.992e-05/0.8935, allocations: 64 kB / 0.6041 GB, free: 67.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/0.8936, allocations: 135.9 kB / 0.6042 GB, free: 67.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003948/0.8976, allocations: 1.367 MB / 0.6055 GB, free: 66.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004299/0.9019, allocations: 1.47 MB / 0.607 GB, free: 64.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.9124, allocations: 8.511 MB / 0.6153 GB, free: 56.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00504/0.9175, allocations: 355.3 kB / 0.6156 GB, free: 55.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/0.9187, allocations: 391.2 kB / 0.616 GB, free: 55.59 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.004487/0.9232, allocations: 2.493 MB / 0.6184 GB, free: 53.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/0.9243, allocations: 398.8 kB / 0.6188 GB, free: 52.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008159/0.9325, allocations: 4.126 MB / 0.6228 GB, free: 48.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.923e-05/0.9325, allocations: 28.69 kB / 0.6229 GB, free: 48.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-05/0.9326, allocations: 8 kB / 0.6229 GB, free: 48.51 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.722e-05/0.9326, allocations: 15.89 kB / 0.6229 GB, free: 48.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01988/0.9525, allocations: 10.38 MB / 0.633 GB, free: 38.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.827e-05/0.9526, allocations: 7.984 kB / 0.633 GB, free: 38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.9543, allocations: 348 kB / 0.6334 GB, free: 37.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003641/0.9579, allocations: 1.144 MB / 0.6345 GB, free: 36.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003622/0.9583, allocations: 44 kB / 0.6345 GB, free: 36.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008541/0.9669, allocations: 7.152 MB / 0.6415 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.9669, allocations: 12.75 kB / 0.6415 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.9773, allocations: 6.921 MB / 0.6483 GB, free: 22.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001611/0.979, allocations: 455.8 kB / 0.6487 GB, free: 21.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/0.9803, allocations: 36 kB / 0.6488 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00221/0.9825, allocations: 115.8 kB / 0.6489 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004115/0.983, allocations: 141.1 kB / 0.649 GB, free: 21.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.9832, allocations: 63.98 kB / 0.6491 GB, free: 21.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004636/0.9878, allocations: 2.798 MB / 0.6518 GB, free: 18.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9878, allocations: 0 / 0.6518 GB, free: 18.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006053/0.9939, allocations: 1.197 MB / 0.653 GB, free: 17.35 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.0007453/0.9947, allocations: 246.9 kB / 0.6532 GB, free: 17.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01051/1.005, allocations: 6.858 MB / 0.6599 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/1.005, allocations: 0 / 0.6599 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/1.008, allocations: 1.878 MB / 0.6617 GB, free: 8.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004123/1.012, allocations: 0.5463 MB / 0.6623 GB, free: 7.875 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02436/1.036, allocations: 14.06 MB / 0.676 GB, free: 9.723 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007682/1.044, allocations: 3.843 MB / 0.6797 GB, free: 5.844 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.046, allocations: 315.4 kB / 0.68 GB, free: 5.535 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/1.046, allocations: 0 / 0.68 GB, free: 5.535 MB / 462.1 MB Notification: Performance of Templates: time 0.3084/1.354, allocations: 89.98 MB / 0.7679 GB, free: 142.9 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