Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 43.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2963, allocations: 49.44 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01413/0.3105, allocations: 13.48 MB / 414.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.3217, allocations: 4.851 MB / 419.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002867/0.3246, allocations: 83.75 kB / 419.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007934/0.3327, allocations: 4.202 MB / 423.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006458/0.3392, allocations: 2.143 MB / 425.5 MB, free: 40 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003203/0.3424, allocations: 1.107 MB / 426.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009956/0.3524, allocations: 5.969 MB / 432.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008667/0.3611, allocations: 5.305 MB / 437.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004523/0.3656, allocations: 2.154 MB / 440 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004894/0.3706, allocations: 2.867 MB / 442.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001839/0.3724, allocations: 0.4922 MB / 443.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003892/0.3763, allocations: 1.654 MB / 445 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003655/0.38, allocations: 2.599 MB / 447.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005017/0.3851, allocations: 2.902 MB / 450.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.3968, allocations: 9.528 MB / 460.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3968, allocations: 0 / 460.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3969, allocations: 0 / 460.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003132/0.3972, allocations: 3.938 kB / 460.1 MB, free: 13.31 MB / 382.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.01548/0.4127, allocations: 6.036 MB / 466.1 MB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.4127, allocations: 8.031 kB / 466.1 MB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.425, allocations: 2.533 MB / 468.7 MB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009628/0.4347, allocations: 3.823 MB / 472.5 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.435, allocations: 304.3 kB / 472.8 MB, free: 476 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.4369, allocations: 443.6 kB / 473.2 MB, free: 32 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02693/0.4638, allocations: 12.41 MB / 485.6 MB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002579/0.4642, allocations: 43.59 kB / 485.7 MB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001554/0.4657, allocations: 195.8 kB / 485.8 MB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003488/0.4692, allocations: 2.031 MB / 487.9 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02276/0.492, allocations: 10.56 MB / 498.4 MB, free: 6.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06225/0.5543, allocations: 44.14 MB / 0.5299 GB, free: 8.613 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01304/0.5674, allocations: 4.846 MB / 0.5346 GB, free: 3.625 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002687/0.5701, allocations: 2.014 MB / 0.5366 GB, free: 1.602 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2656/0.8357, allocations: 7.096 MB / 0.5435 GB, free: 127.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.8358, allocations: 52.47 kB / 0.5435 GB, free: 127.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.81e-06/0.8358, allocations: 2.188 kB / 0.5435 GB, free: 127.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06256/0.8983, allocations: 19.62 MB / 0.5627 GB, free: 117.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.8985, allocations: 209.9 kB / 0.5629 GB, free: 116.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/0.9031, allocations: 4.465 MB / 0.5673 GB, free: 112.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003011/0.9034, allocations: 60.98 kB / 0.5673 GB, free: 112.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.9047, allocations: 3.512 MB / 0.5708 GB, free: 108.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005655/0.9053, allocations: 0.8434 MB / 0.5716 GB, free: 108 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/0.9066, allocations: 1.333 MB / 0.5729 GB, free: 106.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.309e-05/0.9066, allocations: 305.1 kB / 0.5732 GB, free: 106.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/0.9092, allocations: 2.367 MB / 0.5755 GB, free: 103.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003639/0.9129, allocations: 6.159 MB / 0.5815 GB, free: 95.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007161/0.92, allocations: 9.169 MB / 0.5905 GB, free: 84.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.275e-05/0.9201, allocations: 36 kB / 0.5905 GB, free: 84.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01367/0.9338, allocations: 9.55 MB / 0.5998 GB, free: 75.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.07e-05/0.9339, allocations: 60 kB / 0.5999 GB, free: 75.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.934, allocations: 140.2 kB / 0.6 GB, free: 75.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00368/0.9377, allocations: 1.373 MB / 0.6013 GB, free: 73.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/0.9417, allocations: 1.466 MB / 0.6028 GB, free: 72.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009511/0.9512, allocations: 8.475 MB / 0.6111 GB, free: 63.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004753/0.956, allocations: 363.1 kB / 0.6114 GB, free: 63.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007377/0.9568, allocations: 384 kB / 0.6118 GB, free: 62.93 MB / 462.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.003145/0.9599, allocations: 2.49 MB / 0.6142 GB, free: 60.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006754/0.9606, allocations: 398.8 kB / 0.6146 GB, free: 60.03 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007092/0.9677, allocations: 4.121 MB / 0.6186 GB, free: 55.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.374e-05/0.9678, allocations: 24.14 kB / 0.6186 GB, free: 55.87 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.9678, allocations: 11.94 kB / 0.6186 GB, free: 55.86 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.9678, allocations: 11.95 kB / 0.6186 GB, free: 55.85 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02093/0.9887, allocations: 10.13 MB / 0.6285 GB, free: 45.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.588e-05/0.9888, allocations: 4.594 kB / 0.6285 GB, free: 45.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.9902, allocations: 331.5 kB / 0.6289 GB, free: 45.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003545/0.9938, allocations: 1.14 MB / 0.63 GB, free: 44.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.9941, allocations: 44 kB / 0.63 GB, free: 44.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008665/1.003, allocations: 7.163 MB / 0.637 GB, free: 36.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/1.003, allocations: 7.938 kB / 0.637 GB, free: 36.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/1.013, allocations: 6.903 MB / 0.6438 GB, free: 29.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/1.015, allocations: 451.8 kB / 0.6442 GB, free: 29.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000972/1.016, allocations: 40 kB / 0.6442 GB, free: 29.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00222/1.018, allocations: 118.9 kB / 0.6443 GB, free: 29.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/1.018, allocations: 144.9 kB / 0.6445 GB, free: 29.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/1.019, allocations: 63.98 kB / 0.6445 GB, free: 28.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004965/1.024, allocations: 2.807 MB / 0.6473 GB, free: 26.17 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.024, allocations: 0 / 0.6473 GB, free: 26.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006864/1.03, allocations: 1.218 MB / 0.6485 GB, free: 24.96 MB / 462.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.0008994/1.031, allocations: 226.2 kB / 0.6487 GB, free: 24.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008677/1.04, allocations: 5.769 MB / 0.6543 GB, free: 18.99 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.04, allocations: 4.734 kB / 0.6543 GB, free: 18.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002565/1.043, allocations: 1.865 MB / 0.6561 GB, free: 17.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004142/1.047, allocations: 0.5437 MB / 0.6567 GB, free: 16.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02053/1.067, allocations: 11.04 MB / 0.6675 GB, free: 5.441 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006255/1.074, allocations: 3.867 MB / 0.6712 GB, free: 1.539 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00519/1.079, allocations: 1.93 MB / 0.6731 GB, free: 15.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/1.08, allocations: 271.3 kB / 0.6734 GB, free: 15.34 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/1.08, allocations: 0 / 0.6734 GB, free: 15.34 MB / 478.1 MB Notification: Performance of Templates: time 0.08658/1.167, allocations: 42.1 MB / 0.7145 GB, free: 5.555 MB / 0.4981 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches