Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.0009503/0.0009503, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001252/0.002203, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009191/0.0009191, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001194/0.002113, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9492/0.9492, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08851/1.038, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.725e-05/1.871e-05, allocations: 5.266 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01041/0.01043, allocations: 14.21 MB / 259.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008709/0.01913, allocations: 4.957 MB / 264.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002458/0.02159, allocations: 107.5 kB / 264.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0045/0.02609, allocations: 3.235 MB / 267.5 MB, free: 7.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005624/0.03172, allocations: 2.679 MB / 270.2 MB, free: 4.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.03362, allocations: 1.01 MB / 271.2 MB, free: 3.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1305/0.1641, allocations: 7.284 MB / 278.5 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006436/0.1706, allocations: 3.778 MB / 282.3 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008561/0.1791, allocations: 4.217 MB / 286.5 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004931/0.1841, allocations: 3.383 MB / 289.9 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001565/0.1856, allocations: 487.9 kB / 290.3 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003409/0.189, allocations: 1.498 MB / 291.8 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003392/0.1924, allocations: 2.72 MB / 294.6 MB, free: 172 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003731/0.1961, allocations: 1.491 MB / 296.1 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008161/0.2043, allocations: 6.343 MB / 302.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-05/0.2043, allocations: 0 / 302.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2043, allocations: 0 / 302.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003251/0.2047, allocations: 3.938 kB / 302.4 MB, free: 11.49 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.01131/0.216, allocations: 7.841 MB / 310.2 MB, free: 4.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.216, allocations: 16.56 kB / 310.3 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004996/0.221, allocations: 1.81 MB / 312.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005089/0.2261, allocations: 2.806 MB / 314.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.2263, allocations: 324.6 kB / 315.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/0.2274, allocations: 428.5 kB / 315.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.2378, allocations: 7.325 MB / 322.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.238, allocations: 61.64 kB / 323 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/0.2384, allocations: 201.6 kB / 323.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00263/0.241, allocations: 2.874 MB / 326.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008347/0.2494, allocations: 3.932 MB / 330 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04194/0.2913, allocations: 43.37 MB / 373.4 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005605/0.2969, allocations: 2.543 MB / 375.9 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000974/0.2979, allocations: 0.7031 MB / 376.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009497/0.3074, allocations: 6.558 MB / 383.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.3074, allocations: 60.31 kB / 383.2 MB, free: 12.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 5.691e-06/0.3075, allocations: 0 / 383.2 MB, free: 12.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02241/0.3299, allocations: 9.163 MB / 392.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.3299, allocations: 166.2 kB / 392.6 MB, free: 2.855 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.3344, allocations: 4.333 MB / 396.9 MB, free: 15.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004292/0.3348, allocations: 69.7 kB / 397 MB, free: 15.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00227/0.3371, allocations: 4.343 MB / 401.3 MB, free: 11.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.3385, allocations: 1.16 MB / 402.5 MB, free: 9.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001778/0.3402, allocations: 1.665 MB / 404.1 MB, free: 8.312 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.3403, allocations: 308.9 kB / 404.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.3424, allocations: 1.252 MB / 405.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004815/0.3472, allocations: 6.264 MB / 411.9 MB, free: 14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007263/0.3545, allocations: 8.21 MB / 420.1 MB, free: 3.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/0.3547, allocations: 52 kB / 420.2 MB, free: 3.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.1492/0.5038, allocations: 6.43 MB / 426.6 MB, free: 115.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.5039, allocations: 86.41 kB / 426.7 MB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002247/0.5042, allocations: 181.7 kB / 426.9 MB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002242/0.5064, allocations: 0.8293 MB / 427.7 MB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/0.5113, allocations: 2.215 MB / 429.9 MB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004297/0.5156, allocations: 4.363 MB / 434.3 MB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004394/0.52, allocations: 365.4 kB / 434.7 MB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008435/0.5208, allocations: 446.4 kB / 435.1 MB, free: 113.1 MB / 394.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.002119/0.5229, allocations: 0.8316 MB / 435.9 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006437/0.5236, allocations: 325.6 kB / 436.2 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002978/0.5265, allocations: 2.102 MB / 438.3 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.493e-05/0.5266, allocations: 54.36 kB / 438.4 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.5266, allocations: 7.562 kB / 438.4 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.5266, allocations: 15.77 kB / 438.4 MB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00892/0.5355, allocations: 6.324 MB / 444.7 MB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5355, allocations: 4.562 kB / 444.7 MB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.537, allocations: 0.6966 MB / 445.4 MB, free: 112 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007534/0.5378, allocations: 441 kB / 445.9 MB, free: 112 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.5393, allocations: 0.5689 MB / 446.4 MB, free: 112 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001829/0.5395, allocations: 52.3 kB / 446.5 MB, free: 111.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002811/0.5423, allocations: 3.444 MB / 449.9 MB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.5423, allocations: 11 kB / 449.9 MB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.5462, allocations: 3.078 MB / 453 MB, free: 108.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000813/0.547, allocations: 54.67 kB / 453.1 MB, free: 108 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009839/0.548, allocations: 51.19 kB / 453.1 MB, free: 108 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/0.5482, allocations: 169.4 kB / 453.3 MB, free: 108 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.5483, allocations: 61.67 kB / 453.4 MB, free: 108 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001605/0.5499, allocations: 1.592 MB / 454.9 MB, free: 107.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5499, allocations: 0 / 454.9 MB, free: 107.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004668/0.5546, allocations: 1.565 MB / 456.5 MB, free: 107.6 MB / 394.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.00045/0.5551, allocations: 198.2 kB / 456.7 MB, free: 107.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004536/0.5596, allocations: 3.897 MB / 460.6 MB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002405/0.5598, allocations: 156.1 kB / 460.8 MB, free: 104.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.5609, allocations: 0.9616 MB / 461.7 MB, free: 103.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.5638, allocations: 1.195 MB / 462.9 MB, free: 102.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.5794, allocations: 11.59 MB / 474.5 MB, free: 91.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.5812, allocations: 1.821 MB / 476.3 MB, free: 89.99 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002586/0.5838, allocations: 0.7063 MB / 477 MB, free: 89.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/0.5853, allocations: 0.7374 MB / 477.8 MB, free: 88.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.794e-06/0.5853, allocations: 4 kB / 477.8 MB, free: 88.54 MB / 394.7 MB Notification: Performance of Templates: time 0.07629/0.6616, allocations: 51.6 MB / 0.517 GB, free: 37.43 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.108547277748585]