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.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.001285/0.001285, allocations: 100.5 kB / 21.95 MB, free: 5.215 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.001354/0.001354, allocations: 213.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 207.7 MB / 236.1 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 55.86 kB / 348 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.232, allocations: 49.15 MB / 397.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01165/0.2436, allocations: 13.79 MB / 410.9 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.2542, allocations: 4.956 MB / 415.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.2564, allocations: 136.9 kB / 416 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007966/0.2644, allocations: 4.321 MB / 420.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006422/0.2708, allocations: 2.654 MB / 423 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.2734, allocations: 1.16 MB / 424.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.2842, allocations: 7.503 MB / 431.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00612/0.2903, allocations: 4.323 MB / 436 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004397/0.2947, allocations: 2.535 MB / 438.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005928/0.3006, allocations: 3.641 MB / 442.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.3018, allocations: 0.5039 MB / 442.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.3049, allocations: 1.409 MB / 444.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003169/0.308, allocations: 3.085 MB / 447.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00353/0.3116, allocations: 2.63 MB / 449.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.3236, allocations: 10.7 MB / 460.5 MB, free: 3.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3236, allocations: 4 kB / 460.5 MB, free: 3.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3236, allocations: 0 / 460.5 MB, free: 3.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000254/0.3239, allocations: 0 / 460.5 MB, free: 3.668 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.0187/0.3426, allocations: 8.046 MB / 468.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3426, allocations: 15.98 kB / 468.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001977/0.3428, allocations: 175.6 kB / 468.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001666/0.3445, allocations: 1.082 MB / 469.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05241/0.3969, allocations: 8.453 MB / 478.3 MB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.4105, allocations: 6.287 MB / 484.5 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003039/0.4108, allocations: 340.7 kB / 484.9 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/0.4122, allocations: 463.7 kB / 485.3 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02652/0.4387, allocations: 14.56 MB / 499.9 MB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.439, allocations: 79.39 kB / 500 MB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006382/0.4396, allocations: 211.8 kB / 0.4885 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005615/0.4452, allocations: 2.84 MB / 0.4912 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.4726, allocations: 13.02 MB / 0.5039 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08067/0.5533, allocations: 55.09 MB / 0.5577 GB, free: 2.523 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1876/0.741, allocations: 6.872 MB / 0.5645 GB, free: 143.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005649/0.7466, allocations: 4.55 MB / 0.5689 GB, free: 142.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01882/0.7654, allocations: 11.44 MB / 0.5801 GB, free: 137.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.7655, allocations: 74.36 kB / 0.5801 GB, free: 137.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.342e-06/0.7655, allocations: 0 / 0.5801 GB, free: 137.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.826/2.592, allocations: 411.3 MB / 0.9818 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/2.592, allocations: 268.7 kB / 0.9821 GB, free: 141.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006597/2.598, allocations: 5.567 MB / 0.9875 GB, free: 136.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001622/2.6, allocations: 109.7 kB / 0.9876 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002167/2.602, allocations: 4.165 MB / 0.9917 GB, free: 133.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002375/2.605, allocations: 2.104 MB / 0.9938 GB, free: 131.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004441/2.609, allocations: 2.078 MB / 0.9958 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.146e-05/2.609, allocations: 304.8 kB / 0.9961 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0112/2.62, allocations: 10.88 MB / 1.007 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0125/2.633, allocations: 15.06 MB / 1.021 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0267/2.66, allocations: 27.12 MB / 1.048 GB, free: 72.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/2.66, allocations: 40 kB / 1.048 GB, free: 72.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4864/3.146, allocations: 140.1 MB / 1.185 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.484e-05/3.146, allocations: 64 kB / 1.185 GB, free: 117.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/3.146, allocations: 136 kB / 1.185 GB, free: 117.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0705/3.217, allocations: 34.55 MB / 1.219 GB, free: 83.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/3.221, allocations: 1.479 MB / 1.22 GB, free: 82.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4004/3.621, allocations: 200.7 MB / 1.416 GB, free: 89.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/3.633, allocations: 1.706 MB / 1.418 GB, free: 88.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001679/3.634, allocations: 0.523 MB / 1.418 GB, free: 88.22 MB / 0.5137 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.004704/3.639, allocations: 3.093 MB / 1.421 GB, free: 85.72 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/3.641, allocations: 0.6157 MB / 1.422 GB, free: 85.45 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4519/4.092, allocations: 136.1 MB / 1.555 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.651e-05/4.093, allocations: 59.53 kB / 1.555 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001291/4.093, allocations: 59.56 kB / 1.555 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.434e-05/4.093, allocations: 28.73 kB / 1.555 GB, free: 135.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5161/4.609, allocations: 202.7 MB / 1.753 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-05/4.609, allocations: 3.875 kB / 1.753 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/4.61, allocations: 339.6 kB / 1.753 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06828/4.679, allocations: 33.26 MB / 1.786 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001718/4.68, allocations: 103 kB / 1.786 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4026/5.083, allocations: 183.5 MB / 1.965 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/5.083, allocations: 11.75 kB / 1.965 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4768/5.56, allocations: 151.9 MB / 2.113 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006527/5.566, allocations: 2.96 MB / 2.116 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001667/5.568, allocations: 94.12 kB / 2.116 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007661/5.576, allocations: 1.484 MB / 2.118 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003037/5.579, allocations: 0.515 MB / 2.118 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007201/5.579, allocations: 144.3 kB / 2.118 GB, free: 151 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004168/5.584, allocations: 3.562 MB / 2.122 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/5.584, allocations: 0 / 2.122 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01254/5.596, allocations: 3.802 MB / 2.126 GB, free: 149.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.2921/5.888, allocations: 152.4 MB / 2.274 GB, free: 22.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2381/6.126, allocations: 32.6 MB / 2.306 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.68e-05/6.126, allocations: 3.188 kB / 2.306 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03362/6.16, allocations: 19.53 MB / 2.325 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005813/6.166, allocations: 0.8311 MB / 2.326 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.027/7.193, allocations: 353.1 MB / 2.671 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006717/7.199, allocations: 4.633 MB / 2.675 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004222/7.204, allocations: 2.074 MB / 2.677 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003105/7.207, allocations: 3.062 MB / 2.68 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.243e-06/7.207, allocations: 4.875 kB / 2.68 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5269/7.734, allocations: 343.8 MB / 3.016 GB, free: 47.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.11/36.84, allocations: 11.86 kB / 3.016 GB, free: 47.05 MB / 0.5294 GB " [Timeout remaining time 623] (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 --stepSize=0.0009996 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 42.64419872604776]