Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 118.5 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2712, allocations: 50.55 MB / 410.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01674/0.2879, allocations: 15.01 MB / 425.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.2995, allocations: 4.838 MB / 430.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003178/0.3026, allocations: 91.75 kB / 430.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006489/0.3091, allocations: 3.204 MB / 433.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00685/0.316, allocations: 2.584 MB / 435.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.3184, allocations: 0.9866 MB / 436.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.3291, allocations: 7.051 MB / 444 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005476/0.3346, allocations: 3.697 MB / 447.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003922/0.3385, allocations: 2.223 MB / 449.9 MB, free: 9.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004866/0.3434, allocations: 3.228 MB / 453.1 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001287/0.3447, allocations: 487.9 kB / 453.6 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003102/0.3478, allocations: 1.479 MB / 455.1 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.3508, allocations: 2.914 MB / 458 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003922/0.3547, allocations: 3.219 MB / 461.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.3671, allocations: 10.4 MB / 471.6 MB, free: 3.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3671, allocations: 0 / 471.6 MB, free: 3.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3672, allocations: 0 / 471.6 MB, free: 3.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002754/0.3674, allocations: 0 / 471.6 MB, free: 3.758 MB / 382.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.01619/0.3836, allocations: 7.432 MB / 479 MB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3837, allocations: 8.031 kB / 479 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01746/0.4011, allocations: 3.982 MB / 483 MB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.4116, allocations: 4.127 MB / 487.2 MB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/0.412, allocations: 320.4 kB / 487.5 MB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001981/0.414, allocations: 443.5 kB / 487.9 MB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02869/0.4427, allocations: 15.71 MB / 0.4918 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.4428, allocations: 59.52 kB / 0.4919 GB, free: 2.598 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006808/0.4435, allocations: 203.8 kB / 0.4921 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005611/0.4491, allocations: 3.22 MB / 0.4952 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02979/0.4789, allocations: 14.12 MB / 0.509 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3269/0.8058, allocations: 57.59 MB / 0.5652 GB, free: 85.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01225/0.818, allocations: 6.272 MB / 0.5714 GB, free: 83.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/0.8217, allocations: 3.326 MB / 0.5746 GB, free: 81.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01861/0.8404, allocations: 14.66 MB / 0.5889 GB, free: 73.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.8404, allocations: 61.41 kB / 0.589 GB, free: 73.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.422e-06/0.8404, allocations: 0 / 0.589 GB, free: 73.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1379/0.9783, allocations: 42.64 MB / 0.6306 GB, free: 32.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/0.9784, allocations: 210 kB / 0.6308 GB, free: 31.76 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006117/0.9845, allocations: 5.483 MB / 0.6362 GB, free: 26.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008129/0.9853, allocations: 77.06 kB / 0.6362 GB, free: 26.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001893/0.9872, allocations: 4.526 MB / 0.6407 GB, free: 21.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/0.9885, allocations: 1.31 MB / 0.6419 GB, free: 20.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002241/0.9907, allocations: 1.867 MB / 0.6438 GB, free: 18.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.9908, allocations: 313.9 kB / 0.6441 GB, free: 18.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00542/0.9962, allocations: 4.804 MB / 0.6488 GB, free: 13.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007062/1.003, allocations: 9.805 MB / 0.6583 GB, free: 1.234 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02118/1.024, allocations: 15.56 MB / 0.6735 GB, free: 15.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/1.025, allocations: 56 kB / 0.6736 GB, free: 15.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04957/1.074, allocations: 19.56 MB / 0.6927 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/1.074, allocations: 80.97 kB / 0.6928 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/1.075, allocations: 172.5 kB / 0.6929 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02443/1.099, allocations: 5.942 MB / 0.6987 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007784/1.107, allocations: 2.109 MB / 0.7008 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03823/1.145, allocations: 26.14 MB / 0.7263 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007577/1.153, allocations: 0.5579 MB / 0.7269 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/1.154, allocations: 0.5191 MB / 0.7274 GB, free: 7.738 MB / 0.5294 GB 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.005867/1.16, allocations: 3.106 MB / 0.7304 GB, free: 4.621 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.161, allocations: 0.5122 MB / 0.7309 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03484/1.196, allocations: 12.9 MB / 0.7435 GB, free: 7.137 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.606e-05/1.196, allocations: 51.98 kB / 0.7436 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.199e-05/1.196, allocations: 12 kB / 0.7436 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.768e-05/1.196, allocations: 15.89 kB / 0.7436 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2809/1.477, allocations: 24.47 MB / 0.7675 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-05/1.477, allocations: 4.188 kB / 0.7675 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003017/1.48, allocations: 0.5789 MB / 0.7681 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01875/1.499, allocations: 4.972 MB / 0.7729 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007063/1.5, allocations: 55.12 kB / 0.773 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02266/1.522, allocations: 21.36 MB / 0.7938 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.522, allocations: 7.938 kB / 0.7938 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03164/1.554, allocations: 17.46 MB / 0.8109 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/1.556, allocations: 0.5516 MB / 0.8114 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/1.557, allocations: 52 kB / 0.8115 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002831/1.559, allocations: 259.6 kB / 0.8117 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006945/1.56, allocations: 197.5 kB / 0.8119 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/1.56, allocations: 91.69 kB / 0.812 GB, free: 157.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004132/1.564, allocations: 3.394 MB / 0.8153 GB, free: 154.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.564, allocations: 3.828 kB / 0.8153 GB, free: 154.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007528/1.572, allocations: 1.729 MB / 0.817 GB, free: 152.8 MB / 0.545 GB 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.0006791/1.573, allocations: 218.9 kB / 0.8172 GB, free: 152.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01425/1.587, allocations: 10.49 MB / 0.8274 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.32e-05/1.587, allocations: 0 / 0.8274 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004901/1.592, allocations: 3.795 MB / 0.8312 GB, free: 138.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003632/1.595, allocations: 0.6075 MB / 0.8317 GB, free: 137.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02311/1.619, allocations: 16.23 MB / 0.8476 GB, free: 121.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00753/1.626, allocations: 4.617 MB / 0.8521 GB, free: 117 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007422/1.633, allocations: 2.966 MB / 0.855 GB, free: 114.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/1.635, allocations: 355.4 kB / 0.8553 GB, free: 113.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.623e-06/1.635, allocations: 0 / 0.8553 GB, free: 113.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1101/1.745, allocations: 77.16 MB / 0.9307 GB, free: 36.66 MB / 0.545 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches