Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001571/0.001571, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63.03 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 50.54 MB / 357.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2406/0.3507, allocations: 53.08 MB / 410.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02853/0.3793, allocations: 10.98 MB / 421.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01312/0.3924, allocations: 231.4 kB / 422 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006662/0.3992, allocations: 3.021 MB / 425 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007242/0.4064, allocations: 2.348 MB / 427.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.4092, allocations: 0.9401 MB / 428.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01168/0.4209, allocations: 7.438 MB / 435.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006768/0.4277, allocations: 4.551 MB / 440.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004296/0.432, allocations: 2.258 MB / 442.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005489/0.4375, allocations: 3.575 MB / 446.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001516/0.439, allocations: 484 kB / 446.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003371/0.4424, allocations: 1.486 MB / 448.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003663/0.4461, allocations: 2.875 MB / 450.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004968/0.4511, allocations: 3.25 MB / 454.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.4615, allocations: 8.155 MB / 462.3 MB, free: 2.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4615, allocations: 3.938 kB / 462.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4615, allocations: 0 / 462.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003189/0.4619, allocations: 4 kB / 462.3 MB, free: 2.762 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.0176/0.4795, allocations: 7.252 MB / 469.6 MB, free: 11.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.4795, allocations: 8.031 kB / 469.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01632/0.4958, allocations: 3.935 MB / 473.5 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009552/0.5054, allocations: 4.044 MB / 477.6 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.5058, allocations: 328.5 kB / 477.9 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/0.5077, allocations: 435.5 kB / 478.3 MB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03038/0.5381, allocations: 15.71 MB / 494 MB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001906/0.5384, allocations: 59.45 kB / 494.1 MB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009337/0.5393, allocations: 203.8 kB / 494.3 MB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005499/0.5448, allocations: 3.216 MB / 497.5 MB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02926/0.5741, allocations: 14.12 MB / 0.4996 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2823/0.8564, allocations: 57.77 MB / 0.5561 GB, free: 106.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01433/0.8708, allocations: 6.561 MB / 0.5625 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005358/0.8762, allocations: 3.683 MB / 0.5661 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01994/0.8962, allocations: 14.65 MB / 0.5804 GB, free: 95.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.8963, allocations: 70.52 kB / 0.5804 GB, free: 95.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.36e-06/0.8963, allocations: 3.938 kB / 0.5804 GB, free: 95.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1339/1.03, allocations: 42.32 MB / 0.6218 GB, free: 61.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/1.03, allocations: 218 kB / 0.622 GB, free: 60.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006716/1.037, allocations: 5.466 MB / 0.6273 GB, free: 55.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008989/1.038, allocations: 73.7 kB / 0.6274 GB, free: 55.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/1.04, allocations: 4.351 MB / 0.6316 GB, free: 50.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.042, allocations: 1.258 MB / 0.6329 GB, free: 49.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002697/1.044, allocations: 1.851 MB / 0.6347 GB, free: 47.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.336e-05/1.044, allocations: 301.1 kB / 0.635 GB, free: 47.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005877/1.05, allocations: 4.815 MB / 0.6397 GB, free: 42.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008697/1.059, allocations: 9.805 MB / 0.6492 GB, free: 30.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/1.074, allocations: 15.57 MB / 0.6644 GB, free: 12.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/1.074, allocations: 56 kB / 0.6645 GB, free: 12.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04364/1.118, allocations: 19.56 MB / 0.6836 GB, free: 8.875 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/1.118, allocations: 80 kB / 0.6837 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/1.118, allocations: 172 kB / 0.6838 GB, free: 8.629 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0229/1.141, allocations: 5.949 MB / 0.6896 GB, free: 2.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007851/1.149, allocations: 2.113 MB / 0.6917 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2348/1.384, allocations: 26.14 MB / 0.7172 GB, free: 151.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008103/1.392, allocations: 0.5601 MB / 0.7178 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002627/1.394, allocations: 0.5103 MB / 0.7183 GB, free: 151.3 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.00891/1.403, allocations: 3.091 MB / 0.7213 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001486/1.405, allocations: 497.1 kB / 0.7218 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0301/1.435, allocations: 12.94 MB / 0.7344 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/1.435, allocations: 59.53 kB / 0.7345 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.536e-05/1.435, allocations: 10.55 kB / 0.7345 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-05/1.435, allocations: 14.86 kB / 0.7345 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04587/1.481, allocations: 24.58 MB / 0.7585 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.427e-05/1.481, allocations: 7.938 kB / 0.7585 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002909/1.484, allocations: 0.5802 MB / 0.7591 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01774/1.502, allocations: 4.963 MB / 0.7639 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008377/1.503, allocations: 59.14 kB / 0.764 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02221/1.525, allocations: 21.36 MB / 0.7848 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/1.525, allocations: 11.75 kB / 0.7848 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03121/1.556, allocations: 17.45 MB / 0.8019 GB, free: 89.24 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.558, allocations: 0.5341 MB / 0.8024 GB, free: 88.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/1.559, allocations: 55.98 kB / 0.8025 GB, free: 88.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003482/1.563, allocations: 259.6 kB / 0.8027 GB, free: 88.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001023/1.564, allocations: 197.4 kB / 0.8029 GB, free: 88.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003485/1.564, allocations: 83.98 kB / 0.803 GB, free: 88.15 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005043/1.569, allocations: 3.394 MB / 0.8063 GB, free: 84.77 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.569, allocations: 0 / 0.8063 GB, free: 84.77 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009441/1.579, allocations: 1.736 MB / 0.808 GB, free: 83.05 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.001148/1.58, allocations: 213.2 kB / 0.8082 GB, free: 82.85 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02239/1.602, allocations: 15.74 MB / 0.8236 GB, free: 67.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.602, allocations: 0 / 0.8236 GB, free: 67.19 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005362/1.608, allocations: 4.107 MB / 0.8276 GB, free: 63.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/1.612, allocations: 0.6195 MB / 0.8282 GB, free: 62.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02548/1.637, allocations: 19.76 MB / 0.8475 GB, free: 42.67 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004762/1.642, allocations: 4.592 MB / 0.852 GB, free: 38.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/1.644, allocations: 415.4 kB / 0.8524 GB, free: 37.64 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/1.644, allocations: 0 / 0.8524 GB, free: 37.64 MB / 478.1 MB Notification: Performance of Templates: time 0.3363/1.981, allocations: 149.4 MB / 0.9982 GB, free: 46.99 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches