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.001576/0.001576, allocations: 113 kB / 17.68 MB, free: 5.473 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.001719/0.00172, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 58.5 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1011, allocations: 49.44 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01423/0.1154, allocations: 13.49 MB / 365 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.1254, allocations: 4.857 MB / 369.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.1276, allocations: 83.75 kB / 369.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1759/0.3036, allocations: 4.179 MB / 374.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.3092, allocations: 2.15 MB / 376.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002572/0.3118, allocations: 1.105 MB / 377.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008951/0.3208, allocations: 5.969 MB / 383.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007802/0.3286, allocations: 5.315 MB / 388.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004057/0.3327, allocations: 2.152 MB / 390.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004245/0.337, allocations: 2.861 MB / 393.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001541/0.3385, allocations: 0.4917 MB / 394.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.3423, allocations: 1.646 MB / 395.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003241/0.3456, allocations: 2.568 MB / 398.4 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004616/0.3502, allocations: 2.905 MB / 401.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3604, allocations: 9.523 MB / 410.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3604, allocations: 0 / 410.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3605, allocations: 0 / 410.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002078/0.3607, allocations: 3.938 kB / 410.8 MB, free: 5.844 MB / 318.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.01095/0.3716, allocations: 6.029 MB / 416.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3717, allocations: 8.031 kB / 416.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.382, allocations: 2.539 MB / 419.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009234/0.3912, allocations: 3.812 MB / 423.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.3914, allocations: 304.7 kB / 423.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/0.3926, allocations: 437.3 kB / 423.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0194/0.412, allocations: 12.4 MB / 436.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.4121, allocations: 59.56 kB / 436.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004313/0.4126, allocations: 188.5 kB / 436.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002816/0.4154, allocations: 2.03 MB / 438.6 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01991/0.4353, allocations: 10.57 MB / 449.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05447/0.4898, allocations: 44.13 MB / 493.3 MB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.5019, allocations: 4.844 MB / 498.1 MB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/0.5046, allocations: 2.006 MB / 0.4884 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.5182, allocations: 7.105 MB / 0.4953 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/0.5183, allocations: 56.39 kB / 0.4954 GB, free: 3.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 4.559e-06/0.5183, allocations: 0 / 0.4954 GB, free: 3.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=223): time 0.06475/0.583, allocations: 19.61 MB / 0.5146 GB, free: 15.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.5832, allocations: 209.8 kB / 0.5148 GB, free: 15.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007956/0.5912, allocations: 4.469 MB / 0.5191 GB, free: 11.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/0.5916, allocations: 57.7 kB / 0.5192 GB, free: 10.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002689/0.5943, allocations: 3.521 MB / 0.5226 GB, free: 7.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.5954, allocations: 0.8373 MB / 0.5234 GB, free: 6.598 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002383/0.5978, allocations: 1.339 MB / 0.5247 GB, free: 5.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5979, allocations: 301.1 kB / 0.525 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.6013, allocations: 2.359 MB / 0.5273 GB, free: 2.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1881/0.7894, allocations: 6.164 MB / 0.5333 GB, free: 139.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.8003, allocations: 9.172 MB / 0.5423 GB, free: 133.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002137/0.8006, allocations: 37.88 kB / 0.5423 GB, free: 133.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02198/0.8226, allocations: 9.551 MB / 0.5517 GB, free: 129.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.8228, allocations: 62.67 kB / 0.5517 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003166/0.8232, allocations: 132.6 kB / 0.5519 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004365/0.8275, allocations: 1.374 MB / 0.5532 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/0.8321, allocations: 1.472 MB / 0.5546 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.8428, allocations: 8.499 MB / 0.5629 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005651/0.8485, allocations: 354.5 kB / 0.5633 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/0.8497, allocations: 384.9 kB / 0.5636 GB, free: 124.9 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.004538/0.8543, allocations: 2.492 MB / 0.5661 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008403/0.8551, allocations: 399 kB / 0.5664 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007824/0.863, allocations: 4.125 MB / 0.5705 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-05/0.863, allocations: 22.31 kB / 0.5705 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/0.863, allocations: 7.594 kB / 0.5705 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.613e-05/0.8631, allocations: 13.78 kB / 0.5705 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/0.8834, allocations: 10.3 MB / 0.5806 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/0.8835, allocations: 4 kB / 0.5806 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.885, allocations: 347.4 kB / 0.5809 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003439/0.8885, allocations: 1.15 MB / 0.582 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002211/0.8887, allocations: 48.92 kB / 0.5821 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008518/0.8972, allocations: 7.115 MB / 0.589 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.8973, allocations: 11.94 kB / 0.589 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.9075, allocations: 6.915 MB / 0.5958 GB, free: 98.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.9089, allocations: 455.8 kB / 0.5962 GB, free: 97.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009913/0.9099, allocations: 40 kB / 0.5963 GB, free: 97.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/0.9121, allocations: 111.9 kB / 0.5964 GB, free: 97.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003855/0.9125, allocations: 145 kB / 0.5965 GB, free: 97.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/0.9127, allocations: 64 kB / 0.5966 GB, free: 97.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005287/0.918, allocations: 2.799 MB / 0.5993 GB, free: 94.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.918, allocations: 0 / 0.5993 GB, free: 94.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006524/0.9245, allocations: 1.218 MB / 0.6005 GB, free: 93.46 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.0006727/0.9252, allocations: 238.5 kB / 0.6007 GB, free: 93.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008569/0.9338, allocations: 5.765 MB / 0.6064 GB, free: 87.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.9338, allocations: 4 kB / 0.6064 GB, free: 87.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.9362, allocations: 1.87 MB / 0.6082 GB, free: 85.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/0.9399, allocations: 0.5342 MB / 0.6087 GB, free: 85.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/0.9589, allocations: 11.03 MB / 0.6195 GB, free: 73.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004752/0.9636, allocations: 3.867 MB / 0.6232 GB, free: 70.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004459/0.9681, allocations: 1.926 MB / 0.6251 GB, free: 68.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009766/0.9691, allocations: 267.4 kB / 0.6254 GB, free: 67.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9691, allocations: 4 kB / 0.6254 GB, free: 67.87 MB / 446.1 MB Notification: Performance of Templates: time 0.07197/1.041, allocations: 40.25 MB / 0.6647 GB, free: 27.96 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/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