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.001144/0.001144, allocations: 104 kB / 16.92 MB, free: 5.793 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.001172/0.001172, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.35/1.35, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 51.64 kB / 300.6 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1001, allocations: 49.44 MB / 350.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01361/0.1138, allocations: 13.5 MB / 363.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008883/0.1227, allocations: 4.858 MB / 368.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.1248, allocations: 83.75 kB / 368.5 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1634/0.2882, allocations: 4.177 MB / 372.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004893/0.2931, allocations: 2.141 MB / 374.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.2952, allocations: 1.115 MB / 375.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007254/0.3025, allocations: 5.962 MB / 381.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00539/0.3079, allocations: 5.327 MB / 387.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002908/0.3108, allocations: 2.151 MB / 389.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003102/0.314, allocations: 2.866 MB / 392.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008314/0.3148, allocations: 0.4908 MB / 392.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002417/0.3172, allocations: 1.63 MB / 394.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00161/0.3189, allocations: 2.567 MB / 396.9 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.321, allocations: 2.906 MB / 399.8 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008188/0.3292, allocations: 9.302 MB / 409.1 MB, free: 6.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3292, allocations: 0 / 409.1 MB, free: 6.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3292, allocations: 0 / 409.1 MB, free: 6.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002075/0.3294, allocations: 0 / 409.1 MB, free: 6.605 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.01236/0.3418, allocations: 6.021 MB / 415.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3418, allocations: 8.031 kB / 415.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/0.3529, allocations: 2.54 MB / 417.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00719/0.3601, allocations: 3.739 MB / 421.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.3603, allocations: 307.3 kB / 421.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008201/0.3611, allocations: 440 kB / 422.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0213/0.3824, allocations: 12.41 MB / 434.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000137/0.3826, allocations: 55.45 kB / 434.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004774/0.3831, allocations: 187.6 kB / 434.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/0.3861, allocations: 2.025 MB / 436.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02233/0.4084, allocations: 10.57 MB / 447.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05767/0.4661, allocations: 44.36 MB / 491.8 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01314/0.4793, allocations: 4.836 MB / 496.6 MB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002795/0.4821, allocations: 2.018 MB / 498.6 MB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.4937, allocations: 7.112 MB / 0.4939 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.4938, allocations: 51.56 kB / 0.4939 GB, free: 3.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 4.709e-06/0.4938, allocations: 0 / 0.4939 GB, free: 3.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=223): time 0.07044/0.5642, allocations: 19.6 MB / 0.5131 GB, free: 364 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.5644, allocations: 205.9 kB / 0.5133 GB, free: 112 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006987/0.5714, allocations: 4.469 MB / 0.5176 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000373/0.5718, allocations: 61.64 kB / 0.5177 GB, free: 11.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002508/0.5743, allocations: 3.512 MB / 0.5211 GB, free: 8.043 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/0.5754, allocations: 0.8339 MB / 0.5219 GB, free: 7.215 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002025/0.5774, allocations: 1.351 MB / 0.5233 GB, free: 5.855 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.5775, allocations: 301.1 kB / 0.5235 GB, free: 5.559 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003269/0.5808, allocations: 2.359 MB / 0.5258 GB, free: 3.195 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1888/0.7696, allocations: 6.162 MB / 0.5319 GB, free: 140.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/0.7802, allocations: 9.17 MB / 0.5408 GB, free: 133.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002028/0.7805, allocations: 37.16 kB / 0.5409 GB, free: 133.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0202/0.8007, allocations: 9.548 MB / 0.5502 GB, free: 130.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.8008, allocations: 65.5 kB / 0.5502 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001838/0.801, allocations: 133.1 kB / 0.5504 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004054/0.8051, allocations: 1.38 MB / 0.5517 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004529/0.8096, allocations: 1.478 MB / 0.5532 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.8197, allocations: 8.501 MB / 0.5615 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005437/0.8252, allocations: 353.7 kB / 0.5618 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008629/0.8261, allocations: 389.4 kB / 0.5622 GB, free: 125.3 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.003817/0.8299, allocations: 2.491 MB / 0.5646 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007424/0.8307, allocations: 402.8 kB / 0.565 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007263/0.8379, allocations: 4.128 MB / 0.569 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.403e-05/0.838, allocations: 21.81 kB / 0.569 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.838, allocations: 10.72 kB / 0.5691 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/0.838, allocations: 7.688 kB / 0.5691 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0171/0.8551, allocations: 10.35 MB / 0.5792 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/0.8552, allocations: 8.594 kB / 0.5792 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.8567, allocations: 347.5 kB / 0.5795 GB, free: 113.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003362/0.8601, allocations: 1.155 MB / 0.5806 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001999/0.8603, allocations: 47.94 kB / 0.5807 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008051/0.8684, allocations: 7.117 MB / 0.5876 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.8684, allocations: 4 kB / 0.5876 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009303/0.8777, allocations: 6.906 MB / 0.5944 GB, free: 98.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.8788, allocations: 455.8 kB / 0.5948 GB, free: 98.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004756/0.8793, allocations: 44 kB / 0.5949 GB, free: 97.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.8808, allocations: 107.9 kB / 0.595 GB, free: 97.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003258/0.8812, allocations: 141 kB / 0.5951 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.8813, allocations: 67.98 kB / 0.5952 GB, free: 97.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003267/0.8846, allocations: 2.807 MB / 0.5979 GB, free: 94.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.833e-06/0.8846, allocations: 0 / 0.5979 GB, free: 94.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005298/0.8899, allocations: 1.217 MB / 0.5991 GB, free: 93.64 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.0005021/0.8904, allocations: 235.4 kB / 0.5993 GB, free: 93.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009821/0.9002, allocations: 6.847 MB / 0.606 GB, free: 86.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.9003, allocations: 13.69 kB / 0.606 GB, free: 86.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.9026, allocations: 1.864 MB / 0.6078 GB, free: 84.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/0.906, allocations: 0.5444 MB / 0.6084 GB, free: 84.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/0.9242, allocations: 11.16 MB / 0.6193 GB, free: 72.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003647/0.9279, allocations: 3.867 MB / 0.623 GB, free: 69.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004375/0.9323, allocations: 1.922 MB / 0.6249 GB, free: 67.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007137/0.9331, allocations: 267.4 kB / 0.6252 GB, free: 66.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.9331, allocations: 0 / 0.6252 GB, free: 66.84 MB / 446.1 MB Notification: Performance of Templates: time 0.07631/1.009, allocations: 45.8 MB / 0.6699 GB, free: 21.29 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