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.001428/0.001428, allocations: 92.31 kB / 20.96 MB, free: 3.469 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.001653/0.001653, allocations: 157.7 kB / 24.26 MB, free: 172 kB / 18.57 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.455/1.455, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 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 1.893e-06/1.893e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.756e-05, allocations: 2.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01785/0.01788, allocations: 13.02 MB / 285.3 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.03037, allocations: 4.624 MB / 290 MB, free: 112 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002518/0.03288, allocations: 107.5 kB / 290.1 MB, free: 4 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1314/0.1643, allocations: 3.276 MB / 293.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007946/0.1722, allocations: 2.694 MB / 296 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0028/0.175, allocations: 1.115 MB / 297.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.1851, allocations: 7.816 MB / 305 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006127/0.1912, allocations: 4.225 MB / 309.2 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006548/0.1977, allocations: 3.368 MB / 312.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005043/0.2028, allocations: 3.598 MB / 316.2 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.2044, allocations: 500 kB / 316.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.2076, allocations: 1.468 MB / 318.1 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003688/0.2112, allocations: 3.045 MB / 321.2 MB, free: 14.53 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004621/0.2159, allocations: 1.854 MB / 323 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01655/0.2324, allocations: 10.57 MB / 333.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2324, allocations: 0 / 333.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2324, allocations: 0 / 333.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003977/0.2328, allocations: 4 kB / 333.6 MB, free: 2.613 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.02054/0.2534, allocations: 7.416 MB / 341 MB, free: 11.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.2534, allocations: 12.02 kB / 341 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01869/0.2721, allocations: 4.823 MB / 345.8 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/0.2834, allocations: 4.062 MB / 349.9 MB, free: 2.625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003993/0.2838, allocations: 319.5 kB / 350.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001922/0.2857, allocations: 432.1 kB / 350.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/0.3167, allocations: 15.89 MB / 366.5 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/0.3168, allocations: 67.55 kB / 366.6 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006629/0.3175, allocations: 203.3 kB / 366.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005676/0.3232, allocations: 3.222 MB / 370 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0312/0.3544, allocations: 14.19 MB / 384.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2511/0.6055, allocations: 54.11 MB / 438.3 MB, free: 83.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/0.6192, allocations: 5.474 MB / 443.8 MB, free: 83.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004699/0.6239, allocations: 3.389 MB / 447.2 MB, free: 83.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02204/0.6459, allocations: 12.49 MB / 459.7 MB, free: 78.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.646, allocations: 67.41 kB / 459.7 MB, free: 78.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 6.573e-06/0.646, allocations: 0 / 459.7 MB, free: 78.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.158/0.804, allocations: 50.66 MB / 0.4984 GB, free: 36.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.8041, allocations: 210 kB / 0.4986 GB, free: 36.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006274/0.8104, allocations: 5.353 MB / 0.5039 GB, free: 30.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008262/0.8112, allocations: 73.53 kB / 0.5039 GB, free: 30.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/0.8131, allocations: 4.504 MB / 0.5083 GB, free: 26.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001479/0.8146, allocations: 1.293 MB / 0.5096 GB, free: 25.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002486/0.8171, allocations: 1.829 MB / 0.5114 GB, free: 23.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.772e-05/0.8171, allocations: 305.1 kB / 0.5117 GB, free: 23.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00586/0.823, allocations: 4.98 MB / 0.5165 GB, free: 18.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009296/0.8323, allocations: 9.988 MB / 0.5263 GB, free: 5.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02398/0.8563, allocations: 15.86 MB / 0.5418 GB, free: 3.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002199/0.8565, allocations: 52 kB / 0.5418 GB, free: 3.566 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.05629/0.9128, allocations: 20.75 MB / 0.5621 GB, free: 14.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.9129, allocations: 80 kB / 0.5622 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003006/0.9132, allocations: 172 kB / 0.5623 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03046/0.9437, allocations: 7.673 MB / 0.5698 GB, free: 6.836 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008579/0.9523, allocations: 2.125 MB / 0.5719 GB, free: 4.703 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1878/1.14, allocations: 27.42 MB / 0.5987 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007848/1.148, allocations: 0.6488 MB / 0.5993 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001909/1.15, allocations: 0.5118 MB / 0.5998 GB, free: 137.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1089): * Single equations (assignments): 1081 * 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.005534/1.155, allocations: 3.085 MB / 0.6028 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/1.157, allocations: 0.5645 MB / 0.6034 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03003/1.187, allocations: 13.73 MB / 0.6168 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.625e-05/1.187, allocations: 53.36 kB / 0.6168 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/1.187, allocations: 7.562 kB / 0.6168 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.967e-05/1.187, allocations: 19.72 kB / 0.6169 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04635/1.233, allocations: 23.65 MB / 0.6399 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.73e-05/1.234, allocations: 4 kB / 0.64 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/1.237, allocations: 0.5919 MB / 0.6405 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02203/1.259, allocations: 6.708 MB / 0.6471 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007427/1.259, allocations: 56 kB / 0.6471 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02406/1.284, allocations: 22.54 MB / 0.6691 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.284, allocations: 11.88 kB / 0.6692 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03351/1.317, allocations: 18.7 MB / 0.6874 GB, free: 60.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.318, allocations: 480.6 kB / 0.6879 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.319, allocations: 56 kB / 0.6879 GB, free: 59.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003095/1.323, allocations: 347.4 kB / 0.6883 GB, free: 59.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008039/1.323, allocations: 209.1 kB / 0.6885 GB, free: 59.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/1.324, allocations: 80 kB / 0.6885 GB, free: 59.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003701/1.327, allocations: 3.118 MB / 0.6916 GB, free: 56.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/1.327, allocations: 0 / 0.6916 GB, free: 56.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007124/1.334, allocations: 1.89 MB / 0.6934 GB, free: 54.23 MB / 426.7 MB 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 (255): * Single equations (assignments): 247 * 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.0008902/1.335, allocations: 232.8 kB / 0.6936 GB, free: 54.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01353/1.349, allocations: 10.86 MB / 0.7043 GB, free: 43.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/1.349, allocations: 0 / 0.7043 GB, free: 43.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005782/1.355, allocations: 3.995 MB / 0.7082 GB, free: 39.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004113/1.359, allocations: 0.5522 MB / 0.7087 GB, free: 38.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02448/1.383, allocations: 16.54 MB / 0.7249 GB, free: 21.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1366/1.52, allocations: 4.112 MB / 0.7289 GB, free: 138.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008687/1.529, allocations: 2.916 MB / 0.7317 GB, free: 138.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/1.531, allocations: 337.2 kB / 0.732 GB, free: 138.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/1.531, allocations: 0 / 0.732 GB, free: 138.3 MB / 426.7 MB Notification: Performance of Templates: time 0.1027/1.633, allocations: 77.2 MB / 0.8074 GB, free: 86.8 MB / 426.7 MB " [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: 7.937457149964757]