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.001429/0.001429, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001094, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2716, allocations: 50.55 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01683/0.2884, allocations: 14.97 MB / 424.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.3008, allocations: 4.823 MB / 429 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.3043, allocations: 91.75 kB / 429.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00669/0.3111, allocations: 3.157 MB / 432.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007207/0.3183, allocations: 2.514 MB / 434.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002626/0.321, allocations: 0.9866 MB / 435.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.3315, allocations: 7.04 MB / 442.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006503/0.3381, allocations: 4.338 MB / 447.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00431/0.3424, allocations: 2.211 MB / 449.4 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00505/0.3475, allocations: 3.232 MB / 452.6 MB, free: 6.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001905/0.3494, allocations: 487.9 kB / 453.1 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003922/0.3533, allocations: 1.482 MB / 454.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004039/0.3574, allocations: 2.86 MB / 457.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006773/0.3642, allocations: 3.211 MB / 460.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01469/0.3789, allocations: 10.36 MB / 471 MB, free: 3.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.379, allocations: 0 / 471 MB, free: 3.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.379, allocations: 4 kB / 471 MB, free: 3.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000418/0.3794, allocations: 0 / 471 MB, free: 3.559 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.01989/0.3993, allocations: 7.241 MB / 478.2 MB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.3994, allocations: 12.02 kB / 478.3 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01686/0.4163, allocations: 3.939 MB / 482.2 MB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.4272, allocations: 4.11 MB / 486.3 MB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003534/0.4276, allocations: 320.4 kB / 486.6 MB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002136/0.4297, allocations: 431.5 kB / 487 MB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03311/0.4628, allocations: 15.71 MB / 0.491 GB, free: 2.715 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002964/0.4632, allocations: 55.53 kB / 0.491 GB, free: 2.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00209/0.4653, allocations: 211.7 kB / 0.4912 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005522/0.4708, allocations: 3.216 MB / 0.4944 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02888/0.4997, allocations: 14.13 MB / 0.5082 GB, free: 1.074 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3337/0.8335, allocations: 57.48 MB / 0.5643 GB, free: 85.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.8462, allocations: 6.566 MB / 0.5707 GB, free: 83.26 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/0.8516, allocations: 3.681 MB / 0.5743 GB, free: 81.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01887/0.8705, allocations: 14.64 MB / 0.5886 GB, free: 73.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.8706, allocations: 63.44 kB / 0.5887 GB, free: 73.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 5.911e-06/0.8706, allocations: 0 / 0.5887 GB, free: 73.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1386/1.009, allocations: 42.34 MB / 0.63 GB, free: 31.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/1.009, allocations: 210 kB / 0.6302 GB, free: 31.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006283/1.016, allocations: 5.47 MB / 0.6356 GB, free: 26.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000816/1.016, allocations: 73.64 kB / 0.6356 GB, free: 26.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00183/1.018, allocations: 4.349 MB / 0.6399 GB, free: 21.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.019, allocations: 1.261 MB / 0.6411 GB, free: 20.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002171/1.022, allocations: 1.854 MB / 0.6429 GB, free: 18.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.393e-05/1.022, allocations: 305.1 kB / 0.6432 GB, free: 18.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005262/1.027, allocations: 4.804 MB / 0.6479 GB, free: 13.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007161/1.034, allocations: 9.813 MB / 0.6575 GB, free: 1.324 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0187/1.053, allocations: 15.57 MB / 0.6727 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/1.053, allocations: 48 kB / 0.6727 GB, free: 15.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04825/1.101, allocations: 19.57 MB / 0.6918 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002609/1.102, allocations: 80 kB / 0.6919 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003448/1.102, allocations: 172 kB / 0.6921 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02437/1.126, allocations: 5.939 MB / 0.6979 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00776/1.134, allocations: 2.113 MB / 0.6999 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03605/1.17, allocations: 26.14 MB / 0.7255 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007843/1.178, allocations: 0.5618 MB / 0.726 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001877/1.18, allocations: 0.5181 MB / 0.7265 GB, free: 7.836 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.007845/1.188, allocations: 3.083 MB / 0.7295 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001636/1.189, allocations: 0.4898 MB / 0.73 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03594/1.225, allocations: 12.94 MB / 0.7427 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/1.226, allocations: 55.98 kB / 0.7427 GB, free: 7.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-05/1.226, allocations: 8 kB / 0.7427 GB, free: 7.172 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.094e-05/1.226, allocations: 19.88 kB / 0.7427 GB, free: 7.152 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3134/1.539, allocations: 24.5 MB / 0.7667 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.912e-05/1.539, allocations: 3.688 kB / 0.7667 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/1.542, allocations: 0.5763 MB / 0.7672 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01983/1.562, allocations: 4.964 MB / 0.7721 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006213/1.563, allocations: 65.84 kB / 0.7721 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02244/1.585, allocations: 21.36 MB / 0.793 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.585, allocations: 7.938 kB / 0.793 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03154/1.617, allocations: 17.46 MB / 0.81 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/1.618, allocations: 0.5313 MB / 0.8106 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009026/1.619, allocations: 52 kB / 0.8106 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002815/1.622, allocations: 259.6 kB / 0.8109 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006713/1.623, allocations: 200.9 kB / 0.8111 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.623, allocations: 87.94 kB / 0.8111 GB, free: 158.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003802/1.627, allocations: 3.394 MB / 0.8145 GB, free: 155 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.627, allocations: 0 / 0.8145 GB, free: 155 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00589/1.633, allocations: 1.738 MB / 0.8161 GB, free: 153.2 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.0005134/1.633, allocations: 215.8 kB / 0.8164 GB, free: 153 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01273/1.646, allocations: 10.96 MB / 0.8271 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.646, allocations: 0 / 0.8271 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004874/1.651, allocations: 4.097 MB / 0.8311 GB, free: 138.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0042/1.655, allocations: 0.6152 MB / 0.8317 GB, free: 137.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02064/1.676, allocations: 16.01 MB / 0.8473 GB, free: 121.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004249/1.68, allocations: 4.617 MB / 0.8518 GB, free: 116.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005804/1.686, allocations: 2.969 MB / 0.8547 GB, free: 113.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.687, allocations: 353.6 kB / 0.855 GB, free: 113.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.687, allocations: 0 / 0.855 GB, free: 113.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1071/1.794, allocations: 77.13 MB / 0.9304 GB, free: 36.57 MB / 0.545 GB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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