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.001358/0.001358, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001585/0.001585, allocations: 183 kB / 18.66 MB, free: 4.398 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.287/1.287, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001289/0.001289, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08822, allocations: 46.63 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1827/0.271, allocations: 16.01 MB / 390.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.2819, allocations: 5.137 MB / 395.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004036/0.286, allocations: 113.7 kB / 395.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009191/0.2953, allocations: 4.454 MB / 400.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008517/0.3038, allocations: 2.543 MB / 402.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003409/0.3073, allocations: 1.16 MB / 404.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.3188, allocations: 7.501 MB / 411.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007972/0.3268, allocations: 5.334 MB / 416.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004954/0.3318, allocations: 2.501 MB / 419.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005513/0.3373, allocations: 3.388 MB / 422.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001708/0.339, allocations: 0.5039 MB / 423.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004109/0.3432, allocations: 1.49 MB / 424.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003867/0.3471, allocations: 3 MB / 427.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006059/0.3531, allocations: 3.461 MB / 431.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01329/0.3664, allocations: 10.61 MB / 441.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3665, allocations: 0 / 441.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3665, allocations: 0 / 441.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003866/0.3669, allocations: 4 kB / 441.9 MB, free: 12.44 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.0219/0.3888, allocations: 7.926 MB / 449.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.3889, allocations: 12.02 kB / 449.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00304/0.3919, allocations: 1.078 MB / 450.9 MB, free: 3.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05189/0.4438, allocations: 8.409 MB / 459.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/0.4571, allocations: 6.329 MB / 465.6 MB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/0.4575, allocations: 341.1 kB / 465.9 MB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00185/0.4594, allocations: 471.5 kB / 466.4 MB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0281/0.4875, allocations: 14.47 MB / 480.9 MB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003022/0.4878, allocations: 67.38 kB / 480.9 MB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001557/0.4894, allocations: 211.8 kB / 481.2 MB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005441/0.4949, allocations: 2.84 MB / 484 MB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02656/0.5214, allocations: 13.01 MB / 497 MB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07718/0.5987, allocations: 58.07 MB / 0.5421 GB, free: 8.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/0.6167, allocations: 7.691 MB / 0.5496 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1875/0.8042, allocations: 5.004 MB / 0.5545 GB, free: 147.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01933/0.8236, allocations: 12.7 MB / 0.5669 GB, free: 142.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/0.8237, allocations: 69.12 kB / 0.5669 GB, free: 142.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 8.356e-06/0.8237, allocations: 2.25 kB / 0.5669 GB, free: 142.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.889/2.712, allocations: 411.4 MB / 0.9687 GB, free: 127.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/2.712, allocations: 272.5 kB / 0.9689 GB, free: 127.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006277/2.719, allocations: 5.56 MB / 0.9743 GB, free: 121.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001543/2.72, allocations: 113.2 kB / 0.9745 GB, free: 121.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/2.722, allocations: 4.018 MB / 0.9784 GB, free: 118.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002201/2.724, allocations: 1.997 MB / 0.9803 GB, free: 116.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003603/2.728, allocations: 2.073 MB / 0.9824 GB, free: 114.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.195e-05/2.728, allocations: 304.9 kB / 0.9826 GB, free: 114 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01097/2.739, allocations: 10.88 MB / 0.9933 GB, free: 103.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01287/2.752, allocations: 14.98 MB / 1.008 GB, free: 86.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02638/2.778, allocations: 27.12 MB / 1.034 GB, free: 57.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-05/2.778, allocations: 43.94 kB / 1.034 GB, free: 57.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4937/3.272, allocations: 140.4 MB / 1.172 GB, free: 112.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.057e-05/3.272, allocations: 68.92 kB / 1.172 GB, free: 112.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/3.272, allocations: 140 kB / 1.172 GB, free: 112.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07097/3.343, allocations: 34.56 MB / 1.205 GB, free: 78.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004451/3.348, allocations: 1.483 MB / 1.207 GB, free: 77.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4354/3.783, allocations: 203.1 MB / 1.405 GB, free: 61.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01172/3.795, allocations: 1.71 MB / 1.407 GB, free: 60.17 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002171/3.797, allocations: 0.5232 MB / 1.407 GB, free: 59.65 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.005476/3.803, allocations: 3.1 MB / 1.411 GB, free: 56.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001725/3.804, allocations: 0.5875 MB / 1.411 GB, free: 56.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4704/4.275, allocations: 136.4 MB / 1.544 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.599e-05/4.275, allocations: 58.5 kB / 1.544 GB, free: 105.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001562/4.275, allocations: 64.48 kB / 1.544 GB, free: 105.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000116/4.275, allocations: 27.89 kB / 1.544 GB, free: 105.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5484/4.824, allocations: 205.9 MB / 1.746 GB, free: 116.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.697e-05/4.824, allocations: 8 kB / 1.746 GB, free: 116.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/4.825, allocations: 330.5 kB / 1.746 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06834/4.894, allocations: 33.28 MB / 1.778 GB, free: 87.38 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001892/4.895, allocations: 96 kB / 1.778 GB, free: 87.28 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4239/5.319, allocations: 185.8 MB / 1.96 GB, free: 91.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/5.319, allocations: 13.19 kB / 1.96 GB, free: 91.38 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4989/5.818, allocations: 152.3 MB / 2.109 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006313/5.825, allocations: 2.998 MB / 2.112 GB, free: 124.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002258/5.827, allocations: 100.1 kB / 2.112 GB, free: 124.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008906/5.836, allocations: 1.479 MB / 2.113 GB, free: 122.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003451/5.839, allocations: 499 kB / 2.114 GB, free: 122.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008159/5.84, allocations: 143.5 kB / 2.114 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004795/5.845, allocations: 3.562 MB / 2.117 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.21e-07/5.845, allocations: 0 / 2.117 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01259/5.858, allocations: 3.803 MB / 2.121 GB, free: 116.4 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.4936/6.351, allocations: 152.7 MB / 2.27 GB, free: 135 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.04997/6.401, allocations: 33.63 MB / 2.303 GB, free: 121.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/6.401, allocations: 2.438 kB / 2.303 GB, free: 121.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03567/6.437, allocations: 20.52 MB / 2.323 GB, free: 101.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006413/6.443, allocations: 0.8253 MB / 2.324 GB, free: 100.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.072/7.516, allocations: 353.4 MB / 2.669 GB, free: 114 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005905/7.522, allocations: 5.118 MB / 2.674 GB, free: 111.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00398/7.526, allocations: 2.072 MB / 2.676 GB, free: 110 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003127/7.529, allocations: 3.036 MB / 2.679 GB, free: 109.5 MB / 0.5137 GB Notification: Performance of SimCode: time 2.004e-06/7.529, allocations: 3.875 kB / 2.679 GB, free: 109.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7681/8.297, allocations: 341.9 MB / 3.013 GB, free: 145 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.37/35.67, allocations: 4.5 kB / 3.013 GB, free: 145 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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