Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001489/0.00149, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001631/0.001631, allocations: 187 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09605, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.219/0.3151, allocations: 16.01 MB / 390.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.3267, allocations: 5.142 MB / 395.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004237/0.331, allocations: 116.1 kB / 395.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009467/0.3405, allocations: 4.445 MB / 400.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009464/0.35, allocations: 2.618 MB / 403 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.3531, allocations: 1.168 MB / 404.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.365, allocations: 7.493 MB / 411.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00745/0.3724, allocations: 5.346 MB / 417 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005551/0.378, allocations: 2.491 MB / 419.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00568/0.3837, allocations: 3.384 MB / 422.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001306/0.3851, allocations: 0.5078 MB / 423.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003273/0.3883, allocations: 1.491 MB / 424.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002959/0.3913, allocations: 3.004 MB / 427.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00452/0.3959, allocations: 3.461 MB / 431.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.4083, allocations: 10.65 MB / 442 MB, free: 12.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4084, allocations: 4 kB / 442 MB, free: 12.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4084, allocations: 4 kB / 442 MB, free: 12.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003578/0.4088, allocations: 0 / 442 MB, free: 12.29 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02329/0.4321, allocations: 8.122 MB / 450.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.4321, allocations: 12.03 kB / 450.1 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002195/0.4343, allocations: 1.082 MB / 451.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05454/0.4889, allocations: 8.457 MB / 459.7 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/0.5035, allocations: 6.343 MB / 466 MB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003099/0.5039, allocations: 341.1 kB / 466.3 MB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001758/0.5056, allocations: 463.6 kB / 466.8 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02689/0.5325, allocations: 14.47 MB / 481.3 MB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002357/0.5328, allocations: 71.47 kB / 481.3 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000778/0.5336, allocations: 219.8 kB / 481.5 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005765/0.5394, allocations: 2.832 MB / 484.4 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.5671, allocations: 13.02 MB / 497.4 MB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08367/0.6508, allocations: 58.18 MB / 0.5426 GB, free: 8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/0.6697, allocations: 7.695 MB / 0.5501 GB, free: 156 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.202/0.8717, allocations: 4.998 MB / 0.5549 GB, free: 147.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02394/0.8957, allocations: 12.72 MB / 0.5674 GB, free: 142 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.306e-05/0.8958, allocations: 67.14 kB / 0.5674 GB, free: 141.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.332e-06/0.8958, allocations: 1.312 kB / 0.5674 GB, free: 141.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.052/2.948, allocations: 411.7 MB / 0.9695 GB, free: 126.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.85e-05/2.948, allocations: 273.1 kB / 0.9698 GB, free: 126.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007053/2.955, allocations: 5.566 MB / 0.9752 GB, free: 121 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00209/2.957, allocations: 109.7 kB / 0.9753 GB, free: 120.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002625/2.96, allocations: 4.166 MB / 0.9794 GB, free: 118 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0028/2.963, allocations: 2.093 MB / 0.9814 GB, free: 115.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004138/2.967, allocations: 2.086 MB / 0.9834 GB, free: 113.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.477e-05/2.967, allocations: 305.1 kB / 0.9837 GB, free: 113.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01195/2.979, allocations: 10.88 MB / 0.9944 GB, free: 102.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01412/2.993, allocations: 14.98 MB / 1.009 GB, free: 85.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02769/3.021, allocations: 27.12 MB / 1.035 GB, free: 56.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/3.021, allocations: 36 kB / 1.036 GB, free: 56.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5384/3.559, allocations: 140.4 MB / 1.173 GB, free: 112 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.199e-05/3.559, allocations: 64 kB / 1.173 GB, free: 111.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/3.56, allocations: 136 kB / 1.173 GB, free: 111.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07385/3.633, allocations: 34.56 MB / 1.207 GB, free: 78.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004942/3.638, allocations: 1.491 MB / 1.208 GB, free: 76.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4888/4.127, allocations: 203.2 MB / 1.406 GB, free: 61.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01392/4.141, allocations: 1.712 MB / 1.408 GB, free: 59.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00254/4.144, allocations: 0.5193 MB / 1.409 GB, free: 58.84 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006483/4.15, allocations: 3.093 MB / 1.412 GB, free: 55.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002099/4.152, allocations: 0.6185 MB / 1.412 GB, free: 55.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5259/4.678, allocations: 136.4 MB / 1.546 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.657e-05/4.678, allocations: 58.53 kB / 1.546 GB, free: 104.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001948/4.679, allocations: 60 kB / 1.546 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001261/4.679, allocations: 31.83 kB / 1.546 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6113/5.29, allocations: 205.9 MB / 1.747 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.298e-05/5.29, allocations: 8 kB / 1.747 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/5.292, allocations: 329.8 kB / 1.747 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06747/5.359, allocations: 33.28 MB / 1.78 GB, free: 86.54 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001741/5.361, allocations: 108 kB / 1.78 GB, free: 86.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4857/5.847, allocations: 185.8 MB / 1.961 GB, free: 90.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/5.847, allocations: 11.84 kB / 1.961 GB, free: 90.72 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5585/6.405, allocations: 152.3 MB / 2.11 GB, free: 125.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008766/6.414, allocations: 3.028 MB / 2.113 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00272/6.417, allocations: 101.5 kB / 2.113 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01031/6.427, allocations: 1.477 MB / 2.114 GB, free: 122.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004545/6.432, allocations: 495.5 kB / 2.115 GB, free: 121.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001472/6.433, allocations: 145.7 kB / 2.115 GB, free: 121.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006002/6.439, allocations: 3.574 MB / 2.119 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.52e-07/6.439, allocations: 0 / 2.119 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01631/6.456, allocations: 3.796 MB / 2.122 GB, free: 115.8 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5722/7.028, allocations: 152.8 MB / 2.271 GB, free: 134.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05398/7.082, allocations: 33.67 MB / 2.304 GB, free: 121.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/7.082, allocations: 3.938 kB / 2.304 GB, free: 121.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03762/7.12, allocations: 20.55 MB / 2.324 GB, free: 100.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007168/7.127, allocations: 0.8146 MB / 2.325 GB, free: 99.87 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.22/8.347, allocations: 353.6 MB / 2.671 GB, free: 113.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008471/8.355, allocations: 5.117 MB / 2.676 GB, free: 111 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004479/8.36, allocations: 2.073 MB / 2.678 GB, free: 109.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003896/8.364, allocations: 3.037 MB / 2.681 GB, free: 108.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.192e-06/8.364, allocations: 0 / 2.681 GB, free: 108.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9342/9.298, allocations: 334.7 MB / 3.007 GB, free: 162 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.3/38.6, allocations: 4.922 kB / 3.007 GB, free: 162 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches