Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001714/0.001714, allocations: 113.5 kB / 17.28 MB, free: 6.188 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.001954/0.001953, allocations: 185.3 kB / 18.2 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 51.92 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09781, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2847/0.3825, allocations: 55.45 MB / 382.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0357/0.4183, allocations: 11.81 MB / 394 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01724/0.4356, allocations: 242.8 kB / 394.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008531/0.4442, allocations: 4.051 MB / 398.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007827/0.4521, allocations: 2.01 MB / 400.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003238/0.4553, allocations: 1.034 MB / 401.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01161/0.467, allocations: 5.867 MB / 407.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009403/0.4764, allocations: 5.592 MB / 412.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005905/0.4824, allocations: 2.214 MB / 415 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006619/0.489, allocations: 3.177 MB / 418.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002099/0.4912, allocations: 0.4922 MB / 418.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004689/0.4959, allocations: 1.645 MB / 420.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003996/0.4999, allocations: 2.614 MB / 423 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00647/0.5064, allocations: 2.929 MB / 425.9 MB, free: 6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.5209, allocations: 9.361 MB / 435.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.5209, allocations: 0 / 435.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.521, allocations: 0 / 435.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003684/0.5213, allocations: 0 / 435.3 MB, free: 12.84 MB / 350.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.01878/0.5401, allocations: 6.026 MB / 441.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.5402, allocations: 8.031 kB / 441.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01212/0.5523, allocations: 2.539 MB / 443.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.5633, allocations: 3.847 MB / 447.7 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.5637, allocations: 313 kB / 448 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/0.566, allocations: 441.2 kB / 448.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02794/0.594, allocations: 12.41 MB / 460.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/0.5942, allocations: 51.5 kB / 460.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008482/0.5951, allocations: 188.7 kB / 461.1 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003256/0.5984, allocations: 2.039 MB / 463.1 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/0.6219, allocations: 10.56 MB / 473.7 MB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06521/0.6872, allocations: 44.38 MB / 0.5059 GB, free: 8.492 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/0.7, allocations: 4.838 MB / 0.5106 GB, free: 3.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.7029, allocations: 2.003 MB / 0.5126 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.7151, allocations: 7.115 MB / 0.5195 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.488e-05/0.7152, allocations: 59.48 kB / 0.5196 GB, free: 10.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.721e-06/0.7152, allocations: 0 / 0.5196 GB, free: 10.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06493/0.7802, allocations: 19.65 MB / 0.5388 GB, free: 6.383 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.7803, allocations: 205.9 kB / 0.539 GB, free: 6.137 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005981/0.7863, allocations: 4.489 MB / 0.5434 GB, free: 1.629 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003687/0.7867, allocations: 64.52 kB / 0.5434 GB, free: 1.562 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2163/1.003, allocations: 3.512 MB / 0.5469 GB, free: 179.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/1.004, allocations: 0.8411 MB / 0.5477 GB, free: 178.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002982/1.007, allocations: 1.342 MB / 0.549 GB, free: 178.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/1.008, allocations: 301.8 kB / 0.5493 GB, free: 178.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005459/1.013, allocations: 2.365 MB / 0.5516 GB, free: 177.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008598/1.022, allocations: 6.161 MB / 0.5576 GB, free: 171.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/1.035, allocations: 9.17 MB / 0.5666 GB, free: 164.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002646/1.035, allocations: 37.09 kB / 0.5666 GB, free: 164.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02197/1.057, allocations: 9.554 MB / 0.5759 GB, free: 160.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002862/1.057, allocations: 66.56 kB / 0.576 GB, free: 160.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004092/1.058, allocations: 137.2 kB / 0.5761 GB, free: 160.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004506/1.062, allocations: 1.368 MB / 0.5774 GB, free: 160.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005338/1.068, allocations: 1.472 MB / 0.5789 GB, free: 160.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/1.079, allocations: 8.515 MB / 0.5872 GB, free: 153.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00609/1.085, allocations: 353.4 kB / 0.5875 GB, free: 153 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.087, allocations: 387.5 kB / 0.5879 GB, free: 152.6 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.004895/1.091, allocations: 2.501 MB / 0.5903 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/1.092, allocations: 400.2 kB / 0.5907 GB, free: 149.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008388/1.101, allocations: 4.118 MB / 0.5948 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.666e-05/1.101, allocations: 27.83 kB / 0.5948 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.442e-05/1.101, allocations: 11.62 kB / 0.5948 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.608e-05/1.101, allocations: 7.969 kB / 0.5948 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02001/1.121, allocations: 10.36 MB / 0.6049 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/1.121, allocations: 8.531 kB / 0.6049 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/1.123, allocations: 347.5 kB / 0.6053 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003387/1.126, allocations: 1.148 MB / 0.6064 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/1.126, allocations: 43.98 kB / 0.6064 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007953/1.134, allocations: 7.133 MB / 0.6134 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.134, allocations: 11.94 kB / 0.6134 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009654/1.144, allocations: 6.914 MB / 0.6201 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001842/1.146, allocations: 0.7374 MB / 0.6209 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005532/1.146, allocations: 43.94 kB / 0.6209 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/1.148, allocations: 114.4 kB / 0.621 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003678/1.148, allocations: 141.1 kB / 0.6212 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.149, allocations: 60 kB / 0.6212 GB, free: 118.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003439/1.152, allocations: 2.822 MB / 0.624 GB, free: 115.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.152, allocations: 0 / 0.624 GB, free: 115.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005721/1.158, allocations: 1.22 MB / 0.6252 GB, free: 114.2 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.0006178/1.158, allocations: 235 kB / 0.6254 GB, free: 114 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01081/1.169, allocations: 6.86 MB / 0.6321 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.169, allocations: 4 kB / 0.6321 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002428/1.172, allocations: 1.872 MB / 0.6339 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003479/1.175, allocations: 0.5267 MB / 0.6344 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.196, allocations: 13.62 MB / 0.6477 GB, free: 91.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004269/1.2, allocations: 3.876 MB / 0.6515 GB, free: 87.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004489/1.204, allocations: 1.929 MB / 0.6534 GB, free: 85.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007753/1.205, allocations: 267.4 kB / 0.6537 GB, free: 84.98 MB / 462.1 MB Notification: Performance of SimCode: time 1.794e-06/1.205, allocations: 0 / 0.6537 GB, free: 84.98 MB / 462.1 MB Notification: Performance of Templates: time 0.07568/1.281, allocations: 45.87 MB / 0.6985 GB, free: 39.13 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches