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.001009/0.001009, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001477/0.001477, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9777/0.9777, allocations: 177.1 MB / 205 MB, free: 5.645 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.693e-06/1.693e-06, allocations: 0 / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.84e-05/3.01e-05, allocations: 2.312 kB / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01395/0.01398, allocations: 14.53 MB / 287.5 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1323/0.1463, allocations: 4.74 MB / 292.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001925/0.1482, allocations: 109.9 kB / 292.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004135/0.1523, allocations: 3.392 MB / 295.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004137/0.1565, allocations: 2.699 MB / 298.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.158, allocations: 1.115 MB / 299.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006387/0.1644, allocations: 7.809 MB / 307.4 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003851/0.1682, allocations: 4.244 MB / 311.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003874/0.1721, allocations: 3.381 MB / 315 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.1755, allocations: 3.633 MB / 318.6 MB, free: 2.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000943/0.1764, allocations: 492 kB / 319.1 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1782, allocations: 1.472 MB / 320.6 MB, free: 348 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.18, allocations: 3.066 MB / 323.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001968/0.182, allocations: 1.85 MB / 325.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005801/0.1878, allocations: 6.881 MB / 332.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1878, allocations: 4 kB / 332.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1878, allocations: 0 / 332.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002693/0.188, allocations: 0 / 332.4 MB, free: 5.012 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.01009/0.1981, allocations: 7.922 MB / 340.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1982, allocations: 12.03 kB / 340.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008879/0.2071, allocations: 4.688 MB / 345 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004872/0.2119, allocations: 3.654 MB / 348.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.2121, allocations: 323.5 kB / 349 MB, free: 4.578 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005675/0.2126, allocations: 436.2 kB / 349.4 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.224, allocations: 8.996 MB / 358.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/0.2241, allocations: 63.45 kB / 358.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004254/0.2245, allocations: 204.3 kB / 358.6 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003051/0.2276, allocations: 3.214 MB / 361.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.2379, allocations: 5.206 MB / 367.1 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0421/0.28, allocations: 60.08 MB / 427.1 MB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006249/0.2863, allocations: 3.038 MB / 430.2 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1283/0.4146, allocations: 1.17 MB / 431.4 MB, free: 112.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.4273, allocations: 8.26 MB / 439.6 MB, free: 111 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.4273, allocations: 68.8 kB / 439.7 MB, free: 111 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 4.819e-06/0.4273, allocations: 3.281 kB / 439.7 MB, free: 111 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.05201/0.4793, allocations: 27.19 MB / 466.9 MB, free: 101.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.4794, allocations: 210 kB / 467.1 MB, free: 101 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/0.483, allocations: 4.713 MB / 471.8 MB, free: 96.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002595/0.4832, allocations: 73.7 kB / 471.9 MB, free: 96.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.4846, allocations: 4.733 MB / 476.6 MB, free: 91.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007443/0.4854, allocations: 1.346 MB / 477.9 MB, free: 90.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/0.487, allocations: 1.937 MB / 479.9 MB, free: 88.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.763e-05/0.487, allocations: 484.8 kB / 480.4 MB, free: 88.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/0.4892, allocations: 1.661 MB / 482 MB, free: 86.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003884/0.4931, allocations: 9.096 MB / 491.1 MB, free: 74.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0074/0.5005, allocations: 11.73 MB / 0.491 GB, free: 59.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.262e-05/0.5006, allocations: 48 kB / 0.4911 GB, free: 59.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.01974/0.5203, allocations: 12.32 MB / 0.5031 GB, free: 46.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.74e-05/0.5204, allocations: 78.34 kB / 0.5032 GB, free: 46.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/0.5205, allocations: 176 kB / 0.5034 GB, free: 46.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/0.5326, allocations: 4.867 MB / 0.5081 GB, free: 41.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/0.5363, allocations: 2.109 MB / 0.5102 GB, free: 39.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5475, allocations: 9.376 MB / 0.5193 GB, free: 30.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004895/0.5524, allocations: 0.611 MB / 0.5199 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007395/0.5531, allocations: 0.5117 MB / 0.5204 GB, free: 28.92 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.002026/0.5552, allocations: 0.8539 MB / 0.5213 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008378/0.556, allocations: 0.5632 MB / 0.5218 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/0.5701, allocations: 7.256 MB / 0.5289 GB, free: 20.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-05/0.5701, allocations: 51.94 kB / 0.5289 GB, free: 20.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.5701, allocations: 8 kB / 0.529 GB, free: 20.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.5702, allocations: 23.94 kB / 0.529 GB, free: 20.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02385/0.594, allocations: 15.75 MB / 0.5444 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/0.594, allocations: 8 kB / 0.5444 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.5956, allocations: 0.5771 MB / 0.5449 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/0.6067, allocations: 4.262 MB / 0.5491 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004053/0.6071, allocations: 57.17 kB / 0.5491 GB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.6175, allocations: 8.166 MB / 0.5571 GB, free: 6.598 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.6175, allocations: 7.938 kB / 0.5571 GB, free: 6.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1545/0.772, allocations: 8.341 MB / 0.5653 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.7731, allocations: 467 kB / 0.5657 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004923/0.7735, allocations: 59.34 kB / 0.5658 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.7752, allocations: 306.3 kB / 0.5661 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005175/0.7757, allocations: 207.2 kB / 0.5663 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/0.7759, allocations: 85.48 kB / 0.5663 GB, free: 105.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002913/0.7788, allocations: 2.008 MB / 0.5683 GB, free: 105.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7788, allocations: 0 / 0.5683 GB, free: 105.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006756/0.7855, allocations: 1.864 MB / 0.5701 GB, free: 105.2 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.0005571/0.7861, allocations: 229 kB / 0.5703 GB, free: 105.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008084/0.7942, allocations: 5.879 MB / 0.5761 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.7942, allocations: 7.188 kB / 0.5761 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/0.7966, allocations: 1.96 MB / 0.578 GB, free: 104.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.7988, allocations: 0.5361 MB / 0.5785 GB, free: 104.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/0.8135, allocations: 12.5 MB / 0.5907 GB, free: 99.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/0.815, allocations: 1.875 MB / 0.5926 GB, free: 99.11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003406/0.8184, allocations: 2.367 MB / 0.5949 GB, free: 97.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009217/0.8194, allocations: 339.6 kB / 0.5952 GB, free: 97.62 MB / 394.7 MB Notification: Performance of SimCode: time 1.834e-06/0.8194, allocations: 0 / 0.5952 GB, free: 97.62 MB / 394.7 MB Notification: Performance of Templates: time 0.07521/0.8946, allocations: 74.95 MB / 0.6684 GB, free: 25.16 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.972752341069281]