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.001868/0.001868, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.002149/0.002149, allocations: 160.9 kB / 24.27 MB, free: 164 kB / 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 1.477/1.477, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.452e-06/1.452e-06, allocations: 0 / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.842e-05/2.988e-05, allocations: 5.125 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01764/0.01767, allocations: 13.03 MB / 285.2 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.0286, allocations: 4.628 MB / 289.8 MB, free: 64 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1449/0.1735, allocations: 112.5 kB / 290 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006879/0.1803, allocations: 3.271 MB / 293.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007072/0.1874, allocations: 2.699 MB / 295.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.1896, allocations: 1.112 MB / 297 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009601/0.1992, allocations: 7.818 MB / 304.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004713/0.204, allocations: 4.224 MB / 309.1 MB, free: 8.625 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005188/0.2092, allocations: 3.373 MB / 312.5 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00445/0.2136, allocations: 3.592 MB / 316 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.2149, allocations: 500 kB / 316.5 MB, free: 2.832 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.2176, allocations: 1.474 MB / 318 MB, free: 1.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003041/0.2207, allocations: 3.048 MB / 321.1 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004355/0.225, allocations: 1.86 MB / 322.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01524/0.2403, allocations: 10.57 MB / 333.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.084e-05/0.2403, allocations: 4 kB / 333.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2403, allocations: 0 / 333.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003647/0.2406, allocations: 0 / 333.5 MB, free: 2.547 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.0198/0.2604, allocations: 7.424 MB / 340.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.2605, allocations: 11.98 kB / 340.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01872/0.2792, allocations: 4.82 MB / 345.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01051/0.2897, allocations: 4.053 MB / 349.8 MB, free: 2.566 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003471/0.2901, allocations: 319.9 kB / 350.1 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001765/0.2918, allocations: 435.7 kB / 350.5 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03016/0.322, allocations: 15.89 MB / 366.4 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/0.3222, allocations: 59.47 kB / 366.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006208/0.3228, allocations: 205.4 kB / 366.7 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005461/0.3282, allocations: 3.226 MB / 369.9 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/0.3589, allocations: 14.19 MB / 384.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2402/0.5991, allocations: 54.11 MB / 438.2 MB, free: 83.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/0.613, allocations: 5.471 MB / 443.7 MB, free: 83.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004302/0.6173, allocations: 3.397 MB / 447.1 MB, free: 83.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01773/0.635, allocations: 12.5 MB / 459.6 MB, free: 78.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.635, allocations: 59.64 kB / 459.6 MB, free: 78.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 5.801e-06/0.635, allocations: 3.75 kB / 459.6 MB, free: 78.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.151/0.786, allocations: 50.65 MB / 0.4983 GB, free: 36.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.7861, allocations: 217.4 kB / 0.4985 GB, free: 35.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006055/0.7921, allocations: 5.353 MB / 0.5038 GB, free: 30.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007671/0.7929, allocations: 77.53 kB / 0.5038 GB, free: 30.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.7949, allocations: 4.501 MB / 0.5082 GB, free: 26.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/0.7961, allocations: 1.292 MB / 0.5095 GB, free: 25.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002193/0.7983, allocations: 1.829 MB / 0.5113 GB, free: 23.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.7983, allocations: 301.1 kB / 0.5116 GB, free: 23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005333/0.8037, allocations: 4.972 MB / 0.5164 GB, free: 18.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007095/0.8108, allocations: 9.981 MB / 0.5262 GB, free: 5.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0211/0.8319, allocations: 15.88 MB / 0.5417 GB, free: 3.543 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/0.832, allocations: 48 kB / 0.5417 GB, free: 3.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.05244/0.8845, allocations: 20.75 MB / 0.562 GB, free: 14.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.8846, allocations: 80 kB / 0.5621 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002426/0.8849, allocations: 172 kB / 0.5622 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02969/0.9146, allocations: 7.669 MB / 0.5697 GB, free: 6.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008391/0.9229, allocations: 2.121 MB / 0.5718 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2352/1.158, allocations: 27.41 MB / 0.5986 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007656/1.166, allocations: 0.6509 MB / 0.5992 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/1.167, allocations: 0.5045 MB / 0.5997 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.004956/1.172, allocations: 3.09 MB / 0.6027 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001432/1.174, allocations: 0.5622 MB / 0.6033 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02933/1.203, allocations: 13.73 MB / 0.6167 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.304e-05/1.203, allocations: 53.88 kB / 0.6167 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/1.203, allocations: 7.688 kB / 0.6167 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.007e-05/1.203, allocations: 15.94 kB / 0.6167 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04437/1.248, allocations: 23.65 MB / 0.6398 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-05/1.248, allocations: 4 kB / 0.6398 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00297/1.251, allocations: 0.5966 MB / 0.6404 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0216/1.272, allocations: 6.701 MB / 0.647 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006548/1.273, allocations: 59.98 kB / 0.647 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02338/1.296, allocations: 22.55 MB / 0.669 GB, free: 78.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.296, allocations: 11.94 kB / 0.669 GB, free: 78.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03262/1.329, allocations: 18.71 MB / 0.6873 GB, free: 60 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/1.33, allocations: 474.4 kB / 0.6878 GB, free: 59.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008703/1.331, allocations: 55.98 kB / 0.6878 GB, free: 59.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.334, allocations: 347.4 kB / 0.6882 GB, free: 59.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000783/1.335, allocations: 209.3 kB / 0.6884 GB, free: 59.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002816/1.335, allocations: 84 kB / 0.6884 GB, free: 59.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003554/1.339, allocations: 3.118 MB / 0.6915 GB, free: 55.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/1.339, allocations: 0 / 0.6915 GB, free: 55.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006787/1.345, allocations: 1.889 MB / 0.6933 GB, free: 54.11 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.0006575/1.346, allocations: 223.8 kB / 0.6935 GB, free: 53.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01288/1.359, allocations: 10.87 MB / 0.7041 GB, free: 43.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/1.359, allocations: 0 / 0.7041 GB, free: 43.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004618/1.364, allocations: 3.995 MB / 0.7081 GB, free: 39.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003276/1.367, allocations: 0.549 MB / 0.7086 GB, free: 38.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/1.387, allocations: 16.55 MB / 0.7247 GB, free: 21.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1246/1.511, allocations: 4.11 MB / 0.7288 GB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007758/1.519, allocations: 2.914 MB / 0.7316 GB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/1.521, allocations: 338.5 kB / 0.7319 GB, free: 138.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.893e-06/1.521, allocations: 0 / 0.7319 GB, free: 138.4 MB / 426.7 MB Notification: Performance of Templates: time 0.1051/1.626, allocations: 77.19 MB / 0.8073 GB, free: 86.93 MB / 426.7 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.058114129002206]