Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001762/0.001762, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.00202/0.00202, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 63.89 kB / 379 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.27, allocations: 53.37 MB / 432.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01868/0.2887, allocations: 15.95 MB / 448.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.3003, allocations: 5.173 MB / 453.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003703/0.304, allocations: 139.2 kB / 453.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009178/0.3132, allocations: 4.505 MB / 458.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007351/0.3205, allocations: 2.579 MB / 460.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002906/0.3234, allocations: 1.147 MB / 461.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01339/0.3368, allocations: 8.133 MB / 470 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006746/0.3435, allocations: 3.949 MB / 474 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005838/0.3494, allocations: 2.512 MB / 476.5 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006658/0.356, allocations: 3.61 MB / 480.1 MB, free: 7.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002043/0.3581, allocations: 0.5039 MB / 480.6 MB, free: 6.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.3623, allocations: 1.541 MB / 482.2 MB, free: 5.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004321/0.3666, allocations: 3.027 MB / 485.2 MB, free: 1.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005719/0.3723, allocations: 3.321 MB / 488.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.387, allocations: 10.35 MB / 498.8 MB, free: 4.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.387, allocations: 4 kB / 498.9 MB, free: 4.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.387, allocations: 0 / 498.9 MB, free: 4.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000315/0.3873, allocations: 0 / 498.9 MB, free: 4.25 MB / 398.1 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.01938/0.4067, allocations: 7.754 MB / 0.4947 GB, free: 12.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.4067, allocations: 8.031 kB / 0.4947 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01474/0.4215, allocations: 3.335 MB / 0.498 GB, free: 9.066 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.4324, allocations: 4.673 MB / 0.5026 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.4327, allocations: 333.1 kB / 0.5029 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001766/0.4345, allocations: 483.6 kB / 0.5033 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02772/0.4622, allocations: 14.57 MB / 0.5176 GB, free: 4.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002244/0.4624, allocations: 63.53 kB / 0.5176 GB, free: 3.941 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000736/0.4632, allocations: 211.8 kB / 0.5178 GB, free: 3.734 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005395/0.4686, allocations: 2.84 MB / 0.5206 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02734/0.4959, allocations: 13.21 MB / 0.5335 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2802/0.7761, allocations: 58.24 MB / 0.5904 GB, free: 51.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0158/0.7919, allocations: 6.943 MB / 0.5972 GB, free: 44.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005979/0.7979, allocations: 4.593 MB / 0.6016 GB, free: 39.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01889/0.8168, allocations: 12.41 MB / 0.6138 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.8168, allocations: 68.64 kB / 0.6138 GB, free: 27.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.653e-06/0.8168, allocations: 0 / 0.6138 GB, free: 27.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.105/2.922, allocations: 411.4 MB / 1.016 GB, free: 147.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/2.922, allocations: 269.5 kB / 1.016 GB, free: 147.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006781/2.929, allocations: 5.456 MB / 1.021 GB, free: 142.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001696/2.931, allocations: 109.7 kB / 1.021 GB, free: 142.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002293/2.933, allocations: 4.079 MB / 1.025 GB, free: 139.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002673/2.936, allocations: 2.113 MB / 1.027 GB, free: 137.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004266/2.94, allocations: 2.187 MB / 1.029 GB, free: 135 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.376e-05/2.94, allocations: 301.1 kB / 1.03 GB, free: 134.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01294/2.953, allocations: 11.06 MB / 1.041 GB, free: 123.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01539/2.968, allocations: 15.25 MB / 1.055 GB, free: 106.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0297/2.998, allocations: 27.44 MB / 1.082 GB, free: 77.28 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00016/2.998, allocations: 40 kB / 1.082 GB, free: 77.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5952/3.593, allocations: 140.8 MB / 1.22 GB, free: 134.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/3.594, allocations: 73.2 kB / 1.22 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/3.594, allocations: 140 kB / 1.22 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07569/3.669, allocations: 34.7 MB / 1.254 GB, free: 99.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004934/3.674, allocations: 1.575 MB / 1.255 GB, free: 98.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5187/4.193, allocations: 203.2 MB / 1.454 GB, free: 99.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0129/4.206, allocations: 1.732 MB / 1.456 GB, free: 98.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00244/4.208, allocations: 0.5327 MB / 1.456 GB, free: 97.98 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.00662/4.215, allocations: 3.091 MB / 1.459 GB, free: 95.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/4.217, allocations: 0.6018 MB / 1.46 GB, free: 95.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6181/4.835, allocations: 136.4 MB / 1.593 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.96e-05/4.835, allocations: 54.97 kB / 1.593 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001337/4.835, allocations: 62.22 kB / 1.593 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001145/4.835, allocations: 23.91 kB / 1.593 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6018/5.437, allocations: 205.6 MB / 1.794 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.474e-05/5.437, allocations: 3.875 kB / 1.794 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/5.439, allocations: 328.8 kB / 1.794 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06995/5.509, allocations: 33.44 MB / 1.827 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001962/5.51, allocations: 96 kB / 1.827 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4493/5.96, allocations: 185.9 MB / 2.009 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/5.96, allocations: 9.328 kB / 2.009 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3166/6.276, allocations: 152.3 MB / 2.157 GB, free: 28.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/6.278, allocations: 0.5856 MB / 2.158 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002525/6.281, allocations: 96.98 kB / 2.158 GB, free: 27.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009274/6.29, allocations: 1.482 MB / 2.159 GB, free: 25.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003747/6.294, allocations: 0.5214 MB / 2.16 GB, free: 25.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008484/6.294, allocations: 144 kB / 2.16 GB, free: 25.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004458/6.299, allocations: 3.47 MB / 2.163 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.7e-07/6.299, allocations: 0 / 2.163 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01253/6.311, allocations: 3.843 MB / 2.167 GB, free: 17.99 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/6.313, allocations: 242.4 kB / 2.167 GB, free: 17.76 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2786/6.591, allocations: 32.74 MB / 2.199 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/6.591, allocations: 0 / 2.199 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0377/6.629, allocations: 19.6 MB / 2.219 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/6.635, allocations: 0.7734 MB / 2.219 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03579/6.67, allocations: 27.47 MB / 2.246 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006042/6.676, allocations: 5.099 MB / 2.251 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004058/6.68, allocations: 2.054 MB / 2.253 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007546/6.681, allocations: 307.4 kB / 2.253 GB, free: 141 MB / 0.5606 GB Notification: Performance of SimCode: time 1.272e-06/6.681, allocations: 0 / 2.253 GB, free: 141 MB / 0.5606 GB Notification: Performance of Templates: time 0.5679/7.249, allocations: 285.7 MB / 2.532 GB, free: 42.62 MB / 0.5606 GB " [Timeout remaining time 653] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 17.06464958563447]