Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 208 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 43.94 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.26, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01633/0.2764, allocations: 13.67 MB / 445.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.2874, allocations: 4.936 MB / 450.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.29, allocations: 135.3 kB / 450.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008489/0.2985, allocations: 4.314 MB / 454.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006858/0.3054, allocations: 2.579 MB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.308, allocations: 1.158 MB / 458.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01326/0.3213, allocations: 8.115 MB / 466.8 MB, free: 3.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006972/0.3283, allocations: 4.287 MB / 471.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004557/0.3328, allocations: 2.504 MB / 473.6 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005986/0.3388, allocations: 3.622 MB / 477.2 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.3406, allocations: 0.5039 MB / 477.7 MB, free: 8.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00365/0.3443, allocations: 1.401 MB / 479.1 MB, free: 7.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003946/0.3482, allocations: 3.058 MB / 482.1 MB, free: 4.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005388/0.3536, allocations: 2.587 MB / 484.7 MB, free: 1.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0143/0.3679, allocations: 10.6 MB / 495.3 MB, free: 6.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.3679, allocations: 0 / 495.3 MB, free: 6.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3679, allocations: 0 / 495.3 MB, free: 6.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003182/0.3682, allocations: 0 / 495.3 MB, free: 6.898 MB / 398.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.02066/0.3889, allocations: 8.023 MB / 0.4916 GB, free: 14.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.389, allocations: 12.03 kB / 0.4916 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002068/0.3892, allocations: 171.6 kB / 0.4917 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002253/0.3914, allocations: 1.082 MB / 0.4928 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05252/0.4439, allocations: 8.558 MB / 0.5011 GB, free: 4.945 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01246/0.4564, allocations: 5.47 MB / 0.5065 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.4567, allocations: 348.6 kB / 0.5068 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.4584, allocations: 471.7 kB / 0.5073 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02652/0.4849, allocations: 14.55 MB / 0.5215 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002231/0.4851, allocations: 79.47 kB / 0.5216 GB, free: 15.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006479/0.4858, allocations: 211.8 kB / 0.5218 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005472/0.4912, allocations: 2.836 MB / 0.5245 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2229/0.7142, allocations: 13.02 MB / 0.5372 GB, free: 93.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05482/0.769, allocations: 55.04 MB / 0.591 GB, free: 49.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.7836, allocations: 6.883 MB / 0.5977 GB, free: 42.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004402/0.788, allocations: 4.55 MB / 0.6022 GB, free: 38.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.8035, allocations: 11.43 MB / 0.6133 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.8036, allocations: 72.52 kB / 0.6134 GB, free: 26.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 8.466e-06/0.8036, allocations: 0 / 0.6134 GB, free: 26.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.929/2.732, allocations: 411.3 MB / 1.015 GB, free: 147.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/2.732, allocations: 265.4 kB / 1.015 GB, free: 147 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005413/2.738, allocations: 5.494 MB / 1.021 GB, free: 141.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001268/2.739, allocations: 113.7 kB / 1.021 GB, free: 141.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001578/2.741, allocations: 4.16 MB / 1.025 GB, free: 138.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001796/2.742, allocations: 2.101 MB / 1.027 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003426/2.746, allocations: 2.077 MB / 1.029 GB, free: 134.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.391e-05/2.746, allocations: 305.1 kB / 1.029 GB, free: 134.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01018/2.756, allocations: 10.87 MB / 1.04 GB, free: 123.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01179/2.768, allocations: 15.07 MB / 1.055 GB, free: 106.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02446/2.792, allocations: 27.12 MB / 1.081 GB, free: 77.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-05/2.792, allocations: 40 kB / 1.081 GB, free: 77.37 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4954/3.288, allocations: 140.2 MB / 1.218 GB, free: 135.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/3.288, allocations: 64 kB / 1.218 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001319/3.288, allocations: 136 kB / 1.218 GB, free: 135.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0694/3.357, allocations: 34.56 MB / 1.252 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00413/3.361, allocations: 1.486 MB / 1.253 GB, free: 99.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4171/3.778, allocations: 200.7 MB / 1.449 GB, free: 102.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/3.79, allocations: 1.711 MB / 1.451 GB, free: 101.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002515/3.793, allocations: 0.5178 MB / 1.452 GB, free: 101.1 MB / 0.545 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.005255/3.798, allocations: 3.085 MB / 1.455 GB, free: 98.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001682/3.8, allocations: 0.6072 MB / 1.455 GB, free: 98.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.454/4.254, allocations: 136.2 MB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.95e-05/4.254, allocations: 59.94 kB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.737e-05/4.254, allocations: 59.62 kB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-05/4.254, allocations: 29.84 kB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5305/4.785, allocations: 202.7 MB / 1.786 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.014e-05/4.785, allocations: 7.844 kB / 1.786 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/4.786, allocations: 329.1 kB / 1.787 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06412/4.85, allocations: 33.28 MB / 1.819 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001437/4.852, allocations: 108.8 kB / 1.819 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4019/5.254, allocations: 183.5 MB / 1.998 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/5.254, allocations: 7.781 kB / 1.998 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2814/5.535, allocations: 152 MB / 2.147 GB, free: 37.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/5.536, allocations: 0.5779 MB / 2.147 GB, free: 37.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00236/5.539, allocations: 103.8 kB / 2.148 GB, free: 37.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007567/5.546, allocations: 1.483 MB / 2.149 GB, free: 35.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003425/5.55, allocations: 0.5183 MB / 2.149 GB, free: 35.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008106/5.551, allocations: 136 kB / 2.15 GB, free: 34.88 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004021/5.555, allocations: 3.521 MB / 2.153 GB, free: 31.38 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/5.555, allocations: 2.75 kB / 2.153 GB, free: 31.38 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01075/5.565, allocations: 3.784 MB / 2.157 GB, free: 27.6 MB / 0.5606 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.4711/6.037, allocations: 152.5 MB / 2.306 GB, free: 84.63 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.04671/6.083, allocations: 32.61 MB / 2.338 GB, free: 52.23 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/6.083, allocations: 0 / 2.338 GB, free: 52.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0332/6.116, allocations: 19.57 MB / 2.357 GB, free: 32.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00667/6.123, allocations: 0.8168 MB / 2.357 GB, free: 32 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.027/7.15, allocations: 352.9 MB / 2.702 GB, free: 88.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006183/7.156, allocations: 4.611 MB / 2.707 GB, free: 85.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003897/7.16, allocations: 2.065 MB / 2.709 GB, free: 83.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003072/7.163, allocations: 3.055 MB / 2.712 GB, free: 82.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/7.163, allocations: 0 / 2.712 GB, free: 82.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7304/7.893, allocations: 343.2 MB / 3.047 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.91/36.8, allocations: 6.328 kB / 3.047 GB, free: 153.6 MB / 0.5606 GB " [Timeout remaining time 623] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 42.47266438300721]