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.00121/0.00121, allocations: 88.28 kB / 21.43 MB, free: 3.137 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.006916/0.006916, allocations: 156.7 kB / 24.7 MB, free: 8.895 MB / 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 0.8904/0.8904, allocations: 177 MB / 204.9 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] 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 3.236e-06/3.236e-06, allocations: 4 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.118e-05/3.442e-05, allocations: 8.891 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01054/0.01058, allocations: 13.03 MB / 338.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008763/0.01934, allocations: 4.635 MB / 343.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002624/0.02197, allocations: 111.5 kB / 343.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004519/0.02649, allocations: 3.231 MB / 346.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005834/0.03232, allocations: 2.679 MB / 349.5 MB, free: 7.613 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.03424, allocations: 1.103 MB / 350.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008385/0.04262, allocations: 7.806 MB / 358.4 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005179/0.0478, allocations: 4.101 MB / 362.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005947/0.05375, allocations: 3.375 MB / 365.9 MB, free: 7.141 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004995/0.05875, allocations: 3.585 MB / 369.4 MB, free: 3.547 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.05996, allocations: 496 kB / 369.9 MB, free: 3.062 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.06223, allocations: 1.467 MB / 371.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00262/0.06485, allocations: 3.042 MB / 374.4 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.06704, allocations: 1.842 MB / 376.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009868/0.07691, allocations: 10.53 MB / 386.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.07691, allocations: 0 / 386.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.07692, allocations: 4 kB / 386.8 MB, free: 2.129 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003524/0.07727, allocations: 3.938 kB / 386.8 MB, free: 2.125 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01493/0.0922, allocations: 7.392 MB / 394.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.09226, allocations: 15.92 kB / 394.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009372/0.1016, allocations: 4.08 MB / 398.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007178/0.1088, allocations: 4.031 MB / 402.3 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.109, allocations: 328.3 kB / 402.6 MB, free: 2.137 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001478/0.1105, allocations: 432.2 kB / 403.1 MB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02111/0.1316, allocations: 15.81 MB / 418.9 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/0.1318, allocations: 63.5 kB / 418.9 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006214/0.1324, allocations: 203.8 kB / 419.1 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00306/0.1354, allocations: 3.212 MB / 422.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02169/0.1571, allocations: 14.11 MB / 436.5 MB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2227/0.3798, allocations: 53.77 MB / 490.2 MB, free: 70.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007892/0.3877, allocations: 5.541 MB / 495.8 MB, free: 68.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002861/0.3906, allocations: 3.341 MB / 499.1 MB, free: 67.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.4024, allocations: 12.24 MB / 0.4994 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.4025, allocations: 64.12 kB / 0.4994 GB, free: 56.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 6.853e-06/0.4025, allocations: 0 / 0.4994 GB, free: 56.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.07356/0.476, allocations: 43.51 MB / 0.5419 GB, free: 13.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.4761, allocations: 214 kB / 0.5421 GB, free: 13.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004508/0.4806, allocations: 5.378 MB / 0.5474 GB, free: 7.941 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005822/0.4812, allocations: 69.7 kB / 0.5474 GB, free: 7.867 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.4825, allocations: 4.516 MB / 0.5518 GB, free: 3.516 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009759/0.4835, allocations: 1.299 MB / 0.5531 GB, free: 2.234 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/0.4851, allocations: 1.832 MB / 0.5549 GB, free: 400 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.623e-05/0.4851, allocations: 301.1 kB / 0.5552 GB, free: 96 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005102/0.4902, allocations: 4.801 MB / 0.5599 GB, free: 11.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007892/0.4981, allocations: 9.836 MB / 0.5695 GB, free: 14.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/0.5118, allocations: 15.56 MB / 0.5847 GB, free: 12.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000155/0.512, allocations: 55.88 kB / 0.5847 GB, free: 12.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.0288/0.5408, allocations: 19.48 MB / 0.6038 GB, free: 9.379 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.211e-05/0.5409, allocations: 76 kB / 0.6038 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/0.541, allocations: 180.1 kB / 0.604 GB, free: 9.129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/0.5529, allocations: 5.927 MB / 0.6098 GB, free: 3.191 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/0.5577, allocations: 2.106 MB / 0.6119 GB, free: 1.082 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.172/0.7296, allocations: 25.72 MB / 0.637 GB, free: 142.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005173/0.7348, allocations: 0.6144 MB / 0.6376 GB, free: 142.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007519/0.7356, allocations: 0.51 MB / 0.6381 GB, free: 142.7 MB / 474.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.003534/0.7391, allocations: 3.094 MB / 0.6411 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007227/0.7398, allocations: 479 kB / 0.6415 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/0.7553, allocations: 12.87 MB / 0.6541 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.865e-05/0.7554, allocations: 50.81 kB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.7554, allocations: 8 kB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/0.7554, allocations: 19.94 kB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02504/0.7805, allocations: 22.31 MB / 0.676 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.7805, allocations: 4 kB / 0.676 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.7822, allocations: 0.5839 MB / 0.6765 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009301/0.7915, allocations: 4.964 MB / 0.6814 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004393/0.7919, allocations: 55.98 kB / 0.6814 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/0.8066, allocations: 20.94 MB / 0.7019 GB, free: 82.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.8066, allocations: 7.938 kB / 0.7019 GB, free: 82.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02924/0.8358, allocations: 17.39 MB / 0.7189 GB, free: 65.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/0.8373, allocations: 476.6 kB / 0.7193 GB, free: 64.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/0.8383, allocations: 59.67 kB / 0.7194 GB, free: 64.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002052/0.8404, allocations: 308.6 kB / 0.7197 GB, free: 64.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006747/0.841, allocations: 204 kB / 0.7199 GB, free: 64.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002123/0.8412, allocations: 91.66 kB / 0.72 GB, free: 64.17 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004186/0.8454, allocations: 3.126 MB / 0.723 GB, free: 61.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8454, allocations: 0 / 0.723 GB, free: 61.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006931/0.8524, allocations: 1.858 MB / 0.7248 GB, free: 59.2 MB / 474.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.0008033/0.8532, allocations: 225 kB / 0.7251 GB, free: 58.98 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01097/0.8641, allocations: 10.48 MB / 0.7353 GB, free: 48.53 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.8641, allocations: 0.75 kB / 0.7353 GB, free: 48.53 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003792/0.8679, allocations: 3.8 MB / 0.739 GB, free: 44.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/0.8707, allocations: 0.5227 MB / 0.7395 GB, free: 44.21 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/0.8892, allocations: 16.81 MB / 0.7559 GB, free: 27.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/0.8928, allocations: 4.098 MB / 0.7599 GB, free: 23.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/0.8944, allocations: 404.4 kB / 0.7603 GB, free: 22.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.282e-06/0.8944, allocations: 4 kB / 0.7603 GB, free: 22.76 MB / 474.7 MB Notification: Performance of Templates: time 0.2665/1.161, allocations: 151.3 MB / 0.9081 GB, free: 51.27 MB / 490.7 MB " [Timeout remaining time 659] 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: 10.494854039512575]