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.001449/0.001449, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001603/0.001603, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.436/1.436, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 46.67 kB / 300 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08831, allocations: 49.45 MB / 349.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2087/0.297, allocations: 55.41 MB / 404.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02771/0.3247, allocations: 11.92 MB / 416.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01174/0.3365, allocations: 242.9 kB / 417 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007684/0.3443, allocations: 4.205 MB / 421.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005518/0.3499, allocations: 2.005 MB / 423.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002634/0.3525, allocations: 1.022 MB / 424.2 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.3626, allocations: 8.681 MB / 432.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007223/0.3698, allocations: 5.218 MB / 438.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003662/0.3735, allocations: 1.908 MB / 440 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004352/0.3779, allocations: 3.03 MB / 443 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001371/0.3793, allocations: 344 kB / 443.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003473/0.3828, allocations: 1.564 MB / 444.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003088/0.3859, allocations: 2.447 MB / 447.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004676/0.3906, allocations: 2.746 MB / 450.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009265/0.3999, allocations: 9.187 MB / 459.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3999, allocations: 0 / 459.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4, allocations: 0 / 459.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003095/0.4003, allocations: 0 / 459.3 MB, free: 6.758 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.01236/0.4126, allocations: 6.017 MB / 465.3 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4127, allocations: 12.03 kB / 465.4 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.4233, allocations: 2.537 MB / 467.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009694/0.433, allocations: 3.737 MB / 471.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.4333, allocations: 312.5 kB / 471.9 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/0.4348, allocations: 439.6 kB / 472.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02206/0.4569, allocations: 12.41 MB / 484.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/0.4571, allocations: 55.42 kB / 484.8 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004783/0.4576, allocations: 191.8 kB / 485 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002874/0.4605, allocations: 2.031 MB / 487 MB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/0.481, allocations: 10.57 MB / 497.6 MB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05371/0.5347, allocations: 44.37 MB / 0.5293 GB, free: 1.926 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1806/0.7153, allocations: 4.829 MB / 0.534 GB, free: 150.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002852/0.7182, allocations: 2.009 MB / 0.536 GB, free: 150.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0121/0.7303, allocations: 7.112 MB / 0.5429 GB, free: 146.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.7304, allocations: 52.58 kB / 0.5429 GB, free: 146.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.228e-06/0.7304, allocations: 1.969 kB / 0.543 GB, free: 146.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06625/0.7967, allocations: 19.62 MB / 0.5621 GB, free: 140.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.7968, allocations: 201.2 kB / 0.5623 GB, free: 140 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0061/0.8029, allocations: 4.463 MB / 0.5667 GB, free: 135.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004001/0.8033, allocations: 65.61 kB / 0.5667 GB, free: 135.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.8048, allocations: 3.513 MB / 0.5702 GB, free: 132.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000632/0.8054, allocations: 0.8433 MB / 0.571 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/0.8068, allocations: 1.333 MB / 0.5723 GB, free: 130 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.8068, allocations: 305.1 kB / 0.5726 GB, free: 129.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002686/0.8095, allocations: 2.363 MB / 0.5749 GB, free: 127.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003894/0.8134, allocations: 6.163 MB / 0.5809 GB, free: 119.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007648/0.8211, allocations: 9.174 MB / 0.5899 GB, free: 108.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-05/0.8212, allocations: 40 kB / 0.5899 GB, free: 108.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01432/0.8355, allocations: 9.548 MB / 0.5992 GB, free: 98.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.407e-05/0.8356, allocations: 66.03 kB / 0.5993 GB, free: 98.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.8357, allocations: 132 kB / 0.5994 GB, free: 98.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/0.8395, allocations: 1.37 MB / 0.6007 GB, free: 97.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/0.8438, allocations: 1.478 MB / 0.6022 GB, free: 95.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009334/0.8531, allocations: 7.969 MB / 0.61 GB, free: 87.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004453/0.8576, allocations: 351.2 kB / 0.6103 GB, free: 87.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000658/0.8583, allocations: 392 kB / 0.6107 GB, free: 86.8 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.002982/0.8613, allocations: 2.493 MB / 0.6131 GB, free: 84.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00061/0.8619, allocations: 402.8 kB / 0.6135 GB, free: 83.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00708/0.869, allocations: 4.11 MB / 0.6175 GB, free: 79.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/0.869, allocations: 27.94 kB / 0.6175 GB, free: 79.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.8691, allocations: 8 kB / 0.6175 GB, free: 79.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.717e-05/0.8691, allocations: 19.83 kB / 0.6176 GB, free: 79.72 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/0.8844, allocations: 10.36 MB / 0.6277 GB, free: 69.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.8845, allocations: 8 kB / 0.6277 GB, free: 69.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.8859, allocations: 350.1 kB / 0.628 GB, free: 68.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00339/0.8893, allocations: 1.149 MB / 0.6291 GB, free: 67.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001804/0.8895, allocations: 47.83 kB / 0.6292 GB, free: 67.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007727/0.8973, allocations: 6.67 MB / 0.6357 GB, free: 60.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.8973, allocations: 7.938 kB / 0.6357 GB, free: 60.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009479/0.9068, allocations: 6.914 MB / 0.6425 GB, free: 53.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.9078, allocations: 451.8 kB / 0.6429 GB, free: 53.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004737/0.9083, allocations: 47.92 kB / 0.6429 GB, free: 53.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/0.9099, allocations: 107.9 kB / 0.643 GB, free: 53.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/0.9102, allocations: 145.1 kB / 0.6432 GB, free: 53.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/0.9104, allocations: 63.73 kB / 0.6432 GB, free: 53.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003232/0.9136, allocations: 2.803 MB / 0.646 GB, free: 50.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9136, allocations: 0 / 0.646 GB, free: 50.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00468/0.9183, allocations: 1.215 MB / 0.6472 GB, free: 49.06 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.0004994/0.9188, allocations: 232.5 kB / 0.6474 GB, free: 48.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007009/0.9259, allocations: 5.747 MB / 0.653 GB, free: 43.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.9259, allocations: 0 / 0.653 GB, free: 43.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.9281, allocations: 1.88 MB / 0.6548 GB, free: 41.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003018/0.9311, allocations: 0.5015 MB / 0.6553 GB, free: 40.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/0.9481, allocations: 13.59 MB / 0.6686 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003279/0.9514, allocations: 3.873 MB / 0.6724 GB, free: 23.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004446/0.9559, allocations: 1.924 MB / 0.6743 GB, free: 21.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006921/0.9566, allocations: 275.4 kB / 0.6745 GB, free: 20.93 MB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.9566, allocations: 0 / 0.6745 GB, free: 20.93 MB / 446.1 MB Notification: Performance of Templates: time 0.2211/1.178, allocations: 44.1 MB / 0.7176 GB, free: 126.9 MB / 446.1 MB 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