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.001359/0.001359, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001454/0.001454, allocations: 165.5 kB / 24.99 MB, free: 8.34 MB / 18.57 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 0.9739/0.9739, allocations: 177.1 MB / 205.3 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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 1.543e-06/1.543e-06, allocations: 0 / 273.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.27e-05/1.425e-05, allocations: 2.312 kB / 273.1 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.02417/0.02419, allocations: 14.47 MB / 287.5 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1076/0.1317, allocations: 4.734 MB / 292.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.1334, allocations: 107.7 kB / 292.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003811/0.1373, allocations: 3.388 MB / 295.8 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00369/0.1409, allocations: 2.69 MB / 298.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1422, allocations: 1.125 MB / 299.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00515/0.1473, allocations: 7.804 MB / 307.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002766/0.1501, allocations: 4.231 MB / 311.6 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.1528, allocations: 3.379 MB / 315 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.1553, allocations: 3.641 MB / 318.6 MB, free: 2.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004785/0.1558, allocations: 492 kB / 319.1 MB, free: 1.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.1571, allocations: 1.469 MB / 320.6 MB, free: 408 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001668/0.1588, allocations: 3.06 MB / 323.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.1605, allocations: 1.862 MB / 325.5 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004802/0.1653, allocations: 6.873 MB / 332.4 MB, free: 5.109 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1653, allocations: 0 / 332.4 MB, free: 5.109 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1653, allocations: 4 kB / 332.4 MB, free: 5.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.12e-05/0.1653, allocations: 0 / 332.4 MB, free: 5.105 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.008111/0.1735, allocations: 7.925 MB / 340.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1735, allocations: 12.03 kB / 340.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00904/0.1825, allocations: 4.689 MB / 345 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/0.1868, allocations: 3.654 MB / 348.7 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.187, allocations: 320.5 kB / 349 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005315/0.1875, allocations: 431.4 kB / 349.4 MB, free: 4.312 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009771/0.1973, allocations: 9.005 MB / 358.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.67e-05/0.1974, allocations: 59.47 kB / 358.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003878/0.1977, allocations: 203.4 kB / 358.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002846/0.2006, allocations: 3.218 MB / 361.9 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009048/0.2096, allocations: 5.214 MB / 367.1 MB, free: 1.605 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.2525, allocations: 60.07 MB / 427.2 MB, free: 4.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006726/0.2593, allocations: 3.057 MB / 430.2 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1146/0.3739, allocations: 1.165 MB / 431.4 MB, free: 117.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01353/0.3874, allocations: 8.252 MB / 439.6 MB, free: 116.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.052e-05/0.3875, allocations: 70.31 kB / 439.7 MB, free: 116.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 7.054e-06/0.3875, allocations: 0 / 439.7 MB, free: 116.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.05919/0.4467, allocations: 27.18 MB / 466.9 MB, free: 104.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.4467, allocations: 218 kB / 467.1 MB, free: 104.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004648/0.4514, allocations: 4.712 MB / 471.8 MB, free: 99.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006058/0.452, allocations: 72.2 kB / 471.9 MB, free: 99.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.4536, allocations: 4.738 MB / 476.6 MB, free: 94.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009341/0.4545, allocations: 1.347 MB / 477.9 MB, free: 93.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001624/0.4561, allocations: 1.927 MB / 479.9 MB, free: 91.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.993e-05/0.4562, allocations: 480.8 kB / 480.3 MB, free: 91.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002291/0.4585, allocations: 1.661 MB / 482 MB, free: 89.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004066/0.4625, allocations: 9.096 MB / 491.1 MB, free: 77.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008547/0.4711, allocations: 11.74 MB / 0.4911 GB, free: 62.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/0.4712, allocations: 52 kB / 0.4911 GB, free: 61.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02301/0.4942, allocations: 12.32 MB / 0.5031 GB, free: 49.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.321e-05/0.4943, allocations: 80 kB / 0.5032 GB, free: 49.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/0.4944, allocations: 172 kB / 0.5034 GB, free: 49.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01274/0.5072, allocations: 4.862 MB / 0.5081 GB, free: 44.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005237/0.5124, allocations: 2.109 MB / 0.5102 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.5245, allocations: 9.363 MB / 0.5193 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005226/0.5298, allocations: 0.616 MB / 0.5199 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/0.5311, allocations: 0.5155 MB / 0.5204 GB, free: 31.63 MB / 378.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.00274/0.5338, allocations: 0.86 MB / 0.5213 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/0.535, allocations: 0.5593 MB / 0.5218 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/0.5492, allocations: 7.254 MB / 0.5289 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-05/0.5492, allocations: 55.52 kB / 0.529 GB, free: 22.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.5493, allocations: 11.94 kB / 0.529 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.688e-05/0.5493, allocations: 19.94 kB / 0.529 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02605/0.5754, allocations: 15.75 MB / 0.5444 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-05/0.5754, allocations: 7.938 kB / 0.5444 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/0.5774, allocations: 0.5733 MB / 0.5449 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01099/0.5884, allocations: 4.273 MB / 0.5491 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006026/0.589, allocations: 63.77 kB / 0.5492 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.5999, allocations: 8.15 MB / 0.5571 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/0.5999, allocations: 8 kB / 0.5571 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1572/0.757, allocations: 8.352 MB / 0.5653 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/0.7589, allocations: 471.7 kB / 0.5657 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/0.7601, allocations: 54.52 kB / 0.5658 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/0.762, allocations: 309.4 kB / 0.5661 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00067/0.7627, allocations: 202.5 kB / 0.5663 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/0.7629, allocations: 86.19 kB / 0.5664 GB, free: 111.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002832/0.7658, allocations: 2.01 MB / 0.5683 GB, free: 111.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7658, allocations: 0 / 0.5683 GB, free: 111.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005919/0.7717, allocations: 1.866 MB / 0.5701 GB, free: 111.4 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 (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.0006803/0.7724, allocations: 226.3 kB / 0.5704 GB, free: 111.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008516/0.7809, allocations: 5.884 MB / 0.5761 GB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.7809, allocations: 0.7656 kB / 0.5761 GB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.7835, allocations: 1.956 MB / 0.578 GB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/0.7863, allocations: 0.5414 MB / 0.5786 GB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/0.8046, allocations: 12.51 MB / 0.5908 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/0.8063, allocations: 1.871 MB / 0.5926 GB, free: 102.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003797/0.8101, allocations: 2.37 MB / 0.5949 GB, free: 101.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009903/0.8111, allocations: 342.3 kB / 0.5952 GB, free: 101.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.434e-06/0.8111, allocations: 3.828 kB / 0.5952 GB, free: 101.3 MB / 394.7 MB Notification: Performance of Templates: time 0.08049/0.8916, allocations: 74.94 MB / 0.6684 GB, free: 27.59 MB / 394.7 MB " [Timeout remaining time 659] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] 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","",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.697167980950326]