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.001382/0.001382, allocations: 104 kB / 17.59 MB, free: 5.555 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.001452/0.001452, allocations: 191.5 kB / 18.51 MB, free: 4.637 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.474/1.474, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.00121, allocations: 58.14 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1205, allocations: 49.44 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01587/0.1364, allocations: 13.49 MB / 364.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.1477, allocations: 4.861 MB / 369.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.151, allocations: 87.69 kB / 369.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2144/0.3654, allocations: 4.171 MB / 373.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006586/0.372, allocations: 2.147 MB / 375.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002728/0.3748, allocations: 1.106 MB / 376.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008962/0.3838, allocations: 5.968 MB / 382.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006193/0.39, allocations: 5.316 MB / 387.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.3936, allocations: 2.155 MB / 390 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00365/0.3973, allocations: 2.873 MB / 392.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009738/0.3982, allocations: 0.49 MB / 393.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002751/0.401, allocations: 1.633 MB / 395 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001973/0.403, allocations: 2.57 MB / 397.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.4056, allocations: 2.9 MB / 400.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009364/0.415, allocations: 9.297 MB / 409.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.4151, allocations: 0 / 409.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4151, allocations: 4 kB / 409.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002336/0.4153, allocations: 0 / 409.8 MB, free: 6.453 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.01444/0.4297, allocations: 6.017 MB / 415.8 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.4298, allocations: 12.03 kB / 415.8 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/0.4419, allocations: 2.535 MB / 418.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008607/0.4506, allocations: 3.744 MB / 422.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003188/0.4509, allocations: 311.9 kB / 422.4 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.4528, allocations: 435.6 kB / 422.8 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02586/0.4787, allocations: 12.41 MB / 435.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002682/0.4791, allocations: 51.58 kB / 435.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001365/0.4804, allocations: 190.3 kB / 435.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00336/0.4838, allocations: 2.031 MB / 437.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02282/0.5066, allocations: 10.57 MB / 448.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06141/0.5681, allocations: 44.36 MB / 492.4 MB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01396/0.5821, allocations: 4.841 MB / 497.3 MB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003069/0.5852, allocations: 2.005 MB / 499.3 MB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01255/0.5978, allocations: 7.115 MB / 0.4945 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.547e-05/0.5979, allocations: 63.55 kB / 0.4946 GB, free: 3.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 4.689e-06/0.5979, allocations: 0 / 0.4946 GB, free: 3.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=223): time 0.0709/0.6688, allocations: 19.6 MB / 0.5137 GB, free: 212 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.669, allocations: 205.9 kB / 0.5139 GB, free: 15.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007356/0.6764, allocations: 4.473 MB / 0.5183 GB, free: 11.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003959/0.6768, allocations: 61.64 kB / 0.5184 GB, free: 11.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002606/0.6794, allocations: 3.514 MB / 0.5218 GB, free: 7.887 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001059/0.6805, allocations: 0.8422 MB / 0.5226 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002397/0.6829, allocations: 1.335 MB / 0.5239 GB, free: 5.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.683, allocations: 301.1 kB / 0.5242 GB, free: 5.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003835/0.6869, allocations: 2.367 MB / 0.5265 GB, free: 3.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2152/0.9021, allocations: 6.166 MB / 0.5325 GB, free: 139.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/0.9142, allocations: 9.158 MB / 0.5415 GB, free: 133.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002829/0.9145, allocations: 41.69 kB / 0.5415 GB, free: 133.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0212/0.9357, allocations: 9.548 MB / 0.5508 GB, free: 129.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.936, allocations: 62 kB / 0.5509 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002178/0.9362, allocations: 133.2 kB / 0.551 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004272/0.9405, allocations: 1.377 MB / 0.5524 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004494/0.945, allocations: 1.467 MB / 0.5538 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.9551, allocations: 8.515 MB / 0.5621 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00511/0.9602, allocations: 353.1 kB / 0.5625 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007317/0.961, allocations: 386.4 kB / 0.5628 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.003736/0.9647, allocations: 2.491 MB / 0.5653 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007313/0.9655, allocations: 399 kB / 0.5656 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.9728, allocations: 4.124 MB / 0.5697 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/0.9729, allocations: 33.06 kB / 0.5697 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.9729, allocations: 7.25 kB / 0.5697 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/0.9729, allocations: 11.58 kB / 0.5697 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/0.9896, allocations: 10.35 MB / 0.5798 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.9896, allocations: 8 kB / 0.5798 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/0.9911, allocations: 347.4 kB / 0.5802 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003383/0.9945, allocations: 1.146 MB / 0.5813 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/0.9947, allocations: 56.31 kB / 0.5813 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008211/1.003, allocations: 7.113 MB / 0.5883 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/1.003, allocations: 11.94 kB / 0.5883 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009633/1.013, allocations: 6.898 MB / 0.595 GB, free: 98.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.014, allocations: 455.8 kB / 0.5955 GB, free: 97.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005452/1.015, allocations: 48 kB / 0.5955 GB, free: 97.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.016, allocations: 111.9 kB / 0.5956 GB, free: 97.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004329/1.017, allocations: 144 kB / 0.5958 GB, free: 97.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/1.017, allocations: 67.52 kB / 0.5958 GB, free: 97.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004202/1.021, allocations: 2.807 MB / 0.5986 GB, free: 94.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.021, allocations: 0 / 0.5986 GB, free: 94.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005747/1.027, allocations: 1.216 MB / 0.5997 GB, free: 93.49 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.0005372/1.028, allocations: 238.4 kB / 0.6 GB, free: 93.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/1.038, allocations: 6.85 MB / 0.6067 GB, free: 86.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/1.038, allocations: 4.938 kB / 0.6067 GB, free: 86.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/1.04, allocations: 1.869 MB / 0.6085 GB, free: 84.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/1.044, allocations: 0.5237 MB / 0.609 GB, free: 84.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01779/1.061, allocations: 11.68 MB / 0.6204 GB, free: 72.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003786/1.065, allocations: 3.851 MB / 0.6242 GB, free: 68.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.066, allocations: 316.7 kB / 0.6245 GB, free: 68.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.603e-06/1.066, allocations: 0 / 0.6245 GB, free: 68.09 MB / 446.1 MB Notification: Performance of Templates: time 0.2946/1.361, allocations: 90.26 MB / 0.7126 GB, free: 128.2 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/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