Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0009327/0.0009327, allocations: 84 kB / 21.43 MB, free: 3.121 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.00493/0.00493, allocations: 150 kB / 24.68 MB, free: 8.91 MB / 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 0.8792/0.8792, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.004e-05/4.264e-05, allocations: 6.281 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0115/0.01154, allocations: 13.8 MB / 333.5 MB, free: 8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.02157, allocations: 4.94 MB / 338.4 MB, free: 3.043 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003365/0.02494, allocations: 135.2 kB / 338.6 MB, free: 2.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005945/0.03088, allocations: 4.551 MB / 343.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007432/0.03832, allocations: 2.705 MB / 345.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002723/0.04104, allocations: 1.271 MB / 347.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009788/0.05083, allocations: 8.959 MB / 356 MB, free: 1.367 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005633/0.05646, allocations: 5.062 MB / 361.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006155/0.06261, allocations: 3.816 MB / 364.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005509/0.06812, allocations: 3.749 MB / 368.7 MB, free: 4.641 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001326/0.06945, allocations: 0.5195 MB / 369.2 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002608/0.07206, allocations: 1.467 MB / 370.7 MB, free: 2.652 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003258/0.07532, allocations: 3.206 MB / 373.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00302/0.07834, allocations: 2.021 MB / 375.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.08956, allocations: 10.57 MB / 386.5 MB, free: 2.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.08957, allocations: 0 / 386.5 MB, free: 2.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.08957, allocations: 0 / 386.5 MB, free: 2.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004075/0.08998, allocations: 0 / 386.5 MB, free: 2.805 MB / 346.7 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.01568/0.1057, allocations: 7.819 MB / 394.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.1057, allocations: 12.92 kB / 394.3 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008145/0.1138, allocations: 3.343 MB / 397.6 MB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008087/0.1219, allocations: 4.669 MB / 402.3 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.1222, allocations: 333.1 kB / 402.6 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001443/0.1236, allocations: 468 kB / 403.1 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02262/0.1462, allocations: 14.64 MB / 417.7 MB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000306/0.1465, allocations: 75.47 kB / 417.8 MB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/0.1482, allocations: 215.8 kB / 418 MB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00337/0.1515, allocations: 2.836 MB / 420.9 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02021/0.1717, allocations: 13.16 MB / 434 MB, free: 2.102 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2124/0.3842, allocations: 54.42 MB / 488.4 MB, free: 78.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009897/0.3941, allocations: 7.103 MB / 495.5 MB, free: 76.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003752/0.3978, allocations: 4.589 MB / 0.4884 GB, free: 73.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01273/0.4105, allocations: 11.84 MB / 0.5 GB, free: 61.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.4106, allocations: 64.7 kB / 0.5 GB, free: 61.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 6.271e-06/0.4106, allocations: 0 / 0.5 GB, free: 61.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.217/1.628, allocations: 413.7 MB / 0.904 GB, free: 69.21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/1.628, allocations: 265.2 kB / 0.9043 GB, free: 68.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005983/1.634, allocations: 5.228 MB / 0.9094 GB, free: 64.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001772/1.636, allocations: 117.6 kB / 0.9095 GB, free: 63.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001594/1.637, allocations: 4.093 MB / 0.9135 GB, free: 60.75 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002349/1.639, allocations: 2.06 MB / 0.9155 GB, free: 58.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00357/1.643, allocations: 2.168 MB / 0.9176 GB, free: 56.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 3.174e-05/1.643, allocations: 309 kB / 0.9179 GB, free: 56.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01003/1.653, allocations: 11.06 MB / 0.9287 GB, free: 45.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01228/1.665, allocations: 15.31 MB / 0.9437 GB, free: 27.88 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2008/1.866, allocations: 27.45 MB / 0.9705 GB, free: 144.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.866, allocations: 41.06 kB / 0.9705 GB, free: 144.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.1878/2.054, allocations: 140.7 MB / 1.108 GB, free: 21.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.235e-05/2.054, allocations: 65 kB / 1.108 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001478/2.054, allocations: 140 kB / 1.108 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2156/2.27, allocations: 34.67 MB / 1.142 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/2.273, allocations: 1.566 MB / 1.143 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3313/2.605, allocations: 201 MB / 1.34 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008847/2.613, allocations: 1.8 MB / 1.342 GB, free: 117.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002058/2.615, allocations: 0.5397 MB / 1.342 GB, free: 117.9 MB / 474.7 MB 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.006558/2.622, allocations: 3.085 MB / 1.345 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00179/2.624, allocations: 0.5505 MB / 1.346 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3631/2.987, allocations: 136.3 MB / 1.479 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/2.987, allocations: 58.56 kB / 1.479 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001963/2.987, allocations: 58.19 kB / 1.479 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001246/2.987, allocations: 26.47 kB / 1.479 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.399/3.386, allocations: 201.7 MB / 1.676 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.679e-05/3.386, allocations: 9.5 kB / 1.676 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/3.387, allocations: 327.2 kB / 1.676 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04332/3.431, allocations: 33.4 MB / 1.709 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001491/3.432, allocations: 100 kB / 1.709 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3524/3.785, allocations: 183.8 MB / 1.888 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/3.785, allocations: 11.84 kB / 1.888 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3872/4.172, allocations: 152.1 MB / 2.037 GB, free: 137.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/4.173, allocations: 0.572 MB / 2.037 GB, free: 137.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002451/4.176, allocations: 104.8 kB / 2.038 GB, free: 137.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006729/4.183, allocations: 1.559 MB / 2.039 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003984/4.187, allocations: 0.5152 MB / 2.04 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00131/4.188, allocations: 149.1 kB / 2.04 GB, free: 136.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004227/4.192, allocations: 3.166 MB / 2.043 GB, free: 134.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.4e-07/4.192, allocations: 0 / 2.043 GB, free: 134.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01548/4.208, allocations: 4.113 MB / 2.047 GB, free: 130.8 MB / 490.7 MB 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.002131/4.21, allocations: 278.6 kB / 2.047 GB, free: 130.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03817/4.248, allocations: 32.72 MB / 2.079 GB, free: 97.85 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/4.248, allocations: 0 / 2.079 GB, free: 97.85 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02497/4.273, allocations: 19.56 MB / 2.098 GB, free: 78.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005417/4.278, allocations: 0.7057 MB / 2.099 GB, free: 77.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/4.311, allocations: 27.92 MB / 2.126 GB, free: 49.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006004/4.317, allocations: 4.584 MB / 2.131 GB, free: 45.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/4.318, allocations: 332.4 kB / 2.131 GB, free: 44.74 MB / 490.7 MB Notification: Performance of SimCode: time 1.674e-06/4.318, allocations: 0 / 2.131 GB, free: 44.74 MB / 490.7 MB Notification: Performance of Templates: time 0.5749/4.893, allocations: 257.9 MB / 2.383 GB, free: 161.3 MB / 0.5105 GB " [Timeout remaining time 655] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 19.238179209642112]