Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009116/0.0009116, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009101/0.0009101, allocations: 143.2 kB / 24.97 MB, free: 8.305 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9988/0.9988, allocations: 173.3 MB / 201.5 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.415e-05/1.533e-05, allocations: 6.25 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01082/0.01084, allocations: 14.52 MB / 282.6 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007245/0.01808, allocations: 4.744 MB / 287.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.01929, allocations: 107.5 kB / 287.5 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1154/0.1347, allocations: 3.397 MB / 290.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006429/0.1412, allocations: 2.733 MB / 293.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.143, allocations: 1.115 MB / 294.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008469/0.1515, allocations: 7.669 MB / 302.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004524/0.156, allocations: 4.238 MB / 306.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003879/0.1599, allocations: 3.394 MB / 310 MB, free: 9.762 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003465/0.1633, allocations: 3.643 MB / 313.6 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008747/0.1642, allocations: 499.6 kB / 314.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001662/0.1659, allocations: 1.482 MB / 315.6 MB, free: 6.949 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.1672, allocations: 3.098 MB / 318.7 MB, free: 3.941 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.1688, allocations: 1.879 MB / 320.6 MB, free: 2.137 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005367/0.1742, allocations: 6.961 MB / 327.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1742, allocations: 0 / 327.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1742, allocations: 4 kB / 327.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002466/0.1744, allocations: 0 / 327.6 MB, free: 11.62 MB / 282.7 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.009825/0.1843, allocations: 7.959 MB / 335.5 MB, free: 3.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1843, allocations: 12.02 kB / 335.5 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009336/0.1937, allocations: 4.692 MB / 340.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004582/0.1982, allocations: 3.663 MB / 343.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.1984, allocations: 320.5 kB / 344.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005319/0.1989, allocations: 427.3 kB / 344.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.2096, allocations: 9.006 MB / 353.6 MB, free: 1.016 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-05/0.2096, allocations: 61.67 kB / 353.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004134/0.2101, allocations: 204.5 kB / 353.9 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002903/0.213, allocations: 3.214 MB / 357.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.2238, allocations: 5.214 MB / 362.3 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04408/0.2679, allocations: 60.05 MB / 422.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006821/0.2747, allocations: 3.059 MB / 425.4 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.2763, allocations: 1.176 MB / 426.6 MB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1396/0.4159, allocations: 8.252 MB / 434.8 MB, free: 121.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.4159, allocations: 69 kB / 434.9 MB, free: 121.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 5.49e-06/0.4159, allocations: 0 / 434.9 MB, free: 121.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.05594/0.4719, allocations: 27.2 MB / 462.1 MB, free: 114.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.4719, allocations: 210 kB / 462.3 MB, free: 114.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.476, allocations: 4.72 MB / 467 MB, free: 110.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003249/0.4763, allocations: 73.64 kB / 467.1 MB, free: 110.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001714/0.478, allocations: 4.734 MB / 471.8 MB, free: 106.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008313/0.4789, allocations: 1.355 MB / 473.2 MB, free: 105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/0.4805, allocations: 1.927 MB / 475.1 MB, free: 103 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/0.4805, allocations: 480.7 kB / 475.6 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/0.4827, allocations: 1.661 MB / 477.2 MB, free: 100.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004289/0.487, allocations: 9.095 MB / 486.3 MB, free: 88.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/0.4947, allocations: 11.73 MB / 498.1 MB, free: 73.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-05/0.4948, allocations: 48 kB / 498.1 MB, free: 73.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.0203/0.5151, allocations: 12.32 MB / 0.4985 GB, free: 60.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/0.5151, allocations: 83.31 kB / 0.4986 GB, free: 60.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/0.5153, allocations: 176 kB / 0.4987 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01249/0.5278, allocations: 4.865 MB / 0.5035 GB, free: 55.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/0.5322, allocations: 2.106 MB / 0.5055 GB, free: 53.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/0.5437, allocations: 9.373 MB / 0.5147 GB, free: 44.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004831/0.5486, allocations: 0.6125 MB / 0.5153 GB, free: 43.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006124/0.5492, allocations: 0.5116 MB / 0.5158 GB, free: 42.95 MB / 378.7 MB 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.00192/0.5511, allocations: 0.8604 MB / 0.5166 GB, free: 42.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007954/0.5519, allocations: 0.567 MB / 0.5172 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/0.5659, allocations: 7.25 MB / 0.5243 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-05/0.5659, allocations: 63.92 kB / 0.5243 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.5659, allocations: 8 kB / 0.5243 GB, free: 34.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.308e-05/0.566, allocations: 11.95 kB / 0.5243 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02397/0.5899, allocations: 15.76 MB / 0.5397 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.5899, allocations: 4.594 kB / 0.5397 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/0.5915, allocations: 0.585 MB / 0.5403 GB, free: 17.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01079/0.6023, allocations: 4.265 MB / 0.5445 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002651/0.6025, allocations: 59.98 kB / 0.5445 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009456/0.612, allocations: 8.165 MB / 0.5525 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.612, allocations: 11.94 kB / 0.5525 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1416/0.7536, allocations: 8.341 MB / 0.5607 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/0.7552, allocations: 470.9 kB / 0.5611 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/0.756, allocations: 53.62 kB / 0.5612 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/0.7579, allocations: 304.7 kB / 0.5614 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006626/0.7585, allocations: 203 kB / 0.5616 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002068/0.7587, allocations: 83.86 kB / 0.5617 GB, free: 115.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003004/0.7618, allocations: 2.021 MB / 0.5637 GB, free: 115.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7618, allocations: 0 / 0.5637 GB, free: 115.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006004/0.7678, allocations: 1.896 MB / 0.5655 GB, free: 115.2 MB / 394.7 MB 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.000539/0.7683, allocations: 234.2 kB / 0.5658 GB, free: 115.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007548/0.7758, allocations: 5.876 MB / 0.5715 GB, free: 114.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.7758, allocations: 3.891 kB / 0.5715 GB, free: 114.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/0.7781, allocations: 1.961 MB / 0.5734 GB, free: 114 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.78, allocations: 0.5386 MB / 0.574 GB, free: 114 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.7941, allocations: 12.51 MB / 0.5862 GB, free: 109.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001447/0.7955, allocations: 1.87 MB / 0.588 GB, free: 109.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003313/0.7989, allocations: 2.378 MB / 0.5903 GB, free: 108.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009152/0.7998, allocations: 342.5 kB / 0.5906 GB, free: 108.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7998, allocations: 0 / 0.5906 GB, free: 108.6 MB / 394.7 MB Notification: Performance of Templates: time 0.07331/0.8731, allocations: 75.05 MB / 0.6639 GB, free: 36.65 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.790856329957023]