Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001586/0.001586, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001321/0.001321, allocations: 168.3 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8964/0.8964, allocations: 158.6 MB / 187.2 MB, free: 2.555 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 251 MB, free: 3.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.608e-05, allocations: 2.312 kB / 251 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01132/0.01135, allocations: 14.63 MB / 265.7 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009652/0.021, allocations: 4.753 MB / 270.4 MB, free: 140 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.02345, allocations: 107.5 kB / 270.5 MB, free: 32 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004395/0.02784, allocations: 3.403 MB / 273.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006783/0.03463, allocations: 2.741 MB / 276.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00217/0.0368, allocations: 1.119 MB / 277.8 MB, free: 8.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008054/0.04485, allocations: 7.346 MB / 285.1 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005608/0.05046, allocations: 4.254 MB / 289.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007721/0.05818, allocations: 4.109 MB / 293.5 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004586/0.06277, allocations: 3.577 MB / 297.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.06442, allocations: 492 kB / 297.6 MB, free: 4.867 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00284/0.06726, allocations: 1.478 MB / 299 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002652/0.06992, allocations: 3.097 MB / 302.1 MB, free: 288 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1264/0.1963, allocations: 1.87 MB / 304 MB, free: 27.11 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.2076, allocations: 6.944 MB / 310.9 MB, free: 26.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2076, allocations: 3.984 kB / 311 MB, free: 26.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.2076, allocations: 0 / 311 MB, free: 26.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0004675/0.2081, allocations: 3.594 kB / 311 MB, free: 26.57 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.01715/0.2253, allocations: 7.964 MB / 318.9 MB, free: 23.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.2253, allocations: 14.45 kB / 318.9 MB, free: 23.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.2354, allocations: 4.584 MB / 323.5 MB, free: 23.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00664/0.242, allocations: 3.545 MB / 327.1 MB, free: 22.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.2422, allocations: 319.7 kB / 327.4 MB, free: 22.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009612/0.2431, allocations: 433.2 kB / 327.8 MB, free: 22.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.2573, allocations: 9.004 MB / 336.8 MB, free: 16.88 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/0.2575, allocations: 58.06 kB / 336.9 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005646/0.2581, allocations: 205.8 kB / 337.1 MB, free: 16.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003302/0.2614, allocations: 3.167 MB / 340.2 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.2762, allocations: 5.105 MB / 345.3 MB, free: 9.488 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06144/0.3376, allocations: 60.23 MB / 405.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007091/0.3447, allocations: 2.823 MB / 408.4 MB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.3465, allocations: 1.023 MB / 409.4 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.3583, allocations: 7.477 MB / 416.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/0.3583, allocations: 63.39 kB / 417 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=269): time 6.983e-06/0.3583, allocations: 0 / 417 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of matching and sorting (n=300): time 0.03425/0.3926, allocations: 15.43 MB / 432.4 MB, free: 1.543 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.3927, allocations: 213.4 kB / 432.6 MB, free: 1.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006578/0.3993, allocations: 4.888 MB / 437.5 MB, free: 12.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005947/0.3999, allocations: 65.7 kB / 437.5 MB, free: 12.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00285/0.4027, allocations: 4.835 MB / 442.4 MB, free: 7.535 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001448/0.4042, allocations: 1.211 MB / 443.6 MB, free: 6.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002272/0.4064, allocations: 1.909 MB / 445.5 MB, free: 4.414 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4065, allocations: 480.8 kB / 446 MB, free: 3.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002239/0.4088, allocations: 1.15 MB / 447.1 MB, free: 2.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1368/0.5456, allocations: 8.845 MB / 456 MB, free: 118.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009696/0.5553, allocations: 10.95 MB / 466.9 MB, free: 108.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003409/0.5556, allocations: 51.69 kB / 467 MB, free: 108.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01651/0.5721, allocations: 8.351 MB / 475.3 MB, free: 107.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.292e-05/0.5722, allocations: 85.19 kB / 475.4 MB, free: 107.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/0.5724, allocations: 182.3 kB / 475.6 MB, free: 107.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.5747, allocations: 1.031 MB / 476.6 MB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004625/0.5793, allocations: 2.106 MB / 478.7 MB, free: 107 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/0.5841, allocations: 5.848 MB / 484.6 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005839/0.5899, allocations: 0.5893 MB / 485.2 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/0.5914, allocations: 0.5158 MB / 485.7 MB, free: 102.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003409/0.5948, allocations: 0.8694 MB / 486.5 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/0.596, allocations: 0.5446 MB / 487.1 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/0.6005, allocations: 2.835 MB / 489.9 MB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-05/0.6005, allocations: 52.38 kB / 490 MB, free: 99.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.6005, allocations: 7.938 kB / 490 MB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.6005, allocations: 18.11 kB / 490 MB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.6165, allocations: 9.317 MB / 499.3 MB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.6165, allocations: 8 kB / 499.3 MB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/0.618, allocations: 0.5244 MB / 499.8 MB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001865/0.6199, allocations: 0.7579 MB / 0.4889 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/0.6202, allocations: 53.08 kB / 0.4889 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/0.6237, allocations: 4.826 MB / 0.4936 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.6237, allocations: 11.94 kB / 0.4936 GB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006254/0.6299, allocations: 4.251 MB / 0.4978 GB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/0.6317, allocations: 0.8551 MB / 0.4986 GB, free: 82.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006501/0.6324, allocations: 54.64 kB / 0.4987 GB, free: 82.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.6337, allocations: 247.6 kB / 0.4989 GB, free: 81.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.634, allocations: 177.5 kB / 0.4991 GB, free: 81.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.6341, allocations: 78.47 kB / 0.4992 GB, free: 81.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00299/0.6371, allocations: 2.087 MB / 0.5012 GB, free: 79.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6371, allocations: 0 / 0.5012 GB, free: 79.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007024/0.6441, allocations: 1.594 MB / 0.5028 GB, free: 77.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000692/0.6448, allocations: 227.5 kB / 0.503 GB, free: 77.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008535/0.6534, allocations: 4.685 MB / 0.5075 GB, free: 73.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.6534, allocations: 0 / 0.5075 GB, free: 73.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001938/0.6553, allocations: 1.29 MB / 0.5088 GB, free: 71.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003119/0.6584, allocations: 0.5393 MB / 0.5093 GB, free: 71.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.6774, allocations: 11.59 MB / 0.5207 GB, free: 59.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002619/0.68, allocations: 1.836 MB / 0.5224 GB, free: 57.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004195/0.6842, allocations: 2.381 MB / 0.5248 GB, free: 55.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.6853, allocations: 336.5 kB / 0.5251 GB, free: 54.85 MB / 378.7 MB Notification: Performance of SimCode: time 1.854e-06/0.6853, allocations: 0 / 0.5251 GB, free: 54.85 MB / 378.7 MB Notification: Performance of Templates: time 0.1881/0.8734, allocations: 48.76 MB / 0.5727 GB, free: 119.7 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.652242656331509]