Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 192.3 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007889/0.0007889, allocations: 100.1 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.0002138, allocations: 8 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2152, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03774/0.253, allocations: 48.57 MB / 460.6 MB, free: 9.188 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.278, allocations: 14.43 MB / 475 MB, free: 9.918 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008193/0.2863, allocations: 239.4 kB / 475.3 MB, free: 9.684 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.2882, allocations: 0.6104 MB / 475.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005711/0.2939, allocations: 2.398 MB / 478.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.296, allocations: 0.9166 MB / 479.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01054/0.3066, allocations: 10.02 MB / 489.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008199/0.3148, allocations: 6.749 MB / 496 MB, free: 4.613 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00333/0.3182, allocations: 1.922 MB / 497.9 MB, free: 2.684 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00423/0.3224, allocations: 3.122 MB / 0.4893 GB, free: 15.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001115/0.3235, allocations: 236 kB / 0.4895 GB, free: 15.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.3265, allocations: 1.303 MB / 0.4908 GB, free: 14.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002807/0.3293, allocations: 2.586 MB / 0.4933 GB, free: 11.42 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002786/0.3321, allocations: 2.963 MB / 0.4962 GB, free: 8.434 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1836/0.5158, allocations: 9.675 MB / 0.5056 GB, free: 22.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.5158, allocations: 1 kB / 0.5056 GB, free: 22.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5158, allocations: 0 / 0.5056 GB, free: 22.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003002/0.5161, allocations: 0.5 kB / 0.5056 GB, free: 22.56 MB / 378.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.01177/0.5279, allocations: 6.054 MB / 0.5116 GB, free: 20.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.528, allocations: 9.625 kB / 0.5116 GB, free: 20.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01422/0.5422, allocations: 4.046 MB / 0.5155 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00922/0.5514, allocations: 4.043 MB / 0.5195 GB, free: 18.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.5517, allocations: 317.1 kB / 0.5198 GB, free: 18.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.553, allocations: 433.8 kB / 0.5202 GB, free: 18.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02223/0.5753, allocations: 15.71 MB / 0.5355 GB, free: 16.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001259/0.5754, allocations: 57.25 kB / 0.5356 GB, free: 16.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005932/0.576, allocations: 210 kB / 0.5358 GB, free: 16.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004033/0.5801, allocations: 3.215 MB / 0.5389 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02184/0.6019, allocations: 14.09 MB / 0.5527 GB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06924/0.6712, allocations: 57.79 MB / 0.6091 GB, free: 4.625 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01323/0.6845, allocations: 6.556 MB / 0.6155 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005168/0.6897, allocations: 3.676 MB / 0.6191 GB, free: 10.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02593/0.7157, allocations: 14.64 MB / 0.6334 GB, free: 11.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.524e-05/0.7158, allocations: 67.41 kB / 0.6335 GB, free: 11.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 1.376e-05/0.7158, allocations: 0 / 0.6335 GB, free: 11.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=339): time 0.1383/0.8541, allocations: 42.59 MB / 0.6751 GB, free: 476 kB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.8543, allocations: 221.8 kB / 0.6753 GB, free: 212 kB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007604/0.8619, allocations: 5.423 MB / 0.6806 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000598/0.8625, allocations: 72.91 kB / 0.6806 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002571/0.8651, allocations: 4.361 MB / 0.6849 GB, free: 6.391 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001279/0.8664, allocations: 1.263 MB / 0.6861 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004668/0.8668, allocations: 179 kB / 0.6863 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000439/0.8673, allocations: 0.6943 MB / 0.687 GB, free: 4.262 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2229/1.09, allocations: 4.773 MB / 0.6916 GB, free: 201.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/1.101, allocations: 9.769 MB / 0.7012 GB, free: 194.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0166/1.117, allocations: 15.53 MB / 0.7163 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/1.117, allocations: 49.08 kB / 0.7164 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04084/1.158, allocations: 19.5 MB / 0.7354 GB, free: 172.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000227/1.159, allocations: 80.94 kB / 0.7355 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003165/1.159, allocations: 176 kB / 0.7357 GB, free: 172.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01955/1.178, allocations: 5.971 MB / 0.7415 GB, free: 166.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006853/1.185, allocations: 2.113 MB / 0.7436 GB, free: 164.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02705/1.212, allocations: 24.77 MB / 0.7678 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008909/1.221, allocations: 0.5666 MB / 0.7683 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001851/1.223, allocations: 0.5056 MB / 0.7688 GB, free: 138.3 MB / 0.4948 GB 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 (1098): * Single equations (assignments): 1090 * 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.006837/1.23, allocations: 3.106 MB / 0.7718 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001475/1.232, allocations: 498.9 kB / 0.7723 GB, free: 135 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02854/1.26, allocations: 12.94 MB / 0.7849 GB, free: 122 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.319e-05/1.26, allocations: 52 kB / 0.785 GB, free: 122 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.854e-05/1.26, allocations: 8 kB / 0.785 GB, free: 122 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.4e-05/1.26, allocations: 15.94 kB / 0.785 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04661/1.307, allocations: 24.62 MB / 0.8091 GB, free: 96.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-05/1.307, allocations: 12.02 kB / 0.8091 GB, free: 96.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/1.31, allocations: 0.5694 MB / 0.8096 GB, free: 96.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01691/1.327, allocations: 4.998 MB / 0.8145 GB, free: 91.34 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007457/1.328, allocations: 56 kB / 0.8146 GB, free: 91.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0293/1.357, allocations: 20 MB / 0.8341 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.361e-05/1.357, allocations: 4 kB / 0.8341 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05883/1.416, allocations: 17.45 MB / 0.8511 GB, free: 53.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/1.418, allocations: 0.5414 MB / 0.8517 GB, free: 53 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002245/1.42, allocations: 61.33 kB / 0.8517 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004837/1.425, allocations: 263.6 kB / 0.852 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/1.426, allocations: 197.6 kB / 0.8522 GB, free: 52.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000514/1.427, allocations: 84 kB / 0.8522 GB, free: 52.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005356/1.432, allocations: 3.355 MB / 0.8555 GB, free: 49.08 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.51e-07/1.432, allocations: 0.6562 kB / 0.8555 GB, free: 49.08 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008355/1.441, allocations: 1.759 MB / 0.8572 GB, free: 47.32 MB / 0.4948 GB 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.0009617/1.442, allocations: 216 kB / 0.8574 GB, free: 47.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01548/1.457, allocations: 10.88 MB / 0.8681 GB, free: 36.23 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/1.457, allocations: 0.9375 kB / 0.8681 GB, free: 36.23 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00524/1.462, allocations: 4.095 MB / 0.8721 GB, free: 32.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008191/1.471, allocations: 0.5922 MB / 0.8726 GB, free: 31.54 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2009/1.672, allocations: 19.26 MB / 0.8915 GB, free: 186.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00669/1.678, allocations: 4.615 MB / 0.896 GB, free: 185.8 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00674/1.685, allocations: 2.968 MB / 0.8989 GB, free: 185.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/1.686, allocations: 354.5 kB / 0.8992 GB, free: 185.7 MB / 0.4948 GB Notification: Performance of SimCode: time 8.51e-07/1.686, allocations: 5.297 kB / 0.8992 GB, free: 185.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.09949/1.786, allocations: 76.68 MB / 0.9741 GB, free: 118.3 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches