Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 207.2 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 258.2 MB, free: 7.797 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 51.86 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.225, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01595/0.241, allocations: 13.01 MB / 445.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009731/0.2507, allocations: 4.616 MB / 450 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.2522, allocations: 111.4 kB / 450.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006581/0.2588, allocations: 3.091 MB / 453.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006237/0.2651, allocations: 2.607 MB / 455.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002/0.2671, allocations: 0.9944 MB / 456.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008952/0.276, allocations: 7.055 MB / 463.8 MB, free: 7.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004103/0.2801, allocations: 3.574 MB / 467.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003147/0.2833, allocations: 2.254 MB / 469.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004663/0.2879, allocations: 3.513 MB / 473.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009281/0.2889, allocations: 492 kB / 473.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00256/0.2914, allocations: 1.396 MB / 475 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002875/0.2943, allocations: 2.917 MB / 478 MB, free: 8.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002585/0.2969, allocations: 2.376 MB / 480.3 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.3077, allocations: 10.45 MB / 490.8 MB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3077, allocations: 0 / 490.8 MB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3077, allocations: 0 / 490.8 MB, free: 12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001556/0.3079, allocations: 0 / 490.8 MB, free: 12 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.01406/0.322, allocations: 7.353 MB / 498.1 MB, free: 4.574 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.322, allocations: 8.031 kB / 498.1 MB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.3382, allocations: 3.978 MB / 0.4904 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.3495, allocations: 4.063 MB / 0.4943 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.3498, allocations: 328.4 kB / 0.4946 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.3512, allocations: 435.6 kB / 0.4951 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02687/0.3781, allocations: 15.79 MB / 0.5105 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.3782, allocations: 51.58 kB / 0.5105 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006087/0.3789, allocations: 211.7 kB / 0.5107 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00523/0.3841, allocations: 3.216 MB / 0.5139 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/0.4113, allocations: 14.1 MB / 0.5276 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2426/0.6538, allocations: 53.37 MB / 0.5797 GB, free: 57.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.6651, allocations: 5.343 MB / 0.585 GB, free: 54.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003213/0.6683, allocations: 3.342 MB / 0.5882 GB, free: 51.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01819/0.6865, allocations: 11.93 MB / 0.5999 GB, free: 39.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.6865, allocations: 64.5 kB / 0.5999 GB, free: 39.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.51e-06/0.6865, allocations: 4 kB / 0.6 GB, free: 39.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.133/0.8195, allocations: 42.53 MB / 0.6415 GB, free: 13.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.8197, allocations: 214 kB / 0.6417 GB, free: 13.55 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006836/0.8265, allocations: 5.203 MB / 0.6468 GB, free: 8.555 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005911/0.8271, allocations: 76.44 kB / 0.6468 GB, free: 8.477 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003277/0.8304, allocations: 4.556 MB / 0.6513 GB, free: 4.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001475/0.8318, allocations: 1.31 MB / 0.6526 GB, free: 2.746 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002816/0.8346, allocations: 1.861 MB / 0.6544 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.8348, allocations: 305.1 kB / 0.6547 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007105/0.8419, allocations: 4.8 MB / 0.6594 GB, free: 11.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01127/0.8532, allocations: 9.84 MB / 0.669 GB, free: 15.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01996/0.8731, allocations: 15.55 MB / 0.6842 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.8732, allocations: 52 kB / 0.6842 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.0444/0.9176, allocations: 19.48 MB / 0.7032 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.9177, allocations: 80 kB / 0.7033 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/0.9179, allocations: 176.9 kB / 0.7035 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02356/0.9415, allocations: 5.941 MB / 0.7093 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00762/0.9491, allocations: 2.113 MB / 0.7114 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03776/0.9869, allocations: 25.67 MB / 0.7364 GB, free: 7.648 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006772/0.9936, allocations: 0.558 MB / 0.737 GB, free: 7.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009454/0.9946, allocations: 0.5117 MB / 0.7375 GB, free: 6.578 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 (1094): * Single equations (assignments): 1086 * 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.004836/0.9994, allocations: 3.095 MB / 0.7405 GB, free: 3.469 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009733/1, allocations: 484.8 kB / 0.741 GB, free: 2.992 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2154/1.216, allocations: 12.86 MB / 0.7535 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6e-05/1.216, allocations: 58.25 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/1.216, allocations: 7.906 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/1.216, allocations: 23.75 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04041/1.256, allocations: 22.14 MB / 0.7752 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/1.256, allocations: 15.84 kB / 0.7752 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/1.259, allocations: 0.5733 MB / 0.7758 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01802/1.277, allocations: 4.973 MB / 0.7806 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003209/1.277, allocations: 55.67 kB / 0.7807 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02123/1.298, allocations: 20.88 MB / 0.8011 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.298, allocations: 16.3 kB / 0.8011 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02963/1.328, allocations: 17.39 MB / 0.8181 GB, free: 134.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/1.329, allocations: 440.3 kB / 0.8185 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007005/1.33, allocations: 59.73 kB / 0.8186 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/1.333, allocations: 267.1 kB / 0.8188 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006699/1.333, allocations: 209.4 kB / 0.819 GB, free: 133.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002789/1.334, allocations: 87.59 kB / 0.8191 GB, free: 133.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00309/1.337, allocations: 2.997 MB / 0.822 GB, free: 130.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.337, allocations: 0 / 0.822 GB, free: 130.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005617/1.342, allocations: 1.72 MB / 0.8237 GB, free: 129.1 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.0005099/1.343, allocations: 210 kB / 0.8239 GB, free: 128.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01115/1.354, allocations: 10.48 MB / 0.8342 GB, free: 118.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.354, allocations: 0 / 0.8342 GB, free: 118.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004132/1.358, allocations: 3.786 MB / 0.8378 GB, free: 114.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/1.361, allocations: 0.5221 MB / 0.8384 GB, free: 114.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/1.379, allocations: 16.3 MB / 0.8543 GB, free: 97.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/1.383, allocations: 4.121 MB / 0.8583 GB, free: 93.65 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005254/1.388, allocations: 2.912 MB / 0.8611 GB, free: 90.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/1.389, allocations: 327.4 kB / 0.8615 GB, free: 90.41 MB / 0.545 GB Notification: Performance of SimCode: time 7.91e-07/1.389, allocations: 0 / 0.8615 GB, free: 90.41 MB / 0.545 GB Notification: Performance of Templates: time 0.09716/1.486, allocations: 78.58 MB / 0.9382 GB, free: 12.24 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 7.756323155001155]