Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.0009622, allocations: 92.78 kB / 17.31 MB, free: 6.535 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.001045/0.001045, allocations: 174.8 kB / 18.21 MB, free: 5.684 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.114/1.114, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002097/0.0002097, allocations: 11.94 kB / 302.1 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06837/0.06859, allocations: 50.42 MB / 352.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1638/0.2324, allocations: 52.03 MB / 404.5 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01907/0.2515, allocations: 11.14 MB / 415.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006334/0.2579, allocations: 232.9 kB / 415.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.2591, allocations: 0.613 MB / 416.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003962/0.263, allocations: 2.41 MB / 418.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.2644, allocations: 0.913 MB / 419.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007852/0.2723, allocations: 9.897 MB / 429.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005739/0.278, allocations: 5.713 MB / 435.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2797, allocations: 1.747 MB / 437.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002823/0.2825, allocations: 3.134 MB / 440.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003755/0.2829, allocations: 236 kB / 440.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001746/0.2846, allocations: 1.345 MB / 441.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.2864, allocations: 2.622 MB / 444.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001972/0.2884, allocations: 2.967 MB / 447.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005371/0.2938, allocations: 7.957 MB / 455.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2938, allocations: 0 / 455.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2938, allocations: 3.938 kB / 455.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.064e-05/0.2939, allocations: 0 / 455.4 MB, free: 13.07 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.008942/0.3028, allocations: 6.047 MB / 461.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.3028, allocations: 8.031 kB / 461.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/0.3169, allocations: 4.04 MB / 465.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006013/0.3229, allocations: 4.106 MB / 469.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.3231, allocations: 320.5 kB / 470 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000719/0.3238, allocations: 427.6 kB / 470.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01816/0.342, allocations: 15.74 MB / 486.1 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.3421, allocations: 59.38 kB / 486.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/0.3426, allocations: 215.8 kB / 486.4 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004192/0.3468, allocations: 3.208 MB / 489.6 MB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.3664, allocations: 14.15 MB / 0.4919 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1884/0.5548, allocations: 57.78 MB / 0.5484 GB, free: 112 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.5661, allocations: 6.563 MB / 0.5548 GB, free: 110.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/0.5696, allocations: 3.687 MB / 0.5584 GB, free: 110.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.5838, allocations: 14.64 MB / 0.5727 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.5838, allocations: 63.31 kB / 0.5727 GB, free: 102.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 3.737e-06/0.5838, allocations: 3.719 kB / 0.5727 GB, free: 102.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.118/0.7018, allocations: 42.62 MB / 0.6144 GB, free: 69.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.7019, allocations: 210 kB / 0.6146 GB, free: 68.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.7066, allocations: 5.478 MB / 0.6199 GB, free: 63.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002605/0.7069, allocations: 69.7 kB / 0.62 GB, free: 63.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001443/0.7083, allocations: 4.351 MB / 0.6242 GB, free: 59.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006698/0.709, allocations: 1.257 MB / 0.6255 GB, free: 57.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000743/0.7098, allocations: 0.78 MB / 0.6262 GB, free: 57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.899e-05/0.7098, allocations: 305.1 kB / 0.6265 GB, free: 56.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004658/0.7145, allocations: 4.812 MB / 0.6312 GB, free: 51.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005929/0.7204, allocations: 9.801 MB / 0.6408 GB, free: 39.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/0.7319, allocations: 15.57 MB / 0.656 GB, free: 21.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.751e-05/0.7319, allocations: 52 kB / 0.656 GB, free: 21.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03258/0.7645, allocations: 19.57 MB / 0.6751 GB, free: 2.121 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.546e-05/0.7646, allocations: 83.94 kB / 0.6752 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.7647, allocations: 176.5 kB / 0.6754 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02071/0.7854, allocations: 5.967 MB / 0.6812 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005665/0.7911, allocations: 2.113 MB / 0.6833 GB, free: 9.773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02907/0.8202, allocations: 24.8 MB / 0.7075 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005323/0.8255, allocations: 0.5618 MB / 0.7081 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1379/0.9634, allocations: 0.5096 MB / 0.7086 GB, free: 160.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005345/0.9688, allocations: 3.096 MB / 0.7116 GB, free: 160.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009502/0.9697, allocations: 497.5 kB / 0.7121 GB, free: 160.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02919/0.9989, allocations: 12.96 MB / 0.7247 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-05/0.999, allocations: 56.39 kB / 0.7248 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.388e-05/0.999, allocations: 9.062 kB / 0.7248 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/0.999, allocations: 14.72 kB / 0.7248 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03792/1.037, allocations: 24.63 MB / 0.7488 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/1.037, allocations: 3.906 kB / 0.7488 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002225/1.039, allocations: 0.5848 MB / 0.7494 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01698/1.056, allocations: 5.002 MB / 0.7543 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/1.056, allocations: 56 kB / 0.7544 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01849/1.075, allocations: 19.99 MB / 0.7739 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.075, allocations: 10.97 kB / 0.7739 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02735/1.102, allocations: 17.48 MB / 0.791 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000727/1.103, allocations: 0.5403 MB / 0.7915 GB, free: 106 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005456/1.104, allocations: 57.55 kB / 0.7915 GB, free: 105.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002422/1.106, allocations: 264.9 kB / 0.7918 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005147/1.107, allocations: 194.1 kB / 0.792 GB, free: 105.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/1.107, allocations: 89.47 kB / 0.7921 GB, free: 105.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003268/1.11, allocations: 3.398 MB / 0.7954 GB, free: 102 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/1.11, allocations: 0 / 0.7954 GB, free: 102 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00491/1.115, allocations: 1.764 MB / 0.7971 GB, free: 100.3 MB / 478.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004328/1.115, allocations: 212.8 kB / 0.7973 GB, free: 100.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01004/1.125, allocations: 10.92 MB / 0.808 GB, free: 89.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.125, allocations: 0 / 0.808 GB, free: 89.19 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003823/1.129, allocations: 4.118 MB / 0.812 GB, free: 85.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005368/1.135, allocations: 0.577 MB / 0.8126 GB, free: 84.51 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/1.151, allocations: 19.84 MB / 0.8319 GB, free: 64.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003317/1.154, allocations: 4.599 MB / 0.8364 GB, free: 60.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/1.156, allocations: 419.4 kB / 0.8368 GB, free: 59.61 MB / 478.1 MB Notification: Performance of SimCode: time 4.31e-07/1.156, allocations: 0 / 0.8368 GB, free: 59.61 MB / 478.1 MB Notification: Performance of Templates: time 0.2554/1.411, allocations: 148.4 MB / 0.9817 GB, free: 68.66 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches