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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.001156/0.001156, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.271/1.271, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 47.31 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08742, allocations: 49.44 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2122/0.2996, allocations: 55.42 MB / 405.1 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02721/0.3269, allocations: 11.81 MB / 416.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01279/0.3397, allocations: 241.3 kB / 417.1 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007163/0.347, allocations: 4.057 MB / 421.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005566/0.3525, allocations: 2.002 MB / 423.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.355, allocations: 1.036 MB / 424.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007782/0.3628, allocations: 6.36 MB / 430.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006202/0.369, allocations: 5.589 MB / 436.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.3724, allocations: 2.2 MB / 438.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004068/0.3765, allocations: 3.175 MB / 441.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009691/0.3775, allocations: 0.4922 MB / 442.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.3802, allocations: 1.65 MB / 443.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002439/0.3827, allocations: 2.611 MB / 446.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.386, allocations: 2.984 MB / 449.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009987/0.396, allocations: 9.487 MB / 458.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.396, allocations: 0 / 458.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.396, allocations: 0 / 458.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002478/0.3963, allocations: 0 / 458.8 MB, free: 7.496 MB / 366.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.01342/0.4097, allocations: 6.195 MB / 465 MB, free: 1.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.4098, allocations: 12.03 kB / 465 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001459/0.4112, allocations: 0.9247 MB / 465.9 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03611/0.4473, allocations: 6.02 MB / 471.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009484/0.4569, allocations: 4.39 MB / 476.3 MB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/0.4571, allocations: 308.3 kB / 476.6 MB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.4583, allocations: 443.6 kB / 477.1 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/0.4783, allocations: 12.31 MB / 489.4 MB, free: 8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.4784, allocations: 59.42 kB / 489.4 MB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004385/0.4789, allocations: 187.9 kB / 489.6 MB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002961/0.4818, allocations: 2.027 MB / 491.6 MB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01826/0.5001, allocations: 10.36 MB / 0.4902 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2186/0.7188, allocations: 44.14 MB / 0.5333 GB, free: 140.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.7306, allocations: 4.791 MB / 0.538 GB, free: 139.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/0.7329, allocations: 1.972 MB / 0.54 GB, free: 139.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009504/0.7425, allocations: 6.987 MB / 0.5468 GB, free: 137.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.7425, allocations: 60.06 kB / 0.5468 GB, free: 137.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.128e-06/0.7425, allocations: 0 / 0.5468 GB, free: 137.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05771/0.8003, allocations: 19.1 MB / 0.5655 GB, free: 130.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.8004, allocations: 207.8 kB / 0.5657 GB, free: 130.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004507/0.8049, allocations: 4.484 MB / 0.5701 GB, free: 128.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.805, allocations: 56.8 kB / 0.5701 GB, free: 128.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.8064, allocations: 3.563 MB / 0.5736 GB, free: 125 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004865/0.8069, allocations: 0.8359 MB / 0.5744 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/0.8081, allocations: 1.266 MB / 0.5756 GB, free: 122.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.451e-05/0.8081, allocations: 309.1 kB / 0.5759 GB, free: 122.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/0.8105, allocations: 2.226 MB / 0.5781 GB, free: 120.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003378/0.8138, allocations: 5.98 MB / 0.584 GB, free: 112.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006307/0.8202, allocations: 8.912 MB / 0.5927 GB, free: 101.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.855e-05/0.8202, allocations: 36 kB / 0.5927 GB, free: 101.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01149/0.8317, allocations: 9.036 MB / 0.6015 GB, free: 92.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.8318, allocations: 64 kB / 0.6016 GB, free: 92.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.721e-05/0.8319, allocations: 131.9 kB / 0.6017 GB, free: 92.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003148/0.835, allocations: 1.213 MB / 0.6029 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003296/0.8383, allocations: 1.408 MB / 0.6043 GB, free: 90 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008639/0.847, allocations: 8.054 MB / 0.6121 GB, free: 81.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003505/0.8505, allocations: 347.1 kB / 0.6125 GB, free: 81.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/0.8508, allocations: 376 kB / 0.6128 GB, free: 81.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * 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.002524/0.8534, allocations: 2.477 MB / 0.6152 GB, free: 78.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004365/0.8538, allocations: 410.7 kB / 0.6156 GB, free: 78.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006264/0.8601, allocations: 3.881 MB / 0.6194 GB, free: 74.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.8601, allocations: 24 kB / 0.6194 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.8601, allocations: 7.938 kB / 0.6195 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.8602, allocations: 15.95 kB / 0.6195 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.8735, allocations: 10.19 MB / 0.6294 GB, free: 63.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.8735, allocations: 4 kB / 0.6294 GB, free: 63.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.8749, allocations: 347.5 kB / 0.6298 GB, free: 63.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002862/0.8778, allocations: 0.9801 MB / 0.6307 GB, free: 62.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.8779, allocations: 52.22 kB / 0.6308 GB, free: 62.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007245/0.8852, allocations: 6.667 MB / 0.6373 GB, free: 55.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.8852, allocations: 11.94 kB / 0.6373 GB, free: 55.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008054/0.8932, allocations: 6.608 MB / 0.6437 GB, free: 49.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.8938, allocations: 451.7 kB / 0.6442 GB, free: 48.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/0.8943, allocations: 43.92 kB / 0.6442 GB, free: 48.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.8957, allocations: 107.9 kB / 0.6443 GB, free: 48.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.8959, allocations: 152.5 kB / 0.6445 GB, free: 48.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.8961, allocations: 56 kB / 0.6445 GB, free: 48.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.8988, allocations: 2.832 MB / 0.6473 GB, free: 45.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8989, allocations: 0 / 0.6473 GB, free: 45.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003872/0.9027, allocations: 1.176 MB / 0.6484 GB, free: 44.27 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.008511/0.9112, allocations: 7.347 MB / 0.6556 GB, free: 36.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008179/0.9194, allocations: 6.619 MB / 0.6621 GB, free: 30.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.9195, allocations: 0 / 0.6621 GB, free: 30.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.9214, allocations: 1.836 MB / 0.6639 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/0.9241, allocations: 0.5669 MB / 0.6644 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2452/1.169, allocations: 61.78 MB / 0.7247 GB, free: 136.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00379/1.173, allocations: 3.869 MB / 0.7285 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004329/1.178, allocations: 1.932 MB / 0.7304 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/1.18, allocations: 2.293 MB / 0.7326 GB, free: 132.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/1.18, allocations: 0 / 0.7326 GB, free: 132.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0981/1.278, allocations: 87.85 MB / 0.8184 GB, free: 55.65 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/1.278, allocations: 230.5 kB / 0.8187 GB, free: 55.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.964/5.242, allocations: 0 / 0.8187 GB, free: 55.4 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > 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