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.001009/0.001009, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001053/0.001053, allocations: 153.2 kB / 25.6 MB, free: 8.922 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.9431/0.9431, allocations: 173.4 MB / 202.2 MB, free: 8.289 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.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.984e-06/1.984e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.624e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01582/0.01584, allocations: 14.1 MB / 283.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.02755, allocations: 4.711 MB / 288 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003263/0.03081, allocations: 107.5 kB / 288.1 MB, free: 6.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005777/0.03659, allocations: 3.359 MB / 291.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007138/0.04373, allocations: 2.733 MB / 294.2 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.04599, allocations: 1.119 MB / 295.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.05599, allocations: 7.687 MB / 303 MB, free: 7.844 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006437/0.06243, allocations: 4.243 MB / 307.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009677/0.0721, allocations: 4.456 MB / 311.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006714/0.07882, allocations: 3.574 MB / 315.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001822/0.08064, allocations: 488 kB / 315.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003636/0.08428, allocations: 1.475 MB / 317.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004014/0.08829, allocations: 3.097 MB / 320.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004397/0.09269, allocations: 1.869 MB / 322.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.105, allocations: 6.939 MB / 329.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.105, allocations: 0 / 329.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.105, allocations: 0 / 329.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003563/0.1053, allocations: 4 kB / 329.1 MB, free: 13.58 MB / 314.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.01342/0.1188, allocations: 7.424 MB / 336.6 MB, free: 6.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1188, allocations: 12.03 kB / 336.6 MB, free: 6.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007699/0.1265, allocations: 2.779 MB / 339.4 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005294/0.1318, allocations: 3.066 MB / 342.4 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1215/0.2532, allocations: 316.1 kB / 342.7 MB, free: 52.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.2546, allocations: 425.4 kB / 343.2 MB, free: 52.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.2666, allocations: 8.075 MB / 351.2 MB, free: 48.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.2667, allocations: 62.27 kB / 351.3 MB, free: 48.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004935/0.2672, allocations: 203.6 kB / 351.5 MB, free: 48.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002831/0.27, allocations: 2.856 MB / 354.3 MB, free: 48.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008525/0.2786, allocations: 3.945 MB / 358.3 MB, free: 48.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03298/0.3115, allocations: 59.26 MB / 417.5 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005695/0.3172, allocations: 2.576 MB / 420.1 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.3184, allocations: 0.8558 MB / 421 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009133/0.3275, allocations: 6.918 MB / 427.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.3275, allocations: 63.38 kB / 428 MB, free: 15.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=269): time 3.527e-06/0.3275, allocations: 0 / 428 MB, free: 15.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=300): time 0.0239/0.3514, allocations: 10.3 MB / 438.3 MB, free: 5.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.3515, allocations: 217.1 kB / 438.5 MB, free: 5.578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.3559, allocations: 4.832 MB / 443.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.356, allocations: 68.75 kB / 443.4 MB, free: 1.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002277/0.3583, allocations: 4.862 MB / 448.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008713/0.3592, allocations: 1.226 MB / 449.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002042/0.3612, allocations: 1.939 MB / 451.4 MB, free: 10.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3613, allocations: 483 kB / 451.9 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/0.363, allocations: 1.025 MB / 452.9 MB, free: 8.531 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/0.3684, allocations: 8.771 MB / 461.7 MB, free: 12.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00846/0.3768, allocations: 10.61 MB / 472.3 MB, free: 15.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-05/0.3769, allocations: 52 kB / 472.3 MB, free: 15.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.009912/0.3868, allocations: 7.549 MB / 479.9 MB, free: 7.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.483e-05/0.3869, allocations: 84 kB / 480 MB, free: 7.367 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.387, allocations: 180 kB / 480.1 MB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.3893, allocations: 0.8384 MB / 481 MB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/0.3926, allocations: 1.977 MB / 483 MB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.155/0.5476, allocations: 5.562 MB / 488.5 MB, free: 101.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004942/0.5525, allocations: 370.9 kB / 488.9 MB, free: 101.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000671/0.5532, allocations: 448.4 kB / 489.3 MB, free: 101.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002234/0.5555, allocations: 0.8714 MB / 490.2 MB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009566/0.5564, allocations: 0.5505 MB / 490.7 MB, free: 101.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004273/0.5607, allocations: 2.419 MB / 493.2 MB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.773e-05/0.5607, allocations: 53.47 kB / 493.2 MB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5607, allocations: 6.312 kB / 493.2 MB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.5608, allocations: 10.97 kB / 493.2 MB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.5715, allocations: 7.136 MB / 0.4886 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.5715, allocations: 6.469 kB / 0.4886 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.5726, allocations: 403.1 kB / 0.489 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/0.5743, allocations: 0.5749 MB / 0.4896 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.5744, allocations: 54.53 kB / 0.4896 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/0.5775, allocations: 4.585 MB / 0.4941 GB, free: 96.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5775, allocations: 7.938 kB / 0.4941 GB, free: 96.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.5822, allocations: 3.688 MB / 0.4977 GB, free: 95.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006822/0.5829, allocations: 458.2 kB / 0.4982 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/0.5833, allocations: 51.22 kB / 0.4982 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.5843, allocations: 51.59 kB / 0.4983 GB, free: 95.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.5846, allocations: 177.7 kB / 0.4984 GB, free: 95.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/0.5847, allocations: 68.19 kB / 0.4985 GB, free: 95.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001769/0.5865, allocations: 1.91 MB / 0.5004 GB, free: 95.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5865, allocations: 0 / 0.5004 GB, free: 95.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004731/0.5912, allocations: 1.585 MB / 0.5019 GB, free: 95.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004062/0.5916, allocations: 228.1 kB / 0.5021 GB, free: 94.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005304/0.5969, allocations: 4.328 MB / 0.5063 GB, free: 94.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.597, allocations: 6.781 kB / 0.5064 GB, free: 94.63 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.5982, allocations: 1.17 MB / 0.5075 GB, free: 94.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.6, allocations: 0.5335 MB / 0.508 GB, free: 94.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.6127, allocations: 11.5 MB / 0.5193 GB, free: 86.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.614, allocations: 1.831 MB / 0.521 GB, free: 85.11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001771/0.6158, allocations: 0.7075 MB / 0.5217 GB, free: 84.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/0.6169, allocations: 0.7854 MB / 0.5225 GB, free: 83.86 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6169, allocations: 0 / 0.5225 GB, free: 83.86 MB / 394.7 MB Notification: Performance of Templates: time 0.06549/0.6824, allocations: 52.2 MB / 0.5735 GB, free: 33.1 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.685782189015299]