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.0009023/0.0009023, allocations: 95.55 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 199.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.7 MB / 247.5 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002943, allocations: 8 kB / 308.4 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1006, allocations: 51.53 MB / 359.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2373/0.3379, allocations: 73 MB / 432.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0327/0.3707, allocations: 14.68 MB / 447.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01397/0.3847, allocations: 339.1 kB / 447.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.3869, allocations: 0.5945 MB / 448.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006562/0.3935, allocations: 2.36 MB / 450.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002381/0.3959, allocations: 1.053 MB / 451.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0139/0.4098, allocations: 11.32 MB / 463.3 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.4207, allocations: 7.365 MB / 470.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003847/0.4246, allocations: 1.863 MB / 472.5 MB, free: 9.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004711/0.4293, allocations: 3.157 MB / 475.6 MB, free: 6.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.4306, allocations: 220 kB / 475.9 MB, free: 6.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002905/0.4335, allocations: 1.264 MB / 477.1 MB, free: 5.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002756/0.4363, allocations: 2.621 MB / 479.7 MB, free: 2.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003608/0.4399, allocations: 2.948 MB / 482.7 MB, free: 15.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007776/0.4477, allocations: 7.895 MB / 490.6 MB, free: 7.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4477, allocations: 0 / 490.6 MB, free: 7.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.4478, allocations: 0 / 490.6 MB, free: 7.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002786/0.448, allocations: 0 / 490.6 MB, free: 7.805 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.01473/0.4628, allocations: 6.331 MB / 496.9 MB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.4628, allocations: 8.031 kB / 496.9 MB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01529/0.4781, allocations: 3.362 MB / 0.4886 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009783/0.488, allocations: 4.629 MB / 0.4931 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.4883, allocations: 345.2 kB / 0.4934 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.4896, allocations: 475.5 kB / 0.4939 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/0.5158, allocations: 14.58 MB / 0.5081 GB, free: 8.977 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/0.5161, allocations: 75.36 kB / 0.5082 GB, free: 8.902 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006925/0.5168, allocations: 211.8 kB / 0.5084 GB, free: 8.695 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005418/0.5222, allocations: 2.828 MB / 0.5111 GB, free: 5.859 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/0.549, allocations: 13.25 MB / 0.5241 GB, free: 8.586 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2725/0.8215, allocations: 58.49 MB / 0.5812 GB, free: 104.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01642/0.838, allocations: 7.748 MB / 0.5888 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005551/0.8436, allocations: 5.05 MB / 0.5937 GB, free: 97.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01857/0.8622, allocations: 12.81 MB / 0.6062 GB, free: 85.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.832e-05/0.8623, allocations: 76.62 kB / 0.6063 GB, free: 85.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.895e-06/0.8623, allocations: 0 / 0.6063 GB, free: 85.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.03/2.892, allocations: 407.4 MB / 1.004 GB, free: 40.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/2.892, allocations: 265.7 kB / 1.004 GB, free: 40.65 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/2.9, allocations: 5.443 MB / 1.01 GB, free: 35.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002013/2.902, allocations: 114.6 kB / 1.01 GB, free: 35.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/2.904, allocations: 3.933 MB / 1.014 GB, free: 31.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003099/2.907, allocations: 2.012 MB / 1.016 GB, free: 29.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002009/2.909, allocations: 0.8242 MB / 1.016 GB, free: 28.37 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/2.909, allocations: 309.1 kB / 1.017 GB, free: 28.07 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01293/2.922, allocations: 11.06 MB / 1.027 GB, free: 17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2215/3.144, allocations: 15.24 MB / 1.042 GB, free: 137.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03284/3.176, allocations: 27.45 MB / 1.069 GB, free: 122 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/3.177, allocations: 42.28 kB / 1.069 GB, free: 122 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5371/3.714, allocations: 141.1 MB / 1.207 GB, free: 127 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/3.714, allocations: 68.22 kB / 1.207 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001952/3.714, allocations: 141.9 kB / 1.207 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0825/3.796, allocations: 34.77 MB / 1.241 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004789/3.801, allocations: 1.565 MB / 1.243 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4724/4.274, allocations: 190.8 MB / 1.429 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/4.288, allocations: 1.725 MB / 1.431 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002581/4.29, allocations: 0.5359 MB / 1.431 GB, free: 114.6 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.007395/4.298, allocations: 3.092 MB / 1.434 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002027/4.3, allocations: 0.575 MB / 1.435 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5262/4.826, allocations: 136.8 MB / 1.568 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.14e-05/4.826, allocations: 59.69 kB / 1.568 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001959/4.826, allocations: 59.97 kB / 1.568 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001378/4.826, allocations: 27 kB / 1.569 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5768/5.403, allocations: 206.3 MB / 1.77 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.263e-05/5.403, allocations: 8.594 kB / 1.77 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/5.405, allocations: 331.2 kB / 1.77 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07272/5.478, allocations: 33.94 MB / 1.803 GB, free: 84.99 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001816/5.479, allocations: 104.3 kB / 1.804 GB, free: 84.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4292/5.909, allocations: 173.6 MB / 1.973 GB, free: 85.26 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/5.909, allocations: 11.75 kB / 1.973 GB, free: 85.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5549/6.463, allocations: 152.6 MB / 2.122 GB, free: 103.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001958/6.466, allocations: 0.6291 MB / 2.123 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002988/6.469, allocations: 104.5 kB / 2.123 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01061/6.479, allocations: 1.487 MB / 2.124 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004199/6.483, allocations: 497.7 kB / 2.125 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001016/6.484, allocations: 146.1 kB / 2.125 GB, free: 100.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005719/6.49, allocations: 3.465 MB / 2.128 GB, free: 98.45 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/6.49, allocations: 2.516 kB / 2.128 GB, free: 98.45 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01466/6.505, allocations: 3.836 MB / 2.132 GB, free: 94.94 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.001693/6.507, allocations: 246 kB / 2.132 GB, free: 94.73 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05383/6.56, allocations: 33.72 MB / 2.165 GB, free: 61.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.319e-05/6.56, allocations: 4 kB / 2.165 GB, free: 61.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03886/6.599, allocations: 20.53 MB / 2.185 GB, free: 40.65 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01173/6.611, allocations: 0.7454 MB / 2.186 GB, free: 39.93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/6.649, allocations: 31 MB / 2.216 GB, free: 8.969 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2206/6.869, allocations: 5.063 MB / 2.221 GB, free: 124.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001464/6.871, allocations: 351.9 kB / 2.222 GB, free: 124.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.482e-06/6.871, allocations: 0 / 2.222 GB, free: 124.3 MB / 478.1 MB Notification: Performance of Templates: time 0.5089/7.38, allocations: 254.1 MB / 2.47 GB, free: 98.73 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/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