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.001866/0.001866, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.002125/0.002125, allocations: 153.1 kB / 24.26 MB, free: 156 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.494/1.494, allocations: 173.4 MB / 200.8 MB, free: 9.289 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.903e-06/1.903e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.028e-05, allocations: 2.312 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.02473/0.02476, allocations: 13.09 MB / 280.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01472/0.03948, allocations: 4.62 MB / 285 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004179/0.04366, allocations: 107.5 kB / 285.1 MB, free: 4.805 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.05391, allocations: 3.301 MB / 288.4 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1521/0.2061, allocations: 2.719 MB / 291.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002817/0.2089, allocations: 1.121 MB / 292.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.2193, allocations: 7.663 MB / 299.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005721/0.225, allocations: 4.234 MB / 304.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005401/0.2304, allocations: 3.39 MB / 307.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004823/0.2352, allocations: 3.596 MB / 311.2 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.2364, allocations: 499.8 kB / 311.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/0.239, allocations: 1.487 MB / 313.1 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.2411, allocations: 3.084 MB / 316.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002259/0.2434, allocations: 1.889 MB / 318.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/0.258, allocations: 10.65 MB / 328.8 MB, free: 9.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.258, allocations: 0 / 328.8 MB, free: 9.652 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.258, allocations: 0 / 328.8 MB, free: 9.652 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000387/0.2584, allocations: 0 / 328.8 MB, free: 9.652 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.02134/0.2798, allocations: 7.463 MB / 336.2 MB, free: 2.273 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.2798, allocations: 8.922 kB / 336.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01896/0.2988, allocations: 4.826 MB / 341.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.3105, allocations: 4.061 MB / 345.1 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004286/0.3109, allocations: 314 kB / 345.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/0.3132, allocations: 437.3 kB / 345.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.036/0.3492, allocations: 15.89 MB / 361.7 MB, free: 8.445 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000521/0.3497, allocations: 60.22 kB / 361.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002205/0.3519, allocations: 203.2 kB / 362 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006374/0.3583, allocations: 3.226 MB / 365.2 MB, free: 5.086 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.036/0.3942, allocations: 14.19 MB / 379.4 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09734/0.4916, allocations: 54.12 MB / 433.5 MB, free: 328 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1471/0.6387, allocations: 5.462 MB / 439 MB, free: 121.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005691/0.6444, allocations: 3.395 MB / 442.4 MB, free: 119.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/0.6659, allocations: 12.5 MB / 454.9 MB, free: 115.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.6659, allocations: 67.06 kB / 455 MB, free: 115.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 7.124e-06/0.6659, allocations: 1.281 kB / 455 MB, free: 115.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.1577/0.8236, allocations: 50.66 MB / 0.4938 GB, free: 70.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.95e-05/0.8237, allocations: 210 kB / 0.494 GB, free: 70.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007534/0.8313, allocations: 5.356 MB / 0.4992 GB, free: 65.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007604/0.832, allocations: 73.7 kB / 0.4993 GB, free: 65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002023/0.834, allocations: 4.506 MB / 0.5037 GB, free: 60.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001523/0.8356, allocations: 1.284 MB / 0.5049 GB, free: 59.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003708/0.8393, allocations: 1.837 MB / 0.5067 GB, free: 57.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.64e-05/0.8393, allocations: 305.1 kB / 0.507 GB, free: 57.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006081/0.8454, allocations: 4.972 MB / 0.5119 GB, free: 52.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009594/0.855, allocations: 9.986 MB / 0.5216 GB, free: 39.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01587/0.8709, allocations: 15.87 MB / 0.5371 GB, free: 21.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002097/0.8711, allocations: 48 kB / 0.5372 GB, free: 21.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.04422/0.9153, allocations: 20.75 MB / 0.5574 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002429/0.9155, allocations: 80 kB / 0.5575 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003415/0.9159, allocations: 172 kB / 0.5577 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1849/1.101, allocations: 7.662 MB / 0.5651 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00845/1.109, allocations: 2.116 MB / 0.5672 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03426/1.144, allocations: 27.44 MB / 0.594 GB, free: 109.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009177/1.153, allocations: 0.6505 MB / 0.5946 GB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/1.155, allocations: 0.5068 MB / 0.5951 GB, free: 109.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1089): * Single equations (assignments): 1081 * 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.007841/1.163, allocations: 3.105 MB / 0.5982 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003193/1.166, allocations: 0.554 MB / 0.5987 GB, free: 107.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0321/1.198, allocations: 13.73 MB / 0.6121 GB, free: 93.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.361e-05/1.198, allocations: 59.3 kB / 0.6122 GB, free: 93.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.249e-05/1.198, allocations: 11.94 kB / 0.6122 GB, free: 93.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.707e-05/1.198, allocations: 19.94 kB / 0.6122 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05217/1.25, allocations: 23.63 MB / 0.6353 GB, free: 69.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.878e-05/1.25, allocations: 4 kB / 0.6353 GB, free: 69.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003198/1.254, allocations: 0.6005 MB / 0.6359 GB, free: 69.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0223/1.276, allocations: 6.693 MB / 0.6424 GB, free: 62.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008461/1.277, allocations: 63.58 kB / 0.6425 GB, free: 62.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02569/1.302, allocations: 22.55 MB / 0.6645 GB, free: 39.97 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.302, allocations: 11.17 kB / 0.6645 GB, free: 39.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0357/1.338, allocations: 18.71 MB / 0.6828 GB, free: 21.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.34, allocations: 480.4 kB / 0.6832 GB, free: 21.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001766/1.341, allocations: 59.98 kB / 0.6833 GB, free: 21.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00418/1.346, allocations: 343.4 kB / 0.6836 GB, free: 20.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001327/1.347, allocations: 201.5 kB / 0.6838 GB, free: 20.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006585/1.348, allocations: 83.91 kB / 0.6839 GB, free: 20.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005241/1.353, allocations: 3.122 MB / 0.6869 GB, free: 17.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/1.353, allocations: 0 / 0.6869 GB, free: 17.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00908/1.362, allocations: 1.93 MB / 0.6888 GB, free: 15.45 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 (255): * Single equations (assignments): 247 * 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.001081/1.363, allocations: 229.7 kB / 0.689 GB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02058/1.384, allocations: 10.86 MB / 0.6996 GB, free: 4.383 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.384, allocations: 0 / 0.6996 GB, free: 4.383 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1182/1.502, allocations: 3.992 MB / 0.7035 GB, free: 119.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003712/1.505, allocations: 0.5458 MB / 0.7041 GB, free: 119.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02523/1.531, allocations: 16.56 MB / 0.7202 GB, free: 113.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004235/1.535, allocations: 4.115 MB / 0.7243 GB, free: 112.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005483/1.54, allocations: 2.916 MB / 0.7271 GB, free: 112.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/1.542, allocations: 332.2 kB / 0.7274 GB, free: 112.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/1.542, allocations: 0 / 0.7274 GB, free: 112.3 MB / 394.7 MB Notification: Performance of Templates: time 0.09625/1.638, allocations: 77.33 MB / 0.8029 GB, free: 41.97 MB / 394.7 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] 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.996550948009826]