Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002381/0.002381, allocations: 99.86 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002529/0.002529, allocations: 149.1 kB / 24.26 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.921e-05/3.072e-05, allocations: 6.25 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01946/0.01949, allocations: 14.5 MB / 281.8 MB, free: 8.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.03112, allocations: 4.725 MB / 286.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002642/0.03376, allocations: 107.5 kB / 286.7 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1336/0.1674, allocations: 3.392 MB / 290 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006617/0.174, allocations: 2.726 MB / 292.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002321/0.1763, allocations: 1.119 MB / 293.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.1873, allocations: 7.665 MB / 301.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006002/0.1933, allocations: 4.248 MB / 305.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005733/0.1991, allocations: 3.397 MB / 309.2 MB, free: 9.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004818/0.2039, allocations: 3.635 MB / 312.8 MB, free: 8.125 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.2052, allocations: 495 kB / 313.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002902/0.2081, allocations: 1.493 MB / 314.8 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00204/0.2101, allocations: 3.092 MB / 317.9 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002195/0.2123, allocations: 1.884 MB / 319.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01374/0.2261, allocations: 10.63 MB / 330.4 MB, free: 8.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.2261, allocations: 0 / 330.4 MB, free: 8.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2261, allocations: 0 / 330.4 MB, free: 8.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000369/0.2264, allocations: 2.062 kB / 330.4 MB, free: 8.094 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.02091/0.2473, allocations: 8.586 MB / 339 MB, free: 15.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2474, allocations: 12.92 kB / 339 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01856/0.2659, allocations: 4.691 MB / 343.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.2771, allocations: 3.703 MB / 347.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003382/0.2775, allocations: 314.6 kB / 347.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/0.2789, allocations: 428.4 kB / 348.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0237/0.3026, allocations: 9.615 MB / 357.7 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.3028, allocations: 56.47 kB / 357.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006534/0.3034, allocations: 206.9 kB / 358 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005841/0.3093, allocations: 3.226 MB / 361.2 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02162/0.3309, allocations: 5.84 MB / 367.1 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2435/0.5744, allocations: 68.21 MB / 435.3 MB, free: 102.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.5855, allocations: 3.099 MB / 438.4 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002806/0.5883, allocations: 1.191 MB / 439.6 MB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01988/0.6082, allocations: 8.505 MB / 448.1 MB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.6082, allocations: 67.42 kB / 448.1 MB, free: 101.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 7.845e-06/0.6082, allocations: 2 kB / 448.1 MB, free: 101.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.09961/0.7078, allocations: 27.41 MB / 475.6 MB, free: 91.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.7079, allocations: 213.5 kB / 475.8 MB, free: 91.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007166/0.7151, allocations: 5.913 MB / 481.7 MB, free: 85.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007757/0.7159, allocations: 69.7 kB / 481.7 MB, free: 85.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002416/0.7183, allocations: 5.005 MB / 486.7 MB, free: 80.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001808/0.7201, allocations: 1.448 MB / 488.2 MB, free: 79.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003169/0.7233, allocations: 2.267 MB / 490.5 MB, free: 77.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.7233, allocations: 484.7 kB / 490.9 MB, free: 76.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003537/0.7269, allocations: 1.771 MB / 492.7 MB, free: 74.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005933/0.7328, allocations: 9.488 MB / 0.4904 GB, free: 62.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/0.7451, allocations: 12.36 MB / 0.5025 GB, free: 46.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002472/0.7454, allocations: 48 kB / 0.5025 GB, free: 46.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03805/0.7834, allocations: 12.56 MB / 0.5148 GB, free: 33.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.7835, allocations: 78.81 kB / 0.5149 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/0.7837, allocations: 176 kB / 0.515 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02411/0.8078, allocations: 4.921 MB / 0.5199 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006959/0.8148, allocations: 2.109 MB / 0.5219 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01907/0.8338, allocations: 9.931 MB / 0.5316 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007702/0.8415, allocations: 0.6164 MB / 0.5322 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001476/0.843, allocations: 0.5117 MB / 0.5327 GB, free: 15.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1094): * Single equations (assignments): 1086 * 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.003015/0.846, allocations: 0.9971 MB / 0.5337 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/0.8474, allocations: 0.5593 MB / 0.5342 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02656/0.8739, allocations: 7.356 MB / 0.5414 GB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.874, allocations: 52 kB / 0.5415 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/0.8741, allocations: 8 kB / 0.5415 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.319e-05/0.8741, allocations: 15.94 kB / 0.5415 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05257/0.9267, allocations: 17.2 MB / 0.5583 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/0.9267, allocations: 8 kB / 0.5583 GB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003328/0.9301, allocations: 0.5778 MB / 0.5589 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1511/1.081, allocations: 4.294 MB / 0.5631 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000688/1.082, allocations: 65.3 kB / 0.5631 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01641/1.098, allocations: 8.572 MB / 0.5715 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.098, allocations: 8.078 kB / 0.5715 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02692/1.125, allocations: 8.613 MB / 0.5799 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/1.127, allocations: 473.8 kB / 0.5804 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007695/1.127, allocations: 54.78 kB / 0.5804 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/1.13, allocations: 312.1 kB / 0.5807 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007726/1.131, allocations: 200.7 kB / 0.5809 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002835/1.132, allocations: 84.41 kB / 0.581 GB, free: 105.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003381/1.135, allocations: 2.419 MB / 0.5833 GB, free: 105.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/1.135, allocations: 0 / 0.5833 GB, free: 105.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006647/1.142, allocations: 1.899 MB / 0.5852 GB, free: 105.1 MB / 394.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 (254): * Single equations (assignments): 246 * 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.0006059/1.142, allocations: 231.5 kB / 0.5854 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009958/1.152, allocations: 6.313 MB / 0.5916 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/1.152, allocations: 0 / 0.5916 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003448/1.156, allocations: 2.077 MB / 0.5936 GB, free: 103.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.159, allocations: 0.5506 MB / 0.5941 GB, free: 102.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/1.175, allocations: 12.66 MB / 0.6065 GB, free: 94.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003466/1.179, allocations: 3.706 MB / 0.6101 GB, free: 91.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004755/1.184, allocations: 2.373 MB / 0.6124 GB, free: 89.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/1.185, allocations: 336.4 kB / 0.6128 GB, free: 89.32 MB / 394.7 MB Notification: Performance of SimCode: time 1.613e-06/1.185, allocations: 4 kB / 0.6128 GB, free: 89.32 MB / 394.7 MB Notification: Performance of Templates: time 0.09601/1.281, allocations: 75 MB / 0.686 GB, free: 14.72 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.8911282130284235]