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.001722/0.001722, allocations: 110.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002208/0.002208, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.935/1.935, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 55.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3299, allocations: 50.56 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01568/0.3456, allocations: 14.97 MB / 424.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.3583, allocations: 4.823 MB / 429.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003966/0.3623, allocations: 91.75 kB / 429.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007859/0.3702, allocations: 3.161 MB / 433 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008493/0.3789, allocations: 2.502 MB / 435.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.3815, allocations: 0.9944 MB / 436.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01115/0.3927, allocations: 7.041 MB / 443.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005953/0.3987, allocations: 4.334 MB / 447.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.4029, allocations: 2.207 MB / 450.1 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005011/0.4079, allocations: 3.228 MB / 453.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.4093, allocations: 484 kB / 453.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003009/0.4123, allocations: 1.494 MB / 455.2 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002892/0.4152, allocations: 2.86 MB / 458.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004569/0.4198, allocations: 3.215 MB / 461.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01325/0.4331, allocations: 10.36 MB / 471.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.4331, allocations: 0 / 471.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4332, allocations: 0 / 471.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003778/0.4335, allocations: 0 / 471.7 MB, free: 3.594 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.02064/0.4542, allocations: 7.245 MB / 478.9 MB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4543, allocations: 8.031 kB / 478.9 MB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01911/0.4734, allocations: 3.943 MB / 482.9 MB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01303/0.4865, allocations: 4.106 MB / 487 MB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003844/0.4869, allocations: 316.4 kB / 487.3 MB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002578/0.4895, allocations: 439.5 kB / 487.7 MB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03249/0.522, allocations: 15.72 MB / 0.4916 GB, free: 2.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002021/0.5223, allocations: 55.53 kB / 0.4917 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000906/0.5232, allocations: 199.8 kB / 0.4919 GB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005227/0.5284, allocations: 3.223 MB / 0.495 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02864/0.5571, allocations: 14.13 MB / 0.5088 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3904/0.9475, allocations: 57.49 MB / 0.565 GB, free: 84.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01259/0.9601, allocations: 6.561 MB / 0.5714 GB, free: 81.92 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004224/0.9644, allocations: 3.684 MB / 0.575 GB, free: 80.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01978/0.9842, allocations: 14.64 MB / 0.5893 GB, free: 72.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.9843, allocations: 63.03 kB / 0.5893 GB, free: 72.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 7.044e-06/0.9843, allocations: 0 / 0.5893 GB, free: 72.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1348/1.119, allocations: 42.34 MB / 0.6307 GB, free: 30.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/1.119, allocations: 210 kB / 0.6309 GB, free: 30.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006244/1.125, allocations: 5.47 MB / 0.6362 GB, free: 24.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007872/1.126, allocations: 73.7 kB / 0.6363 GB, free: 24.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.128, allocations: 4.35 MB / 0.6405 GB, free: 20.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001544/1.13, allocations: 1.258 MB / 0.6418 GB, free: 18.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002307/1.132, allocations: 1.85 MB / 0.6436 GB, free: 17.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/1.132, allocations: 313 kB / 0.6439 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.137, allocations: 4.804 MB / 0.6486 GB, free: 11.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007085/1.144, allocations: 9.802 MB / 0.6581 GB, free: 15.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01982/1.164, allocations: 15.57 MB / 0.6733 GB, free: 13.78 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001892/1.164, allocations: 56 kB / 0.6734 GB, free: 13.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05731/1.222, allocations: 19.56 MB / 0.6925 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.222, allocations: 80.97 kB / 0.6926 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002397/1.222, allocations: 172 kB / 0.6927 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02405/1.246, allocations: 5.941 MB / 0.6985 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007798/1.254, allocations: 2.115 MB / 0.7006 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03452/1.289, allocations: 26.15 MB / 0.7261 GB, free: 7.379 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007927/1.297, allocations: 0.553 MB / 0.7267 GB, free: 6.828 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001644/1.298, allocations: 0.5117 MB / 0.7272 GB, free: 6.316 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.005632/1.304, allocations: 3.106 MB / 0.7302 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.305, allocations: 497.5 kB / 0.7307 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03234/1.337, allocations: 12.93 MB / 0.7433 GB, free: 5.707 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/1.338, allocations: 55.98 kB / 0.7434 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.45e-05/1.338, allocations: 8 kB / 0.7434 GB, free: 5.645 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.148e-05/1.338, allocations: 19.88 kB / 0.7434 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3193/1.657, allocations: 24.5 MB / 0.7673 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.357e-05/1.657, allocations: 7.875 kB / 0.7673 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003064/1.66, allocations: 0.582 MB / 0.7679 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01893/1.679, allocations: 4.964 MB / 0.7727 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007936/1.68, allocations: 64.61 kB / 0.7728 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02235/1.702, allocations: 21.35 MB / 0.7936 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/1.702, allocations: 13.02 kB / 0.7937 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03169/1.734, allocations: 17.45 MB / 0.8107 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/1.736, allocations: 0.538 MB / 0.8112 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001242/1.737, allocations: 52 kB / 0.8113 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00307/1.74, allocations: 268.7 kB / 0.8115 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007284/1.741, allocations: 197.5 kB / 0.8117 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/1.741, allocations: 80 kB / 0.8118 GB, free: 155.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004176/1.745, allocations: 3.402 MB / 0.8151 GB, free: 152 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.91e-07/1.745, allocations: 0 / 0.8151 GB, free: 152 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00741/1.753, allocations: 1.725 MB / 0.8168 GB, free: 150.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.0006914/1.753, allocations: 214.8 kB / 0.817 GB, free: 150.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01359/1.767, allocations: 10.98 MB / 0.8277 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/1.767, allocations: 0 / 0.8277 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004924/1.772, allocations: 4.095 MB / 0.8317 GB, free: 135.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003867/1.776, allocations: 0.6216 MB / 0.8323 GB, free: 134.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02582/1.802, allocations: 16.61 MB / 0.8486 GB, free: 117.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005787/1.808, allocations: 4.597 MB / 0.853 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002502/1.81, allocations: 420.9 kB / 0.8534 GB, free: 112.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.81, allocations: 0 / 0.8534 GB, free: 112.8 MB / 0.545 GB Notification: Performance of Templates: time 0.4516/2.262, allocations: 151.2 MB / 1.001 GB, free: 152.9 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches