Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 165 kB / 25.61 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9773/0.9773, allocations: 177 MB / 205.9 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 274.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.535e-05, allocations: 2.312 kB / 274.1 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01569/0.01571, allocations: 14.95 MB / 289.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1342/0.1499, allocations: 5.021 MB / 294.1 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002963/0.1529, allocations: 135.9 kB / 294.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007327/0.1602, allocations: 4.691 MB / 298.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007347/0.1675, allocations: 2.681 MB / 301.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.1702, allocations: 1.296 MB / 302.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009461/0.1797, allocations: 9.215 MB / 312.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005617/0.1853, allocations: 5.212 MB / 317.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01701/0.2023, allocations: 5.407 MB / 322.7 MB, free: 15.06 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01142/0.2137, allocations: 3.666 MB / 326.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001563/0.2153, allocations: 0.5117 MB / 326.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005758/0.221, allocations: 1.454 MB / 328.4 MB, free: 9.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003043/0.2241, allocations: 3.178 MB / 331.5 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003494/0.2276, allocations: 1.988 MB / 333.5 MB, free: 4.766 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008705/0.2363, allocations: 6.777 MB / 340.3 MB, free: 14.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2363, allocations: 4 kB / 340.3 MB, free: 14.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2363, allocations: 0 / 340.3 MB, free: 14.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002524/0.2366, allocations: 0 / 340.3 MB, free: 14.28 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01241/0.249, allocations: 7.822 MB / 348.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.249, allocations: 15.98 kB / 348.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007751/0.2568, allocations: 2.709 MB / 350.9 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005739/0.2625, allocations: 3.526 MB / 354.4 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/0.2627, allocations: 333.1 kB / 354.7 MB, free: 124 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008876/0.2636, allocations: 468 kB / 355.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01197/0.2756, allocations: 7.771 MB / 362.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001698/0.2757, allocations: 71.45 kB / 363 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005458/0.2763, allocations: 211.8 kB / 363.2 MB, free: 6.348 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001958/0.2782, allocations: 2.313 MB / 365.5 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008782/0.287, allocations: 3.593 MB / 369.1 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05341/0.3404, allocations: 58.72 MB / 427.8 MB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00717/0.3476, allocations: 2.768 MB / 430.6 MB, free: 1.039 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.3489, allocations: 0.8009 MB / 431.4 MB, free: 228 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/0.4951, allocations: 6.694 MB / 438.1 MB, free: 114.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.4952, allocations: 64.92 kB / 438.2 MB, free: 114.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.912e-06/0.4952, allocations: 1.625 kB / 438.2 MB, free: 114.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.1021/0.5973, allocations: 32.44 MB / 470.6 MB, free: 98.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.5973, allocations: 243.9 kB / 470.8 MB, free: 98.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004648/0.602, allocations: 4.825 MB / 475.7 MB, free: 94.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008554/0.6028, allocations: 77.7 kB / 475.7 MB, free: 94.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002234/0.6051, allocations: 4.637 MB / 480.4 MB, free: 90.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001791/0.6069, allocations: 1.396 MB / 481.8 MB, free: 88.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001892/0.6088, allocations: 1.888 MB / 483.7 MB, free: 87.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.568e-05/0.6088, allocations: 480.7 kB / 484.1 MB, free: 86.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/0.6109, allocations: 1.68 MB / 485.8 MB, free: 84.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/0.6145, allocations: 8.673 MB / 494.5 MB, free: 73.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006486/0.621, allocations: 11.01 MB / 0.4936 GB, free: 59.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.346e-05/0.6211, allocations: 52 kB / 0.4937 GB, free: 59.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.03318/0.6543, allocations: 12.15 MB / 0.5056 GB, free: 47.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.6544, allocations: 75.94 kB / 0.5056 GB, free: 46.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.6545, allocations: 160 kB / 0.5058 GB, free: 46.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01903/0.6735, allocations: 9.73 MB / 0.5153 GB, free: 37.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003303/0.6768, allocations: 1.684 MB / 0.5169 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03315/0.7099, allocations: 21.48 MB / 0.5379 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005868/0.7158, allocations: 367.7 kB / 0.5383 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/0.717, allocations: 427.9 kB / 0.5387 GB, free: 12.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.002368/0.7194, allocations: 0.8181 MB / 0.5395 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/0.7207, allocations: 0.5983 MB / 0.54 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02736/0.748, allocations: 7.981 MB / 0.5478 GB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.452e-05/0.7481, allocations: 39.98 kB / 0.5479 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.086e-05/0.7481, allocations: 28 kB / 0.5479 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.937e-05/0.7482, allocations: 15.94 kB / 0.5479 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1894/0.9376, allocations: 24.53 MB / 0.5719 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/0.9377, allocations: 7.875 kB / 0.5719 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/0.9385, allocations: 291.2 kB / 0.5722 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0191/0.9576, allocations: 9.171 MB / 0.5811 GB, free: 102.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006524/0.9583, allocations: 67.58 kB / 0.5812 GB, free: 102.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02998/0.9883, allocations: 18.04 MB / 0.5988 GB, free: 94.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.9883, allocations: 20.08 kB / 0.5988 GB, free: 94.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03145/1.02, allocations: 9.877 MB / 0.6085 GB, free: 89.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.021, allocations: 0.5034 MB / 0.609 GB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009145/1.022, allocations: 68 kB / 0.609 GB, free: 89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/1.024, allocations: 72.02 kB / 0.6091 GB, free: 88.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/1.025, allocations: 322.4 kB / 0.6094 GB, free: 88.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/1.025, allocations: 75.98 kB / 0.6095 GB, free: 88.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002362/1.028, allocations: 2.007 MB / 0.6114 GB, free: 86.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.028, allocations: 0 / 0.6114 GB, free: 86.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007088/1.035, allocations: 2.459 MB / 0.6138 GB, free: 84.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006913/1.036, allocations: 235.6 kB / 0.6141 GB, free: 84.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01136/1.047, allocations: 7.831 MB / 0.6217 GB, free: 76.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.047, allocations: 0 / 0.6217 GB, free: 76.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007536/1.054, allocations: 4.141 MB / 0.6257 GB, free: 72.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003436/1.058, allocations: 0.6811 MB / 0.6264 GB, free: 71.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/1.076, allocations: 13.67 MB / 0.6398 GB, free: 57.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002174/1.078, allocations: 1.968 MB / 0.6417 GB, free: 55.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001809/1.08, allocations: 0.6595 MB / 0.6423 GB, free: 55.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009561/1.081, allocations: 0.7909 MB / 0.6431 GB, free: 54.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.695e-06/1.081, allocations: 0 / 0.6431 GB, free: 54.3 MB / 394.7 MB Notification: Performance of Templates: time 0.2574/1.338, allocations: 143.6 MB / 0.7833 GB, free: 66.55 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 6.132744881790131]