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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, allocations: 112.6 kB / 18.79 MB, free: 3.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 215.9 kB / 19.8 MB, free: 2.551 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.448/1.448, allocations: 230.4 MB / 251.1 MB, free: 8.438 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.002743/0.002743, allocations: 67.83 kB / 369 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2904, allocations: 53.32 MB / 422.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01853/0.309, allocations: 15.04 MB / 437.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.3205, allocations: 4.842 MB / 442.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.3234, allocations: 91.75 kB / 442.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006804/0.3302, allocations: 3.208 MB / 445.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007311/0.3375, allocations: 2.584 MB / 448 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002883/0.3404, allocations: 0.9904 MB / 449 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.3512, allocations: 7.046 MB / 456.1 MB, free: 5.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005996/0.3572, allocations: 3.701 MB / 459.8 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004367/0.3616, allocations: 2.223 MB / 462 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005728/0.3673, allocations: 3.517 MB / 465.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001862/0.3692, allocations: 484 kB / 466 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.3732, allocations: 1.533 MB / 467.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004095/0.3773, allocations: 2.914 MB / 470.4 MB, free: 7.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005476/0.3827, allocations: 3.215 MB / 473.6 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.3958, allocations: 10.4 MB / 484 MB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.3958, allocations: 0 / 484 MB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3958, allocations: 4 kB / 484.1 MB, free: 9.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003472/0.3962, allocations: 0 / 484.1 MB, free: 9.785 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.01696/0.4132, allocations: 7.428 MB / 491.5 MB, free: 2.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.4132, allocations: 8.031 kB / 491.5 MB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/0.4286, allocations: 3.974 MB / 495.5 MB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009679/0.4383, allocations: 4.131 MB / 499.6 MB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002964/0.4386, allocations: 320.4 kB / 499.9 MB, free: 9.762 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00171/0.4403, allocations: 435.6 kB / 0.4886 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0296/0.4699, allocations: 15.71 MB / 0.504 GB, free: 8.691 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.47, allocations: 55.58 kB / 0.504 GB, free: 8.637 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000638/0.4707, allocations: 203.8 kB / 0.5042 GB, free: 8.438 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005/0.4757, allocations: 3.216 MB / 0.5073 GB, free: 5.219 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02764/0.5033, allocations: 14.13 MB / 0.5211 GB, free: 7.062 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3395/0.8428, allocations: 57.6 MB / 0.5774 GB, free: 73.89 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/0.8554, allocations: 6.258 MB / 0.5835 GB, free: 71.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003936/0.8593, allocations: 3.338 MB / 0.5868 GB, free: 69.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0185/0.8778, allocations: 14.65 MB / 0.6011 GB, free: 61.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.8779, allocations: 64.5 kB / 0.6011 GB, free: 61.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 5.761e-06/0.8779, allocations: 0 / 0.6011 GB, free: 61.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1289/1.007, allocations: 42.63 MB / 0.6428 GB, free: 18.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/1.007, allocations: 221.9 kB / 0.643 GB, free: 18.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006113/1.013, allocations: 5.479 MB / 0.6483 GB, free: 13.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009281/1.014, allocations: 77.7 kB / 0.6484 GB, free: 13.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003749/1.018, allocations: 4.528 MB / 0.6528 GB, free: 8.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002508/1.02, allocations: 1.313 MB / 0.6541 GB, free: 7.613 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003001/1.023, allocations: 1.869 MB / 0.6559 GB, free: 5.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/1.023, allocations: 305.1 kB / 0.6562 GB, free: 5.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005383/1.029, allocations: 4.812 MB / 0.6609 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/1.041, allocations: 9.802 MB / 0.6705 GB, free: 4.359 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02191/1.063, allocations: 15.57 MB / 0.6857 GB, free: 2.324 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/1.063, allocations: 52 kB / 0.6857 GB, free: 2.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04818/1.111, allocations: 19.56 MB / 0.7048 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.111, allocations: 80 kB / 0.7049 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002391/1.111, allocations: 176 kB / 0.7051 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02269/1.134, allocations: 5.945 MB / 0.7109 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008269/1.142, allocations: 2.109 MB / 0.7129 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03791/1.18, allocations: 26.13 MB / 0.7385 GB, free: 11.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008202/1.188, allocations: 0.5619 MB / 0.739 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001828/1.19, allocations: 0.5117 MB / 0.7395 GB, free: 10.84 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.007/1.197, allocations: 3.1 MB / 0.7425 GB, free: 7.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/1.199, allocations: 0.5122 MB / 0.743 GB, free: 7.215 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.295/1.494, allocations: 12.9 MB / 0.7556 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.951e-05/1.494, allocations: 55.03 kB / 0.7557 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.218e-05/1.494, allocations: 11.25 kB / 0.7557 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.669e-05/1.494, allocations: 14.86 kB / 0.7557 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04505/1.539, allocations: 24.48 MB / 0.7796 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.36e-05/1.539, allocations: 3.875 kB / 0.7796 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.542, allocations: 0.5824 MB / 0.7802 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01752/1.559, allocations: 4.97 MB / 0.7851 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006243/1.56, allocations: 59.83 kB / 0.7851 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02187/1.582, allocations: 21.34 MB / 0.806 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.582, allocations: 15.81 kB / 0.806 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03031/1.612, allocations: 17.45 MB / 0.823 GB, free: 136.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/1.613, allocations: 0.5605 MB / 0.8236 GB, free: 136.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009453/1.614, allocations: 59.77 kB / 0.8236 GB, free: 136.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/1.617, allocations: 261.6 kB / 0.8239 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007149/1.618, allocations: 201.4 kB / 0.8241 GB, free: 135.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.618, allocations: 87.94 kB / 0.8241 GB, free: 135.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004493/1.623, allocations: 3.394 MB / 0.8274 GB, free: 132.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.623, allocations: 0 / 0.8274 GB, free: 132.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007444/1.63, allocations: 1.737 MB / 0.8291 GB, free: 130.5 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.0007241/1.631, allocations: 210.1 kB / 0.8293 GB, free: 130.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01298/1.644, allocations: 10.49 MB / 0.8396 GB, free: 119.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.644, allocations: 4 kB / 0.8396 GB, free: 119.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004671/1.648, allocations: 3.79 MB / 0.8433 GB, free: 116.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/1.652, allocations: 0.6005 MB / 0.8439 GB, free: 115.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02054/1.672, allocations: 16.38 MB / 0.8599 GB, free: 99.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004476/1.677, allocations: 4.614 MB / 0.8644 GB, free: 94.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005644/1.683, allocations: 2.966 MB / 0.8673 GB, free: 91.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/1.684, allocations: 356.4 kB / 0.8676 GB, free: 91.14 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/1.684, allocations: 0 / 0.8676 GB, free: 91.14 MB / 0.545 GB Notification: Performance of Templates: time 0.102/1.786, allocations: 78.93 MB / 0.9447 GB, free: 12.3 MB / 0.545 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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) [Timeout 660] Reference file matches