Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_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.001119/0.001119, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.001139/0.001139, allocations: 191 kB / 18 MB, free: 5.098 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.353/1.353, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3067, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01688/0.3237, allocations: 15.91 MB / 416.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.3354, allocations: 5.104 MB / 421.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003543/0.339, allocations: 115.6 kB / 421.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008654/0.3477, allocations: 4.446 MB / 425.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00757/0.3553, allocations: 2.606 MB / 428.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002971/0.3583, allocations: 1.154 MB / 429.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3701, allocations: 7.962 MB / 437.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009301/0.3794, allocations: 5.306 MB / 442.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006441/0.3859, allocations: 2.469 MB / 445.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007241/0.3932, allocations: 3.369 MB / 448.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002892/0.3962, allocations: 0.5039 MB / 449.2 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004596/0.4008, allocations: 1.51 MB / 450.7 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004681/0.4055, allocations: 2.992 MB / 453.7 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007308/0.4128, allocations: 3.442 MB / 457.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.429, allocations: 10.6 MB / 467.7 MB, free: 5.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.429, allocations: 3.938 kB / 467.7 MB, free: 5.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.429, allocations: 0 / 467.7 MB, free: 5.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004643/0.4295, allocations: 0 / 467.7 MB, free: 5.012 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02469/0.4542, allocations: 8.063 MB / 475.8 MB, free: 12.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.4543, allocations: 8.031 kB / 475.8 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003579/0.4579, allocations: 1.086 MB / 476.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05632/0.5142, allocations: 8.449 MB / 485.3 MB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01487/0.5291, allocations: 5.87 MB / 491.2 MB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004542/0.5296, allocations: 340.8 kB / 491.6 MB, free: 13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002524/0.5322, allocations: 471.7 kB / 492 MB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03324/0.5654, allocations: 14.46 MB / 0.4946 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004825/0.566, allocations: 79.41 kB / 0.4947 GB, free: 13.06 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001939/0.5679, allocations: 211.8 kB / 0.4949 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005951/0.5739, allocations: 2.832 MB / 0.4976 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0276/0.6015, allocations: 13.01 MB / 0.5104 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3177/0.9193, allocations: 58.12 MB / 0.5671 GB, free: 93.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01581/0.9351, allocations: 7.685 MB / 0.5746 GB, free: 90.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00496/0.9401, allocations: 5.008 MB / 0.5795 GB, free: 88.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/0.9582, allocations: 12.7 MB / 0.5919 GB, free: 77.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.9583, allocations: 66.58 kB / 0.592 GB, free: 77.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.53e-06/0.9583, allocations: 0 / 0.592 GB, free: 77.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.058/3.016, allocations: 411.5 MB / 0.9939 GB, free: 124 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/3.017, allocations: 261.7 kB / 0.9941 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006513/3.023, allocations: 5.5 MB / 0.9995 GB, free: 118.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001728/3.025, allocations: 113.7 kB / 0.9996 GB, free: 118.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002289/3.027, allocations: 4.151 MB / 1.004 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002722/3.03, allocations: 2.11 MB / 1.006 GB, free: 113.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003664/3.034, allocations: 2.072 MB / 1.008 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/3.034, allocations: 305.1 kB / 1.008 GB, free: 110.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01164/3.045, allocations: 10.88 MB / 1.019 GB, free: 99.96 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/3.06, allocations: 14.99 MB / 1.033 GB, free: 83.14 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0294/3.089, allocations: 27.12 MB / 1.06 GB, free: 54.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/3.089, allocations: 36 kB / 1.06 GB, free: 54.13 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5681/3.657, allocations: 140.4 MB / 1.197 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/3.657, allocations: 67.84 kB / 1.197 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/3.658, allocations: 140 kB / 1.197 GB, free: 102.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07607/3.734, allocations: 34.56 MB / 1.231 GB, free: 67.68 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004901/3.739, allocations: 1.483 MB / 1.232 GB, free: 66.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5481/4.287, allocations: 203.2 MB / 1.431 GB, free: 74.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01438/4.301, allocations: 1.707 MB / 1.432 GB, free: 73.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003012/4.304, allocations: 0.5193 MB / 1.433 GB, free: 72.64 MB / 0.5294 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.00802/4.312, allocations: 3.081 MB / 1.436 GB, free: 69.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002772/4.315, allocations: 0.6173 MB / 1.437 GB, free: 69.33 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.546/4.861, allocations: 136.4 MB / 1.57 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.002e-05/4.861, allocations: 56 kB / 1.57 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000168/4.861, allocations: 60 kB / 1.57 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/4.862, allocations: 30.08 kB / 1.57 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6403/5.502, allocations: 205.9 MB / 1.771 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/5.502, allocations: 11.38 kB / 1.771 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/5.504, allocations: 330.9 kB / 1.771 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07157/5.575, allocations: 33.27 MB / 1.804 GB, free: 90.14 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002144/5.578, allocations: 100 kB / 1.804 GB, free: 90.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4783/6.056, allocations: 185.8 MB / 1.985 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/6.056, allocations: 10.62 kB / 1.985 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6098/6.666, allocations: 152.3 MB / 2.134 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/6.668, allocations: 0.6621 MB / 2.135 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003083/6.671, allocations: 98.19 kB / 2.135 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01004/6.681, allocations: 1.485 MB / 2.136 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004454/6.685, allocations: 0.4918 MB / 2.137 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001581/6.687, allocations: 140.5 kB / 2.137 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00707/6.694, allocations: 3.521 MB / 2.14 GB, free: 141 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.153e-06/6.694, allocations: 2.062 kB / 2.14 GB, free: 141 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01751/6.711, allocations: 3.796 MB / 2.144 GB, free: 137.5 MB / 0.5294 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.6265/7.338, allocations: 152.8 MB / 2.293 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0526/7.391, allocations: 33.66 MB / 2.326 GB, free: 131.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/7.391, allocations: 3.844 kB / 2.326 GB, free: 131.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03785/7.428, allocations: 20.55 MB / 2.346 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006672/7.435, allocations: 0.8322 MB / 2.347 GB, free: 121.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.262/8.697, allocations: 353.3 MB / 2.692 GB, free: 155.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007037/8.704, allocations: 5.102 MB / 2.697 GB, free: 154.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00439/8.708, allocations: 2.063 MB / 2.699 GB, free: 154.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003671/8.712, allocations: 3.03 MB / 2.702 GB, free: 154.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.183e-06/8.712, allocations: 0 / 2.702 GB, free: 154.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5984/9.31, allocations: 334.3 MB / 3.029 GB, free: 42.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.56/38.87, allocations: 14.8 kB / 3.029 GB, free: 42.86 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches