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.005713/0.005713, allocations: 114 kB / 21.97 MB, free: 5.227 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.001597/0.001597, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.326/1.326, allocations: 207.6 MB / 236.1 MB, free: 9.984 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.001684/0.001684, allocations: 53.34 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.24, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01369/0.2537, allocations: 16.11 MB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.2644, allocations: 5.2 MB / 418.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.2671, allocations: 136.1 kB / 418.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007786/0.2749, allocations: 4.518 MB / 423.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006652/0.2816, allocations: 2.635 MB / 425.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002562/0.2841, allocations: 1.161 MB / 426.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.2952, allocations: 7.506 MB / 434.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005849/0.301, allocations: 4.315 MB / 438.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004121/0.3051, allocations: 2.547 MB / 441.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005419/0.3106, allocations: 3.641 MB / 444.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001284/0.3119, allocations: 0.5078 MB / 445.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003136/0.315, allocations: 1.529 MB / 446.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003326/0.3183, allocations: 3.089 MB / 450 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00531/0.3236, allocations: 3.461 MB / 453.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.3369, allocations: 10.65 MB / 464.1 MB, free: 72 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3369, allocations: 0 / 464.1 MB, free: 72 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3369, allocations: 0 / 464.1 MB, free: 72 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002578/0.3372, allocations: 0 / 464.1 MB, free: 72 kB / 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.01968/0.3569, allocations: 8.046 MB / 472.2 MB, free: 7.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.3569, allocations: 19.98 kB / 472.2 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001934/0.3571, allocations: 171.6 kB / 472.4 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001847/0.359, allocations: 1.086 MB / 473.5 MB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0538/0.4128, allocations: 8.453 MB / 481.9 MB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.4255, allocations: 6.26 MB / 488.2 MB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/0.4258, allocations: 344.7 kB / 488.5 MB, free: 7.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.4271, allocations: 467.7 kB / 489 MB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0258/0.4529, allocations: 14.48 MB / 0.4916 GB, free: 7.637 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001999/0.4531, allocations: 79.41 kB / 0.4917 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006005/0.4537, allocations: 211.8 kB / 0.4919 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005464/0.4591, allocations: 2.836 MB / 0.4947 GB, free: 4.512 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02612/0.4853, allocations: 13.02 MB / 0.5074 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2575/0.7427, allocations: 58.09 MB / 0.5641 GB, free: 132.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01603/0.7588, allocations: 6.886 MB / 0.5709 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005051/0.7638, allocations: 4.557 MB / 0.5753 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/0.7794, allocations: 12.3 MB / 0.5873 GB, free: 126.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.7795, allocations: 76.12 kB / 0.5874 GB, free: 126.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.382e-06/0.7795, allocations: 0 / 0.5874 GB, free: 126.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.772/2.552, allocations: 411.2 MB / 0.989 GB, free: 136.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.823e-05/2.552, allocations: 269.6 kB / 0.9892 GB, free: 136.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005582/2.557, allocations: 5.561 MB / 0.9947 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001275/2.559, allocations: 109.7 kB / 0.9948 GB, free: 131 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001614/2.56, allocations: 4.169 MB / 0.9988 GB, free: 128.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002018/2.562, allocations: 2.104 MB / 1.001 GB, free: 126.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003587/2.566, allocations: 2.077 MB / 1.003 GB, free: 124 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.764e-05/2.566, allocations: 304.8 kB / 1.003 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01046/2.576, allocations: 10.88 MB / 1.014 GB, free: 112.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.012/2.588, allocations: 14.99 MB / 1.028 GB, free: 95.96 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0244/2.613, allocations: 27.12 MB / 1.055 GB, free: 67 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.611e-05/2.613, allocations: 40 kB / 1.055 GB, free: 66.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.48/3.093, allocations: 140.1 MB / 1.192 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.991e-05/3.093, allocations: 64 kB / 1.192 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001589/3.093, allocations: 136 kB / 1.192 GB, free: 112 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07471/3.168, allocations: 34.58 MB / 1.226 GB, free: 77.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004317/3.172, allocations: 1.476 MB / 1.227 GB, free: 76.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4/3.572, allocations: 202.8 MB / 1.425 GB, free: 82.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/3.583, allocations: 1.71 MB / 1.427 GB, free: 81.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/3.585, allocations: 0.5193 MB / 1.427 GB, free: 80.86 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.00486/3.59, allocations: 3.095 MB / 1.43 GB, free: 77.98 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/3.592, allocations: 0.6157 MB / 1.431 GB, free: 77.71 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4703/4.062, allocations: 136.1 MB / 1.564 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-05/4.062, allocations: 58.59 kB / 1.564 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001517/4.062, allocations: 57.59 kB / 1.564 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001227/4.062, allocations: 27.89 kB / 1.564 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5345/4.597, allocations: 205.6 MB / 1.765 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-05/4.597, allocations: 6.781 kB / 1.765 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/4.598, allocations: 337.5 kB / 1.765 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06621/4.664, allocations: 33.28 MB / 1.798 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001597/4.666, allocations: 107.1 kB / 1.798 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3893/5.055, allocations: 185.4 MB / 1.979 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/5.055, allocations: 8.812 kB / 1.979 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4932/5.548, allocations: 151.9 MB / 2.127 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006467/5.555, allocations: 2.955 MB / 2.13 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002315/5.557, allocations: 101.3 kB / 2.13 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008906/5.566, allocations: 1.476 MB / 2.132 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003468/5.57, allocations: 0.5236 MB / 2.132 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001061/5.571, allocations: 151.5 kB / 2.132 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004784/5.575, allocations: 3.561 MB / 2.136 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/5.575, allocations: 0 / 2.136 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0136/5.589, allocations: 3.806 MB / 2.139 GB, free: 149.6 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.4965/6.086, allocations: 152.4 MB / 2.288 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05878/6.144, allocations: 32.61 MB / 2.32 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/6.144, allocations: 5.062 kB / 2.32 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0368/6.181, allocations: 19.54 MB / 2.339 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00679/6.188, allocations: 0.8198 MB / 2.34 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.052/7.24, allocations: 353.1 MB / 2.685 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007501/7.247, allocations: 5.127 MB / 2.69 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004418/7.252, allocations: 2.066 MB / 2.692 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003711/7.256, allocations: 3.06 MB / 2.695 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.283e-06/7.256, allocations: 0.6562 kB / 2.695 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5308/7.786, allocations: 345.3 MB / 3.032 GB, free: 30.46 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.41/37.2, allocations: 4.062 kB / 3.032 GB, free: 30.45 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.57618361397181]