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.001434/0.001434, allocations: 84.3 kB / 22.21 MB, free: 2.285 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.001974/0.001974, allocations: 168.2 kB / 25.6 MB, free: 8.48 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.9965/0.9965, allocations: 158.6 MB / 187.5 MB, free: 2.754 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 3.196e-06/3.196e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.187e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01225/0.01228, allocations: 14.15 MB / 265.6 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009095/0.02138, allocations: 4.703 MB / 270.3 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/0.02387, allocations: 107.5 kB / 270.4 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004315/0.02819, allocations: 3.359 MB / 273.8 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00603/0.03422, allocations: 2.741 MB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.03624, allocations: 1.123 MB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009469/0.04571, allocations: 7.353 MB / 285 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007311/0.05302, allocations: 4.262 MB / 289.3 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.05883, allocations: 4.12 MB / 293.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003246/0.06208, allocations: 3.577 MB / 297 MB, free: 9.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005454/0.06262, allocations: 492 kB / 297.4 MB, free: 9.055 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001768/0.06439, allocations: 1.471 MB / 298.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001813/0.0662, allocations: 3.097 MB / 302 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.06766, allocations: 1.881 MB / 303.9 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005372/0.07303, allocations: 6.936 MB / 310.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.07303, allocations: 0 / 310.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.07303, allocations: 0 / 310.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001155/0.07315, allocations: 4 kB / 310.8 MB, free: 11.62 MB / 298.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.007984/0.08113, allocations: 7.444 MB / 318.3 MB, free: 4.094 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.08117, allocations: 15.98 kB / 318.3 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006632/0.0878, allocations: 2.782 MB / 321.1 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003582/0.09139, allocations: 3.102 MB / 324.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.09154, allocations: 316.4 kB / 324.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000522/0.09206, allocations: 440.2 kB / 324.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008263/0.1003, allocations: 8.074 MB / 333 MB, free: 4.047 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.59e-05/0.1004, allocations: 59.45 kB / 333 MB, free: 3.988 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003699/0.1008, allocations: 207.8 kB / 333.2 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002305/0.1031, allocations: 2.849 MB / 336.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006466/0.1096, allocations: 3.943 MB / 340 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1887/0.2983, allocations: 59.28 MB / 399.3 MB, free: 43.15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005419/0.3037, allocations: 2.57 MB / 401.9 MB, free: 42.97 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.3048, allocations: 0.8641 MB / 402.8 MB, free: 42.92 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008338/0.3131, allocations: 6.941 MB / 409.7 MB, free: 40.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.3132, allocations: 66.17 kB / 409.8 MB, free: 40.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=269): time 4.047e-06/0.3132, allocations: 0.875 kB / 409.8 MB, free: 40.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=300): time 0.02142/0.3346, allocations: 10.37 MB / 420.1 MB, free: 32.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3346, allocations: 209.9 kB / 420.3 MB, free: 32.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003616/0.3383, allocations: 4.858 MB / 425.2 MB, free: 27.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.3384, allocations: 77.16 kB / 425.3 MB, free: 27.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001444/0.3398, allocations: 4.871 MB / 430.1 MB, free: 23.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/0.3404, allocations: 1.229 MB / 431.4 MB, free: 21.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/0.3417, allocations: 1.946 MB / 433.3 MB, free: 19.81 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.475e-05/0.3418, allocations: 476.8 kB / 433.8 MB, free: 19.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.343, allocations: 1.017 MB / 434.8 MB, free: 18.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/0.3465, allocations: 8.77 MB / 443.6 MB, free: 6.129 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008059/0.3545, allocations: 10.6 MB / 454.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001163/0.3546, allocations: 52 kB / 454.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01464/0.3693, allocations: 7.569 MB / 461.8 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.929e-05/0.3694, allocations: 84 kB / 461.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.3695, allocations: 183.2 kB / 462 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001996/0.3715, allocations: 0.8302 MB / 462.9 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003347/0.3748, allocations: 1.981 MB / 464.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/0.3797, allocations: 5.567 MB / 470.4 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003996/0.3837, allocations: 371.7 kB / 470.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004555/0.3842, allocations: 452 kB / 471.2 MB, free: 7.02 MB / 362.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.002079/0.3863, allocations: 0.8672 MB / 472.1 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008211/0.3871, allocations: 0.5476 MB / 472.6 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004556/0.3917, allocations: 2.417 MB / 475.1 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.758e-05/0.3917, allocations: 51.98 kB / 475.1 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3917, allocations: 4 kB / 475.1 MB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.3917, allocations: 11.95 kB / 475.1 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.4049, allocations: 7.146 MB / 482.3 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/0.4049, allocations: 12.11 kB / 482.3 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.4063, allocations: 399.4 kB / 482.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/0.4083, allocations: 0.5717 MB / 483.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.4085, allocations: 55.98 kB / 483.3 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00432/0.4128, allocations: 4.595 MB / 487.9 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.4128, allocations: 11.94 kB / 487.9 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005747/0.4185, allocations: 3.692 MB / 491.6 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.4197, allocations: 0.7348 MB / 492.3 MB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00043/0.4201, allocations: 51.28 kB / 492.4 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.4214, allocations: 52 kB / 492.4 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.4217, allocations: 181.4 kB / 492.6 MB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.4218, allocations: 67.86 kB / 492.7 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1463/0.5682, allocations: 1.923 MB / 494.6 MB, free: 118.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5682, allocations: 0.875 kB / 494.6 MB, free: 118.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006398/0.5746, allocations: 1.593 MB / 496.2 MB, free: 118.3 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.0004315/0.575, allocations: 219.4 kB / 496.4 MB, free: 118.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004456/0.5795, allocations: 4.33 MB / 0.489 GB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5795, allocations: 3.938 kB / 0.489 GB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.5807, allocations: 1.16 MB / 0.4901 GB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.5825, allocations: 0.5352 MB / 0.4907 GB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/0.5948, allocations: 11.52 MB / 0.5019 GB, free: 112.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001415/0.5962, allocations: 1.845 MB / 0.5037 GB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001697/0.5979, allocations: 0.7118 MB / 0.5044 GB, free: 110.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.5991, allocations: 0.7929 MB / 0.5052 GB, free: 110.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.733e-06/0.5991, allocations: 0 / 0.5052 GB, free: 110.1 MB / 378.7 MB Notification: Performance of Templates: time 0.0609/0.66, allocations: 51.48 MB / 0.5555 GB, free: 61.55 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.5221474333666265]