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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002011/0.002011, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.512/1.512, allocations: 230.4 MB / 258.1 MB, free: 8.16 MB / 206.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "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.001854/0.001854, allocations: 67.83 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.274, allocations: 53.32 MB / 432 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01779/0.2918, allocations: 15.07 MB / 447.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.3026, allocations: 4.866 MB / 452 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002294/0.3049, allocations: 91.75 kB / 452.1 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006855/0.3117, allocations: 3.216 MB / 455.3 MB, free: 80 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007537/0.3192, allocations: 2.598 MB / 457.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.3219, allocations: 0.9788 MB / 458.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01168/0.3336, allocations: 7.048 MB / 465.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005807/0.3394, allocations: 3.205 MB / 469.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004559/0.3439, allocations: 2.219 MB / 471.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005954/0.3499, allocations: 3.52 MB / 474.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001882/0.3518, allocations: 484 kB / 475.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005578/0.3574, allocations: 1.529 MB / 476.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004898/0.3622, allocations: 2.917 MB / 479.8 MB, free: 7.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006066/0.3683, allocations: 3.223 MB / 483 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01528/0.3836, allocations: 10.39 MB / 493.4 MB, free: 9.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3836, allocations: 0 / 493.4 MB, free: 9.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3836, allocations: 0 / 493.4 MB, free: 9.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004243/0.384, allocations: 4 kB / 493.4 MB, free: 9.797 MB / 398.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.01958/0.4036, allocations: 7.436 MB / 0.4891 GB, free: 2.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.4037, allocations: 8.031 kB / 0.4891 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0178/0.4215, allocations: 3.978 MB / 0.493 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.4336, allocations: 4.123 MB / 0.497 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004196/0.434, allocations: 316.4 kB / 0.4973 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002112/0.4361, allocations: 439.6 kB / 0.4977 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03346/0.4696, allocations: 15.72 MB / 0.5131 GB, free: 8.695 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002196/0.4698, allocations: 59.5 kB / 0.5131 GB, free: 8.637 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/0.4711, allocations: 203.8 kB / 0.5133 GB, free: 8.438 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005682/0.4767, allocations: 3.216 MB / 0.5165 GB, free: 5.219 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02945/0.5062, allocations: 14.12 MB / 0.5303 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3387/0.8449, allocations: 57.6 MB / 0.5865 GB, free: 53.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/0.8572, allocations: 6.283 MB / 0.5926 GB, free: 48.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003599/0.8608, allocations: 3.317 MB / 0.5959 GB, free: 44.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02058/0.8813, allocations: 14.65 MB / 0.6102 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.8814, allocations: 72.48 kB / 0.6103 GB, free: 29.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.3e-06/0.8814, allocations: 0 / 0.6103 GB, free: 29.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1407/1.022, allocations: 42.63 MB / 0.6519 GB, free: 3.668 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/1.022, allocations: 214 kB / 0.6521 GB, free: 3.414 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007737/1.03, allocations: 5.477 MB / 0.6574 GB, free: 14.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006699/1.031, allocations: 73.7 kB / 0.6575 GB, free: 13.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003442/1.034, allocations: 4.532 MB / 0.6619 GB, free: 9.625 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00174/1.036, allocations: 1.314 MB / 0.6632 GB, free: 8.301 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00293/1.039, allocations: 1.865 MB / 0.665 GB, free: 6.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/1.039, allocations: 309.1 kB / 0.6653 GB, free: 6.117 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00746/1.046, allocations: 4.81 MB / 0.67 GB, free: 1.301 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01214/1.058, allocations: 9.806 MB / 0.6796 GB, free: 5.047 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02075/1.079, allocations: 15.58 MB / 0.6948 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/1.079, allocations: 48 kB / 0.6949 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04625/1.126, allocations: 19.56 MB / 0.714 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001577/1.126, allocations: 80 kB / 0.714 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002384/1.126, allocations: 172 kB / 0.7142 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02489/1.151, allocations: 5.945 MB / 0.72 GB, free: 9.152 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007973/1.159, allocations: 2.106 MB / 0.7221 GB, free: 7.043 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2575/1.416, allocations: 26.15 MB / 0.7476 GB, free: 184.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007148/1.424, allocations: 0.5574 MB / 0.7481 GB, free: 184.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/1.425, allocations: 0.5084 MB / 0.7486 GB, free: 184.8 MB / 0.545 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.004864/1.429, allocations: 3.093 MB / 0.7517 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/1.431, allocations: 0.5161 MB / 0.7522 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02944/1.46, allocations: 12.91 MB / 0.7648 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-05/1.46, allocations: 51.39 kB / 0.7648 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/1.46, allocations: 7.875 kB / 0.7648 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-05/1.46, allocations: 19.17 kB / 0.7648 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05091/1.511, allocations: 24.48 MB / 0.7888 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.446e-05/1.511, allocations: 4 kB / 0.7888 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003132/1.514, allocations: 0.5797 MB / 0.7893 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01932/1.534, allocations: 4.97 MB / 0.7942 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007215/1.534, allocations: 55.75 kB / 0.7942 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0228/1.557, allocations: 21.36 MB / 0.8151 GB, free: 137.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.557, allocations: 11.41 kB / 0.8151 GB, free: 137.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03371/1.591, allocations: 17.45 MB / 0.8321 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.592, allocations: 0.5556 MB / 0.8327 GB, free: 119.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001849/1.594, allocations: 58.59 kB / 0.8327 GB, free: 119.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004282/1.598, allocations: 271.4 kB / 0.833 GB, free: 119.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/1.6, allocations: 186.6 kB / 0.8332 GB, free: 119.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006383/1.6, allocations: 87.91 kB / 0.8333 GB, free: 119.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00549/1.606, allocations: 3.403 MB / 0.8366 GB, free: 115.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/1.606, allocations: 0 / 0.8366 GB, free: 115.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008563/1.614, allocations: 1.731 MB / 0.8383 GB, free: 113.9 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.0008254/1.615, allocations: 216 kB / 0.8385 GB, free: 113.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0143/1.629, allocations: 10.49 MB / 0.8487 GB, free: 103.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/1.63, allocations: 4.875 kB / 0.8487 GB, free: 103.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005364/1.635, allocations: 3.786 MB / 0.8524 GB, free: 99.51 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006171/1.641, allocations: 0.6096 MB / 0.853 GB, free: 98.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03084/1.672, allocations: 16.36 MB / 0.869 GB, free: 82.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005829/1.678, allocations: 4.611 MB / 0.8735 GB, free: 77.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006412/1.684, allocations: 2.97 MB / 0.8764 GB, free: 74.86 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.686, allocations: 355.4 kB / 0.8767 GB, free: 74.52 MB / 0.545 GB Notification: Performance of SimCode: time 1.233e-06/1.686, allocations: 0 / 0.8767 GB, free: 74.52 MB / 0.545 GB Notification: Performance of Templates: time 0.3435/2.029, allocations: 76.51 MB / 0.9515 GB, free: 179.9 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (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 cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.440477209631354]