Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001045, allocations: 95.95 kB / 18.01 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 204.3 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 8 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09871, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2207/0.3195, allocations: 53.64 MB / 413.6 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/0.3478, allocations: 11.72 MB / 425.3 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01207/0.3599, allocations: 239.4 kB / 425.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.3619, allocations: 493.5 kB / 426 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005677/0.3676, allocations: 2.006 MB / 428 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.3703, allocations: 1.006 MB / 429 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.3812, allocations: 8.772 MB / 437.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01166/0.3929, allocations: 7.368 MB / 445.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/0.3964, allocations: 1.525 MB / 446.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004146/0.4006, allocations: 2.554 MB / 449.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009897/0.4016, allocations: 184 kB / 449.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00332/0.405, allocations: 1.392 MB / 450.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0031/0.4081, allocations: 2.217 MB / 453 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004255/0.4124, allocations: 2.467 MB / 455.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008611/0.421, allocations: 7.396 MB / 462.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4211, allocations: 0 / 462.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.4211, allocations: 0 / 462.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000333/0.4214, allocations: 0 / 462.9 MB, free: 3.793 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01223/0.4337, allocations: 4.902 MB / 467.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4337, allocations: 12.02 kB / 467.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01262/0.4463, allocations: 2.583 MB / 470.4 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008443/0.4548, allocations: 3.694 MB / 474.1 MB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003135/0.4552, allocations: 304.3 kB / 474.4 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4567, allocations: 443.6 kB / 474.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/0.4824, allocations: 12.44 MB / 487.2 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/0.4827, allocations: 43.59 kB / 487.3 MB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001091/0.4838, allocations: 191.9 kB / 487.5 MB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003588/0.4874, allocations: 2.046 MB / 489.5 MB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0235/0.5109, allocations: 10.59 MB / 0.4884 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05884/0.5698, allocations: 44.36 MB / 0.5317 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1935/0.7633, allocations: 4.882 MB / 0.5365 GB, free: 143.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002865/0.7662, allocations: 2.01 MB / 0.5384 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/0.7778, allocations: 7.196 MB / 0.5455 GB, free: 139.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.7779, allocations: 57.05 kB / 0.5455 GB, free: 139.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.298e-06/0.7779, allocations: 2.562 kB / 0.5455 GB, free: 139.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06442/0.8423, allocations: 19.58 MB / 0.5646 GB, free: 132.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.8424, allocations: 209.8 kB / 0.5648 GB, free: 132.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005285/0.8477, allocations: 4.459 MB / 0.5692 GB, free: 127.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003838/0.8481, allocations: 57.7 kB / 0.5693 GB, free: 127.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.8497, allocations: 3.511 MB / 0.5727 GB, free: 124 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006164/0.8503, allocations: 0.8428 MB / 0.5735 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005564/0.8508, allocations: 0.575 MB / 0.5741 GB, free: 122.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.863e-05/0.8509, allocations: 305.1 kB / 0.5744 GB, free: 122.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002753/0.8536, allocations: 2.367 MB / 0.5767 GB, free: 119.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003893/0.8576, allocations: 6.163 MB / 0.5827 GB, free: 111.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/0.8652, allocations: 9.189 MB / 0.5917 GB, free: 100.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.187e-05/0.8653, allocations: 36 kB / 0.5917 GB, free: 100.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0149/0.8802, allocations: 9.556 MB / 0.601 GB, free: 91.26 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.8803, allocations: 60 kB / 0.6011 GB, free: 91.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.8805, allocations: 135.9 kB / 0.6012 GB, free: 91.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003844/0.8843, allocations: 1.371 MB / 0.6026 GB, free: 89.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/0.8886, allocations: 1.474 MB / 0.604 GB, free: 88.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009741/0.8984, allocations: 7.97 MB / 0.6118 GB, free: 80.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004559/0.903, allocations: 359.3 kB / 0.6121 GB, free: 79.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007193/0.9037, allocations: 388 kB / 0.6125 GB, free: 79.39 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003509/0.9073, allocations: 2.49 MB / 0.6149 GB, free: 76.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/0.9079, allocations: 398.8 kB / 0.6153 GB, free: 76.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00762/0.9155, allocations: 4.127 MB / 0.6193 GB, free: 72.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3e-05/0.9156, allocations: 24 kB / 0.6194 GB, free: 72.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.9156, allocations: 4 kB / 0.6194 GB, free: 72.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.9156, allocations: 19.89 kB / 0.6194 GB, free: 72.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.9325, allocations: 10.38 MB / 0.6295 GB, free: 61.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.259e-05/0.9325, allocations: 4 kB / 0.6295 GB, free: 61.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.9341, allocations: 351.4 kB / 0.6298 GB, free: 61.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003494/0.9376, allocations: 1.157 MB / 0.631 GB, free: 60.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002401/0.9378, allocations: 40 kB / 0.631 GB, free: 60.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00821/0.9461, allocations: 6.683 MB / 0.6375 GB, free: 53.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.9461, allocations: 9.938 kB / 0.6376 GB, free: 53.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/0.9564, allocations: 6.919 MB / 0.6443 GB, free: 46.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.9575, allocations: 451.8 kB / 0.6447 GB, free: 45.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005853/0.9581, allocations: 54.42 kB / 0.6448 GB, free: 45.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/0.9598, allocations: 111.9 kB / 0.6449 GB, free: 45.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.9601, allocations: 141 kB / 0.645 GB, free: 45.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.9603, allocations: 67.98 kB / 0.6451 GB, free: 45.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003748/0.964, allocations: 2.795 MB / 0.6478 GB, free: 42.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.964, allocations: 0 / 0.6478 GB, free: 42.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005171/0.9692, allocations: 1.193 MB / 0.649 GB, free: 41.63 MB / 446.1 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005756/0.9698, allocations: 230.1 kB / 0.6492 GB, free: 41.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007438/0.9773, allocations: 5.751 MB / 0.6548 GB, free: 35.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/0.9773, allocations: 4 kB / 0.6548 GB, free: 35.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.9798, allocations: 1.884 MB / 0.6567 GB, free: 33.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006026/0.9858, allocations: 0.5195 MB / 0.6572 GB, free: 33.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/1.004, allocations: 14.13 MB / 0.671 GB, free: 19.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/1.008, allocations: 3.843 MB / 0.6747 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.009, allocations: 315.4 kB / 0.675 GB, free: 14.84 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/1.009, allocations: 0 / 0.675 GB, free: 14.84 MB / 446.1 MB Notification: Performance of Templates: time 0.2891/1.298, allocations: 88.99 MB / 0.7619 GB, free: 93.39 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches