Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008729/0.000873, allocations: 91.91 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 203.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002305, allocations: 4 kB / 307.7 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1115, allocations: 51.52 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2477/0.3592, allocations: 73 MB / 432.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03866/0.3979, allocations: 14.68 MB / 446.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0178/0.4158, allocations: 335.1 kB / 447.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.4185, allocations: 0.5945 MB / 447.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009594/0.4281, allocations: 2.365 MB / 450.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003088/0.4312, allocations: 1.057 MB / 451.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01507/0.4463, allocations: 11.32 MB / 462.6 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01246/0.4588, allocations: 7.363 MB / 470 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004122/0.463, allocations: 1.856 MB / 471.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005171/0.4682, allocations: 3.169 MB / 475 MB, free: 6.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.4694, allocations: 219.9 kB / 475.2 MB, free: 6.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.4724, allocations: 1.252 MB / 476.5 MB, free: 5.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002858/0.4752, allocations: 2.614 MB / 479.1 MB, free: 2.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003733/0.479, allocations: 2.963 MB / 482 MB, free: 15.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.4891, allocations: 9.58 MB / 491.6 MB, free: 6.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4892, allocations: 0 / 491.6 MB, free: 6.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4892, allocations: 0 / 491.6 MB, free: 6.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002935/0.4895, allocations: 4 kB / 491.6 MB, free: 6.207 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01507/0.5046, allocations: 6.327 MB / 497.9 MB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.5046, allocations: 15.97 kB / 498 MB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.5205, allocations: 3.354 MB / 0.4896 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.5306, allocations: 4.641 MB / 0.4941 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/0.5311, allocations: 337.2 kB / 0.4944 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002821/0.5339, allocations: 467.5 kB / 0.4949 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02785/0.5618, allocations: 14.59 MB / 0.5091 GB, free: 7.383 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002049/0.562, allocations: 83.36 kB / 0.5092 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005902/0.5626, allocations: 207.8 kB / 0.5094 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005279/0.5679, allocations: 2.832 MB / 0.5122 GB, free: 4.258 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02599/0.5939, allocations: 13.25 MB / 0.5251 GB, free: 6.984 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3128/0.9068, allocations: 58.51 MB / 0.5822 GB, free: 103.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01648/0.9233, allocations: 7.741 MB / 0.5898 GB, free: 99.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005416/0.9288, allocations: 5.046 MB / 0.5947 GB, free: 96.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0172/0.946, allocations: 12.81 MB / 0.6072 GB, free: 83.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.807e-05/0.9461, allocations: 64.7 kB / 0.6073 GB, free: 83.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.943e-06/0.9461, allocations: 4 kB / 0.6073 GB, free: 83.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.088/3.035, allocations: 407.4 MB / 1.005 GB, free: 39.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/3.035, allocations: 269.7 kB / 1.005 GB, free: 39.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007171/3.042, allocations: 5.435 MB / 1.011 GB, free: 33.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002134/3.044, allocations: 113.7 kB / 1.011 GB, free: 33.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/3.046, allocations: 3.936 MB / 1.015 GB, free: 29.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002895/3.049, allocations: 2.012 MB / 1.017 GB, free: 27.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001844/3.051, allocations: 0.8278 MB / 1.017 GB, free: 27.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.609e-05/3.051, allocations: 305.1 kB / 1.018 GB, free: 26.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01339/3.064, allocations: 11.06 MB / 1.029 GB, free: 15.64 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2444/3.309, allocations: 15.24 MB / 1.043 GB, free: 136.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0361/3.345, allocations: 27.46 MB / 1.07 GB, free: 120.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003065/3.345, allocations: 39.38 kB / 1.07 GB, free: 120.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.571/3.916, allocations: 141.1 MB / 1.208 GB, free: 125.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/3.916, allocations: 64.38 kB / 1.208 GB, free: 125.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000258/3.917, allocations: 142.8 kB / 1.208 GB, free: 125.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08381/4.001, allocations: 34.78 MB / 1.242 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004842/4.005, allocations: 1.57 MB / 1.244 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4838/4.489, allocations: 190.8 MB / 1.43 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01401/4.503, allocations: 1.726 MB / 1.432 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00256/4.506, allocations: 0.5342 MB / 1.432 GB, free: 113.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.00662/4.512, allocations: 3.104 MB / 1.435 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001901/4.514, allocations: 0.569 MB / 1.436 GB, free: 110.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.544/5.058, allocations: 136.8 MB / 1.569 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/5.058, allocations: 62.42 kB / 1.569 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001742/5.059, allocations: 57.88 kB / 1.57 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001646/5.059, allocations: 30.64 kB / 1.57 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6008/5.66, allocations: 206.3 MB / 1.771 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.947e-05/5.66, allocations: 8.625 kB / 1.771 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/5.661, allocations: 333 kB / 1.771 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07688/5.738, allocations: 33.93 MB / 1.804 GB, free: 83.26 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001696/5.74, allocations: 100.9 kB / 1.805 GB, free: 83.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4239/6.164, allocations: 173.6 MB / 1.974 GB, free: 83.54 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/6.164, allocations: 11.84 kB / 1.974 GB, free: 83.54 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5606/6.725, allocations: 152.6 MB / 2.123 GB, free: 101.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00175/6.726, allocations: 0.6389 MB / 2.124 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002304/6.729, allocations: 104.8 kB / 2.124 GB, free: 100.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009667/6.738, allocations: 1.488 MB / 2.125 GB, free: 99.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003894/6.742, allocations: 496.6 kB / 2.126 GB, free: 99.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008663/6.743, allocations: 148.8 kB / 2.126 GB, free: 99 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004807/6.748, allocations: 3.464 MB / 2.129 GB, free: 96.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/6.748, allocations: 0.5625 kB / 2.129 GB, free: 96.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01332/6.761, allocations: 3.839 MB / 2.133 GB, free: 93 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001688/6.763, allocations: 248 kB / 2.133 GB, free: 92.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05454/6.818, allocations: 33.73 MB / 2.166 GB, free: 59.38 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.409e-05/6.818, allocations: 0 / 2.166 GB, free: 59.38 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04006/6.858, allocations: 20.53 MB / 2.186 GB, free: 38.87 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01113/6.869, allocations: 0.7392 MB / 2.187 GB, free: 38.15 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03732/6.906, allocations: 30.42 MB / 2.217 GB, free: 7.773 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1974/7.104, allocations: 5.102 MB / 2.222 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0055/7.109, allocations: 2.051 MB / 2.224 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007876/7.11, allocations: 309.3 kB / 2.224 GB, free: 124.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/7.11, allocations: 3.719 kB / 2.224 GB, free: 124.8 MB / 478.1 MB Notification: Performance of Templates: time 0.5418/7.652, allocations: 261.9 MB / 2.48 GB, free: 88.83 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches