Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001219/0.001219, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001184/0.001184, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 47.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1081, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2727/0.3808, allocations: 15.07 MB / 390.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.3931, allocations: 4.821 MB / 395 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004185/0.3974, allocations: 93.03 kB / 395.1 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00691/0.4044, allocations: 3.166 MB / 398.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.4146, allocations: 2.556 MB / 400.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00344/0.4181, allocations: 0.9937 MB / 401.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.4314, allocations: 6.644 MB / 408.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007009/0.4384, allocations: 4.354 MB / 412.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006303/0.4448, allocations: 2.238 MB / 415.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006927/0.4518, allocations: 3.246 MB / 418.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002031/0.4538, allocations: 484 kB / 418.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004546/0.4584, allocations: 1.486 MB / 420.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003874/0.4623, allocations: 2.868 MB / 423.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004936/0.4672, allocations: 3.258 MB / 426.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01498/0.4823, allocations: 10.48 MB / 436.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.819e-06/0.4823, allocations: 0 / 436.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4823, allocations: 0 / 436.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004638/0.4828, allocations: 0 / 436.9 MB, free: 1.621 MB / 350.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.0229/0.5057, allocations: 7.48 MB / 444.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.5058, allocations: 8.031 kB / 444.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01705/0.5228, allocations: 3.982 MB / 448.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01511/0.538, allocations: 4.288 MB / 452.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004334/0.5385, allocations: 320.6 kB / 453 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002839/0.5414, allocations: 439.6 kB / 453.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03768/0.5791, allocations: 15.71 MB / 469.1 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003506/0.5795, allocations: 59.47 kB / 469.2 MB, free: 260 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002388/0.5819, allocations: 211.8 kB / 469.4 MB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006247/0.5882, allocations: 3.216 MB / 472.6 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/0.6205, allocations: 14.11 MB / 486.7 MB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0918/0.7124, allocations: 57.6 MB / 0.5315 GB, free: 3.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/0.7276, allocations: 6.571 MB / 0.5379 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005098/0.7328, allocations: 3.688 MB / 0.5416 GB, free: 9.004 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3295/1.062, allocations: 14.65 MB / 0.5559 GB, free: 144.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.465e-05/1.062, allocations: 65.73 kB / 0.5559 GB, free: 144.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 7.193e-06/1.062, allocations: 1.078 kB / 0.5559 GB, free: 144.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1778/1.24, allocations: 42.72 MB / 0.5976 GB, free: 126.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/1.24, allocations: 213.9 kB / 0.5978 GB, free: 126.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01286/1.253, allocations: 5.52 MB / 0.6032 GB, free: 120.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001046/1.254, allocations: 73.7 kB / 0.6033 GB, free: 120.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003351/1.258, allocations: 4.528 MB / 0.6077 GB, free: 116.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002202/1.26, allocations: 1.314 MB / 0.609 GB, free: 115.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003/1.263, allocations: 1.872 MB / 0.6108 GB, free: 113.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/1.263, allocations: 305.1 kB / 0.6111 GB, free: 113 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005693/1.269, allocations: 4.808 MB / 0.6158 GB, free: 108.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008241/1.277, allocations: 9.8 MB / 0.6254 GB, free: 95.98 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01574/1.293, allocations: 15.57 MB / 0.6406 GB, free: 77.94 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/1.293, allocations: 52 kB / 0.6407 GB, free: 77.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04401/1.337, allocations: 19.59 MB / 0.6598 GB, free: 58.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002767/1.337, allocations: 80 kB / 0.6599 GB, free: 58.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004287/1.338, allocations: 175.6 kB / 0.66 GB, free: 58.01 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02206/1.36, allocations: 5.937 MB / 0.6658 GB, free: 52.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007532/1.367, allocations: 2.113 MB / 0.6679 GB, free: 49.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02933/1.397, allocations: 26.16 MB / 0.6934 GB, free: 23.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009043/1.406, allocations: 0.554 MB / 0.694 GB, free: 22.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002241/1.408, allocations: 0.5117 MB / 0.6945 GB, free: 22.43 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.007095/1.415, allocations: 3.108 MB / 0.6975 GB, free: 19.31 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/1.417, allocations: 0.5122 MB / 0.698 GB, free: 18.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03314/1.45, allocations: 12.93 MB / 0.7106 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/1.451, allocations: 59.73 kB / 0.7107 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.016e-05/1.451, allocations: 12 kB / 0.7107 GB, free: 5.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-05/1.451, allocations: 19.95 kB / 0.7107 GB, free: 5.711 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3497/1.8, allocations: 24.51 MB / 0.7347 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.634e-05/1.801, allocations: 5.375 kB / 0.7347 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003483/1.804, allocations: 0.577 MB / 0.7352 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0209/1.825, allocations: 4.971 MB / 0.7401 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/1.826, allocations: 58.19 kB / 0.7401 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02833/1.854, allocations: 21.34 MB / 0.761 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/1.854, allocations: 14.47 kB / 0.761 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03464/1.889, allocations: 17.49 MB / 0.7781 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003773/1.893, allocations: 1.268 MB / 0.7793 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001515/1.894, allocations: 56.11 kB / 0.7794 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003746/1.898, allocations: 262.9 kB / 0.7796 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007957/1.899, allocations: 191.3 kB / 0.7798 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/1.899, allocations: 93.52 kB / 0.7799 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005274/1.905, allocations: 3.424 MB / 0.7832 GB, free: 124.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.905, allocations: 0 / 0.7832 GB, free: 124.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009601/1.914, allocations: 1.76 MB / 0.785 GB, free: 124.1 MB / 494.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.0008712/1.915, allocations: 208.4 kB / 0.7852 GB, free: 123.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01472/1.93, allocations: 10.97 MB / 0.7959 GB, free: 113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/1.93, allocations: 2.812 kB / 0.7959 GB, free: 113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00554/1.935, allocations: 4.113 MB / 0.7999 GB, free: 108.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005343/1.941, allocations: 0.6246 MB / 0.8005 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0261/1.967, allocations: 16.26 MB / 0.8164 GB, free: 92.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00632/1.973, allocations: 4.628 MB / 0.8209 GB, free: 87.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006482/1.98, allocations: 2.963 MB / 0.8238 GB, free: 84.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001632/1.981, allocations: 359.4 kB / 0.8241 GB, free: 84.17 MB / 494.1 MB Notification: Performance of SimCode: time 1.433e-06/1.981, allocations: 0 / 0.8241 GB, free: 84.17 MB / 494.1 MB Notification: Performance of Templates: time 0.1157/2.097, allocations: 76.94 MB / 0.8993 GB, free: 7.062 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches