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.002076/0.002076, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002443/0.002443, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.506/1.506, allocations: 230.6 MB / 257.5 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.00244/0.00244, allocations: 47.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3052, allocations: 53.36 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01691/0.3221, allocations: 13.02 MB / 444.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.3338, allocations: 4.624 MB / 449.2 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002692/0.3365, allocations: 107.5 kB / 449.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006456/0.3429, allocations: 3.091 MB / 452.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006926/0.3498, allocations: 2.611 MB / 455 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.3523, allocations: 0.9828 MB / 456 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01008/0.3624, allocations: 7.055 MB / 463.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006232/0.3686, allocations: 3.558 MB / 466.6 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004726/0.3734, allocations: 2.258 MB / 468.9 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005837/0.3792, allocations: 3.353 MB / 472.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001797/0.381, allocations: 487.9 kB / 472.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.3845, allocations: 1.385 MB / 474.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003692/0.3882, allocations: 2.914 MB / 477 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004086/0.3923, allocations: 2.38 MB / 479.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.4049, allocations: 10.45 MB / 489.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4049, allocations: 0 / 489.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4049, allocations: 0 / 489.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.4051, allocations: 4 kB / 489.8 MB, free: 12.21 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.01495/0.4201, allocations: 7.353 MB / 497.2 MB, free: 4.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4201, allocations: 12.03 kB / 497.2 MB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01577/0.4359, allocations: 3.978 MB / 0.4894 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009197/0.4451, allocations: 4.067 MB / 0.4934 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.4453, allocations: 316.4 kB / 0.4937 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000894/0.4462, allocations: 439.6 kB / 0.4941 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.4719, allocations: 15.79 MB / 0.5096 GB, free: 11.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.472, allocations: 55.52 kB / 0.5096 GB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005608/0.4726, allocations: 203.8 kB / 0.5098 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005183/0.4778, allocations: 3.219 MB / 0.5129 GB, free: 7.695 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02624/0.504, allocations: 14.09 MB / 0.5267 GB, free: 9.578 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3035/0.8075, allocations: 53.37 MB / 0.5788 GB, free: 58.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.8195, allocations: 5.353 MB / 0.5841 GB, free: 56.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00395/0.8234, allocations: 3.338 MB / 0.5873 GB, free: 53.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01815/0.8416, allocations: 11.93 MB / 0.599 GB, free: 41.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.8416, allocations: 68.55 kB / 0.599 GB, free: 41.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.063e-06/0.8416, allocations: 3.938 kB / 0.599 GB, free: 41.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.143/0.9846, allocations: 42.54 MB / 0.6406 GB, free: 15.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/0.9848, allocations: 210 kB / 0.6408 GB, free: 15.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008217/0.993, allocations: 5.21 MB / 0.6459 GB, free: 9.832 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008474/0.9938, allocations: 69.7 kB / 0.6459 GB, free: 9.758 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00381/0.9977, allocations: 4.553 MB / 0.6504 GB, free: 5.168 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002235/0.9999, allocations: 1.314 MB / 0.6516 GB, free: 3.844 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003381/1.003, allocations: 1.861 MB / 0.6535 GB, free: 1.969 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/1.003, allocations: 313 kB / 0.6538 GB, free: 1.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007954/1.011, allocations: 4.796 MB / 0.6584 GB, free: 12.86 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01382/1.025, allocations: 9.844 MB / 0.6681 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02551/1.051, allocations: 15.56 MB / 0.6833 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002901/1.051, allocations: 52 kB / 0.6833 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.05439/1.105, allocations: 19.48 MB / 0.7023 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003806/1.106, allocations: 83.94 kB / 0.7024 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000457/1.106, allocations: 174.6 kB / 0.7026 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02555/1.132, allocations: 5.945 MB / 0.7084 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009085/1.141, allocations: 2.098 MB / 0.7104 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04018/1.181, allocations: 25.68 MB / 0.7355 GB, free: 8.738 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007581/1.189, allocations: 0.5501 MB / 0.736 GB, free: 8.188 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002026/1.191, allocations: 0.5156 MB / 0.7366 GB, free: 7.672 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.007346/1.198, allocations: 3.099 MB / 0.7396 GB, free: 4.559 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001682/1.2, allocations: 476.8 kB / 0.74 GB, free: 4.09 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2697/1.469, allocations: 12.85 MB / 0.7526 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.575e-05/1.469, allocations: 57.67 kB / 0.7526 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.137e-05/1.469, allocations: 8.125 kB / 0.7526 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.556e-05/1.47, allocations: 18.88 kB / 0.7527 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0453/1.515, allocations: 22.16 MB / 0.7743 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.905e-05/1.515, allocations: 8 kB / 0.7743 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003197/1.518, allocations: 0.5694 MB / 0.7749 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01945/1.538, allocations: 4.975 MB / 0.7797 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008532/1.538, allocations: 59.98 kB / 0.7798 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02307/1.561, allocations: 20.88 MB / 0.8002 GB, free: 154.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/1.561, allocations: 11.94 kB / 0.8002 GB, free: 154.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0343/1.596, allocations: 17.4 MB / 0.8172 GB, free: 136.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.597, allocations: 439.8 kB / 0.8176 GB, free: 136.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001619/1.599, allocations: 54.52 kB / 0.8176 GB, free: 136.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/1.602, allocations: 263.3 kB / 0.8179 GB, free: 136.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008938/1.603, allocations: 205.4 kB / 0.8181 GB, free: 136.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004389/1.604, allocations: 87.42 kB / 0.8182 GB, free: 136 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004574/1.608, allocations: 2.997 MB / 0.8211 GB, free: 133 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/1.608, allocations: 0 / 0.8211 GB, free: 133 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006915/1.615, allocations: 1.72 MB / 0.8228 GB, free: 131.3 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.0007345/1.616, allocations: 213.5 kB / 0.823 GB, free: 131.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01329/1.629, allocations: 10.48 MB / 0.8332 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.629, allocations: 0 / 0.8332 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004861/1.634, allocations: 3.792 MB / 0.8369 GB, free: 116.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004224/1.638, allocations: 0.5112 MB / 0.8374 GB, free: 116.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02381/1.662, allocations: 16.3 MB / 0.8533 GB, free: 100.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005177/1.667, allocations: 4.125 MB / 0.8574 GB, free: 95.92 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005657/1.673, allocations: 2.908 MB / 0.8602 GB, free: 93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/1.674, allocations: 335.4 kB / 0.8605 GB, free: 92.68 MB / 0.545 GB Notification: Performance of SimCode: time 6.71e-07/1.674, allocations: 0 / 0.8605 GB, free: 92.68 MB / 0.545 GB Notification: Performance of Templates: time 0.1035/1.778, allocations: 78.6 MB / 0.9373 GB, free: 14.49 MB / 0.545 GB " [Timeout remaining time 658] 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 -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/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_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.416616084054112]