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.001391/0.001391, allocations: 102.6 kB / 17.72 MB, free: 5.371 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.001403/0.001403, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001349/0.001349, allocations: 51.94 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1187, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2472/0.3659, allocations: 13.53 MB / 388.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.3777, allocations: 4.861 MB / 393.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00335/0.3812, allocations: 87.62 kB / 393.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008189/0.3894, allocations: 4.187 MB / 397.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008663/0.3981, allocations: 2.15 MB / 400 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003929/0.402, allocations: 1.101 MB / 401.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.4138, allocations: 5.633 MB / 406.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008315/0.4222, allocations: 5.316 MB / 412 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005912/0.4281, allocations: 2.16 MB / 414.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006455/0.4347, allocations: 2.88 MB / 417 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001495/0.4362, allocations: 0.4922 MB / 417.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004718/0.4409, allocations: 1.631 MB / 419.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003958/0.4449, allocations: 2.623 MB / 421.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006214/0.4511, allocations: 2.902 MB / 424.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.4646, allocations: 9.543 MB / 434.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4646, allocations: 4 kB / 434.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4647, allocations: 0 / 434.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002977/0.465, allocations: 0 / 434.2 MB, free: 4.324 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.01858/0.4835, allocations: 6.041 MB / 440.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.244e-05/0.4836, allocations: 8.031 kB / 440.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0128/0.4964, allocations: 2.54 MB / 442.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.5073, allocations: 3.921 MB / 446.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.5077, allocations: 304.5 kB / 447 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.5102, allocations: 443.6 kB / 447.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03027/0.5404, allocations: 12.4 MB / 459.9 MB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003054/0.5408, allocations: 55.44 kB / 459.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00178/0.5426, allocations: 195.8 kB / 460.1 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003738/0.5464, allocations: 2.031 MB / 462.2 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02531/0.5717, allocations: 10.56 MB / 472.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07086/0.6426, allocations: 44.13 MB / 0.5047 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/0.6563, allocations: 4.847 MB / 0.5095 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.66, allocations: 2.006 MB / 0.5114 GB, free: 8.539 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/0.6739, allocations: 7.12 MB / 0.5184 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.674, allocations: 59.56 kB / 0.5184 GB, free: 1.082 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.42e-06/0.674, allocations: 0 / 0.5184 GB, free: 1.082 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06974/0.7438, allocations: 19.65 MB / 0.5376 GB, free: 13.37 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.744, allocations: 209.9 kB / 0.5378 GB, free: 13.12 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00681/0.7508, allocations: 4.493 MB / 0.5422 GB, free: 8.613 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005412/0.7514, allocations: 61.64 kB / 0.5423 GB, free: 8.547 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002534/0.7539, allocations: 3.513 MB / 0.5457 GB, free: 4.984 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001179/0.7551, allocations: 0.8483 MB / 0.5465 GB, free: 4.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001874/0.757, allocations: 1.333 MB / 0.5478 GB, free: 2.781 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.7571, allocations: 305.1 kB / 0.5481 GB, free: 2.48 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004012/0.7611, allocations: 2.367 MB / 0.5504 GB, free: 112 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2636/1.025, allocations: 6.16 MB / 0.5564 GB, free: 143.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/1.037, allocations: 9.172 MB / 0.5654 GB, free: 136.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002279/1.037, allocations: 38.12 kB / 0.5654 GB, free: 136.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0215/1.059, allocations: 9.548 MB / 0.5748 GB, free: 132.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/1.059, allocations: 61.56 kB / 0.5748 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002566/1.059, allocations: 134.1 kB / 0.5749 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004551/1.064, allocations: 1.379 MB / 0.5763 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005058/1.069, allocations: 1.473 MB / 0.5777 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/1.08, allocations: 8.479 MB / 0.586 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/1.086, allocations: 352.9 kB / 0.5863 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009114/1.087, allocations: 392 kB / 0.5867 GB, free: 127.9 MB / 478.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.003923/1.091, allocations: 2.488 MB / 0.5891 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006835/1.091, allocations: 398.1 kB / 0.5895 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007306/1.099, allocations: 4.126 MB / 0.5936 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-05/1.099, allocations: 28 kB / 0.5936 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.099, allocations: 5.719 kB / 0.5936 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/1.099, allocations: 7.688 kB / 0.5936 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/1.116, allocations: 10.14 MB / 0.6035 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/1.116, allocations: 8.875 kB / 0.6035 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/1.117, allocations: 327.5 kB / 0.6038 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003302/1.121, allocations: 1.144 MB / 0.6049 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/1.121, allocations: 51.92 kB / 0.605 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008279/1.129, allocations: 7.146 MB / 0.612 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.129, allocations: 8 kB / 0.612 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009597/1.139, allocations: 6.903 MB / 0.6187 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002406/1.141, allocations: 0.7301 MB / 0.6194 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000449/1.142, allocations: 39.98 kB / 0.6195 GB, free: 100.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/1.143, allocations: 115.9 kB / 0.6196 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/1.144, allocations: 149.9 kB / 0.6197 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.144, allocations: 60 kB / 0.6198 GB, free: 100 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003591/1.147, allocations: 2.826 MB / 0.6225 GB, free: 97.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.147, allocations: 0 / 0.6225 GB, free: 97.18 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005698/1.153, allocations: 1.22 MB / 0.6237 GB, free: 95.97 MB / 478.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.0005314/1.154, allocations: 225.2 kB / 0.6239 GB, free: 95.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008153/1.162, allocations: 5.772 MB / 0.6296 GB, free: 90 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.162, allocations: 4 kB / 0.6296 GB, free: 90 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/1.164, allocations: 1.864 MB / 0.6314 GB, free: 88.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/1.167, allocations: 0.5454 MB / 0.6319 GB, free: 87.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/1.183, allocations: 11.07 MB / 0.6427 GB, free: 76.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003409/1.187, allocations: 3.875 MB / 0.6465 GB, free: 72.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003919/1.191, allocations: 1.936 MB / 0.6484 GB, free: 70.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006539/1.192, allocations: 271.4 kB / 0.6487 GB, free: 70.33 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/1.192, allocations: 4 kB / 0.6487 GB, free: 70.33 MB / 478.1 MB Notification: Performance of Templates: time 0.07256/1.264, allocations: 42.19 MB / 0.6899 GB, free: 28.24 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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