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.001348/0.001348, allocations: 112.5 kB / 17.06 MB, free: 5.973 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.002006/0.002006, allocations: 200 kB / 18.01 MB, free: 5.047 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 47.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2974, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01411/0.3116, allocations: 13.48 MB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01006/0.3217, allocations: 4.865 MB / 418.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00222/0.324, allocations: 87.75 kB / 418.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007094/0.3311, allocations: 4.186 MB / 422.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005273/0.3364, allocations: 2.201 MB / 425 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002335/0.3388, allocations: 1.107 MB / 426.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007604/0.3464, allocations: 5.983 MB / 432.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005522/0.3519, allocations: 5.301 MB / 437.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003353/0.3553, allocations: 2.154 MB / 439.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.359, allocations: 2.867 MB / 442.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008764/0.3599, allocations: 500 kB / 442.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002782/0.3627, allocations: 1.646 MB / 444.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002289/0.365, allocations: 2.615 MB / 447.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.3682, allocations: 2.961 MB / 450.2 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.3782, allocations: 9.706 MB / 459.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.3783, allocations: 4 kB / 459.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3783, allocations: 0 / 459.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002676/0.3786, allocations: 3.938 kB / 459.9 MB, free: 12.93 MB / 382.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.01401/0.3926, allocations: 6.367 MB / 466.3 MB, free: 6.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.3926, allocations: 8.031 kB / 466.3 MB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.3943, allocations: 0.9286 MB / 467.2 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03737/0.4317, allocations: 6.055 MB / 473.2 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009965/0.4417, allocations: 4.473 MB / 477.7 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002449/0.442, allocations: 316 kB / 478 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.4434, allocations: 443.6 kB / 478.5 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.466, allocations: 12.32 MB / 490.8 MB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001445/0.4662, allocations: 47.64 kB / 490.8 MB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004732/0.4667, allocations: 187.9 kB / 491 MB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002982/0.4697, allocations: 2.035 MB / 493 MB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02056/0.4903, allocations: 10.35 MB / 0.4916 GB, free: 500 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05546/0.5458, allocations: 44 MB / 0.5346 GB, free: 3.223 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2506/0.7964, allocations: 4.79 MB / 0.5392 GB, free: 128.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002533/0.799, allocations: 1.969 MB / 0.5412 GB, free: 128 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.8096, allocations: 7.006 MB / 0.548 GB, free: 124.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.8097, allocations: 56.86 kB / 0.5481 GB, free: 124.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.318e-06/0.8097, allocations: 3.969 kB / 0.5481 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06008/0.8698, allocations: 19.37 MB / 0.567 GB, free: 112.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.8699, allocations: 209.9 kB / 0.5672 GB, free: 112 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005172/0.8751, allocations: 4.496 MB / 0.5716 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003939/0.8755, allocations: 57.7 kB / 0.5716 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.8772, allocations: 3.702 MB / 0.5752 GB, free: 104.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.8779, allocations: 0.8773 MB / 0.5761 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.8792, allocations: 1.275 MB / 0.5773 GB, free: 101.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.742e-05/0.8792, allocations: 305.1 kB / 0.5776 GB, free: 101.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002539/0.8818, allocations: 2.226 MB / 0.5798 GB, free: 99.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003777/0.8856, allocations: 5.975 MB / 0.5856 GB, free: 91.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007527/0.8931, allocations: 8.909 MB / 0.5943 GB, free: 80.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.802e-05/0.8932, allocations: 36 kB / 0.5944 GB, free: 80.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01426/0.9075, allocations: 9.066 MB / 0.6032 GB, free: 71.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.9076, allocations: 64 kB / 0.6033 GB, free: 71.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.9077, allocations: 128 kB / 0.6034 GB, free: 71.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/0.911, allocations: 1.215 MB / 0.6046 GB, free: 70.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/0.9149, allocations: 1.404 MB / 0.606 GB, free: 68.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009007/0.924, allocations: 8.019 MB / 0.6138 GB, free: 60.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/0.9285, allocations: 347.3 kB / 0.6141 GB, free: 60.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007765/0.9293, allocations: 376 kB / 0.6145 GB, free: 60.06 MB / 462.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.00343/0.9327, allocations: 2.493 MB / 0.6169 GB, free: 57.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007755/0.9335, allocations: 425.1 kB / 0.6173 GB, free: 57.13 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006498/0.94, allocations: 3.885 MB / 0.6211 GB, free: 53.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.362e-05/0.9401, allocations: 24 kB / 0.6211 GB, free: 53.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.9401, allocations: 8 kB / 0.6212 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.243e-05/0.9401, allocations: 7.969 kB / 0.6212 GB, free: 53.19 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/0.9575, allocations: 9.965 MB / 0.6309 GB, free: 43.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/0.9575, allocations: 11.98 kB / 0.6309 GB, free: 43.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.9589, allocations: 319.5 kB / 0.6312 GB, free: 42.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002985/0.9619, allocations: 0.9881 MB / 0.6322 GB, free: 41.81 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002415/0.9622, allocations: 51.92 kB / 0.6322 GB, free: 41.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007579/0.9698, allocations: 6.68 MB / 0.6387 GB, free: 34.94 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.9698, allocations: 8 kB / 0.6388 GB, free: 34.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009172/0.979, allocations: 6.629 MB / 0.6452 GB, free: 28.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/0.9804, allocations: 466.1 kB / 0.6457 GB, free: 27.75 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005072/0.981, allocations: 46.81 kB / 0.6457 GB, free: 27.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.9826, allocations: 107.9 kB / 0.6458 GB, free: 27.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.9829, allocations: 141.1 kB / 0.646 GB, free: 27.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.983, allocations: 63.98 kB / 0.646 GB, free: 27.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003522/0.9865, allocations: 2.832 MB / 0.6488 GB, free: 24.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9865, allocations: 0 / 0.6488 GB, free: 24.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004955/0.9915, allocations: 1.175 MB / 0.6499 GB, free: 23.39 MB / 462.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.009432/1.001, allocations: 7.35 MB / 0.6571 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007427/1.008, allocations: 5.533 MB / 0.6625 GB, free: 10.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.008, allocations: 4.188 kB / 0.6625 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.011, allocations: 1.833 MB / 0.6643 GB, free: 8.586 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003226/1.014, allocations: 0.5641 MB / 0.6649 GB, free: 8.023 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07685/1.091, allocations: 51.5 MB / 0.7151 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00448/1.095, allocations: 3.875 MB / 0.7189 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00426/1.099, allocations: 1.934 MB / 0.7208 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002965/1.102, allocations: 2.296 MB / 0.7231 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/1.102, allocations: 0 / 0.7231 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3605/1.463, allocations: 83.93 MB / 0.805 GB, free: 113.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.3/27.76, allocations: 10.88 kB / 0.805 GB, free: 113.8 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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