Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 254.1 MB, free: 15.09 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 47.92 kB / 373.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1063, allocations: 53.32 MB / 426.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2085/0.3148, allocations: 15.05 MB / 441.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009851/0.3247, allocations: 4.84 MB / 446.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003047/0.3277, allocations: 108.2 kB / 446.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007174/0.3349, allocations: 3.201 MB / 450 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007793/0.3427, allocations: 2.599 MB / 452.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.3453, allocations: 0.9854 MB / 453.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.3565, allocations: 7.041 MB / 460.6 MB, free: 9.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005892/0.3624, allocations: 3.706 MB / 464.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004648/0.3671, allocations: 2.252 MB / 466.6 MB, free: 5.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005817/0.3729, allocations: 3.514 MB / 470.1 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001572/0.3744, allocations: 484.5 kB / 470.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003685/0.3781, allocations: 1.536 MB / 472.1 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00391/0.382, allocations: 2.91 MB / 475 MB, free: 184 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005137/0.3872, allocations: 3.223 MB / 478.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01419/0.4014, allocations: 10.4 MB / 488.6 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4014, allocations: 0 / 488.6 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4014, allocations: 0 / 488.6 MB, free: 2.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002719/0.4016, allocations: 4 kB / 488.6 MB, free: 2.492 MB / 382.1 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.01684/0.4185, allocations: 7.428 MB / 496.1 MB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4185, allocations: 8.031 kB / 496.1 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0179/0.4364, allocations: 3.978 MB / 0.4883 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/0.4471, allocations: 4.131 MB / 0.4924 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005066/0.4476, allocations: 320.6 kB / 0.4927 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002903/0.4505, allocations: 435.6 kB / 0.4931 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03131/0.4818, allocations: 15.72 MB / 0.5084 GB, free: 1.395 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.482, allocations: 59.52 kB / 0.5085 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007357/0.4828, allocations: 207.8 kB / 0.5087 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006009/0.4888, allocations: 3.217 MB / 0.5118 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03178/0.5205, allocations: 14.12 MB / 0.5256 GB, free: 15.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08805/0.6086, allocations: 57.59 MB / 0.5819 GB, free: 4.672 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.015/0.6236, allocations: 6.258 MB / 0.588 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005294/0.6289, allocations: 3.337 MB / 0.5912 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02536/0.6542, allocations: 14.65 MB / 0.6055 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/0.6543, allocations: 56.56 kB / 0.6056 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=289): time 5.691e-06/0.6543, allocations: 0 / 0.6056 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of matching and sorting (n=339): time 0.3987/1.053, allocations: 42.65 MB / 0.6472 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/1.053, allocations: 217.7 kB / 0.6474 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0073/1.06, allocations: 5.478 MB / 0.6528 GB, free: 151 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008527/1.061, allocations: 74.55 kB / 0.6529 GB, free: 150.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002274/1.064, allocations: 4.53 MB / 0.6573 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001649/1.065, allocations: 1.314 MB / 0.6586 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002533/1.068, allocations: 1.861 MB / 0.6604 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.114e-05/1.068, allocations: 308.8 kB / 0.6607 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005926/1.074, allocations: 4.807 MB / 0.6654 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007413/1.081, allocations: 9.803 MB / 0.675 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/1.096, allocations: 15.57 MB / 0.6902 GB, free: 113.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/1.096, allocations: 52 kB / 0.6902 GB, free: 113.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04345/1.139, allocations: 19.56 MB / 0.7093 GB, free: 93.69 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/1.14, allocations: 80 kB / 0.7094 GB, free: 93.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000279/1.14, allocations: 172 kB / 0.7095 GB, free: 93.44 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02327/1.163, allocations: 5.937 MB / 0.7153 GB, free: 87.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007564/1.171, allocations: 2.113 MB / 0.7174 GB, free: 85.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02872/1.199, allocations: 26.15 MB / 0.7429 GB, free: 58.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009263/1.209, allocations: 0.5658 MB / 0.7435 GB, free: 58.39 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002419/1.211, allocations: 0.5115 MB / 0.744 GB, free: 57.89 MB / 0.5137 GB 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 (1098): * Single equations (assignments): 1090 * 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.007141/1.218, allocations: 3.088 MB / 0.747 GB, free: 54.79 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001762/1.22, allocations: 0.5161 MB / 0.7475 GB, free: 54.27 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03113/1.251, allocations: 12.9 MB / 0.7601 GB, free: 41.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.279e-05/1.251, allocations: 56.86 kB / 0.7602 GB, free: 41.25 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/1.251, allocations: 12 kB / 0.7602 GB, free: 41.23 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.375e-05/1.251, allocations: 15.94 kB / 0.7602 GB, free: 41.22 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05084/1.302, allocations: 24.48 MB / 0.7841 GB, free: 16.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.917e-05/1.302, allocations: 5.406 kB / 0.7841 GB, free: 16.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.306, allocations: 0.5822 MB / 0.7847 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0205/1.326, allocations: 4.962 MB / 0.7895 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008578/1.327, allocations: 63.58 kB / 0.7896 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02864/1.356, allocations: 21.35 MB / 0.8104 GB, free: 5.008 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-05/1.356, allocations: 11.88 kB / 0.8104 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3102/1.666, allocations: 17.44 MB / 0.8275 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/1.668, allocations: 0.5586 MB / 0.828 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/1.669, allocations: 53.75 kB / 0.8281 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003195/1.672, allocations: 264.7 kB / 0.8283 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008711/1.673, allocations: 193.8 kB / 0.8285 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002944/1.673, allocations: 86.75 kB / 0.8286 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005388/1.678, allocations: 3.394 MB / 0.8319 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/1.678, allocations: 1.125 kB / 0.8319 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009293/1.688, allocations: 1.732 MB / 0.8336 GB, free: 156.9 MB / 0.5294 GB 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.0008161/1.689, allocations: 215.5 kB / 0.8338 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01741/1.706, allocations: 10.49 MB / 0.844 GB, free: 153 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.706, allocations: 0 / 0.844 GB, free: 153 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005031/1.711, allocations: 3.795 MB / 0.8478 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003868/1.715, allocations: 0.6052 MB / 0.8483 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02163/1.736, allocations: 16.23 MB / 0.8642 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004143/1.741, allocations: 4.612 MB / 0.8687 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005751/1.746, allocations: 2.964 MB / 0.8716 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/1.748, allocations: 359.8 kB / 0.8719 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.533e-06/1.748, allocations: 0 / 0.8719 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.1092/1.857, allocations: 77.58 MB / 0.9477 GB, free: 60.87 MB / 0.5294 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.249638605862856]