Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001259/0.001259, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001482/0.001482, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 47.92 kB / 377.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2583, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01543/0.2737, allocations: 11.74 MB / 442.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.2845, allocations: 4.658 MB / 447.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002309/0.2868, allocations: 107.4 kB / 447.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008326/0.2952, allocations: 4.05 MB / 451.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006105/0.3013, allocations: 2.191 MB / 453.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002795/0.3041, allocations: 1.114 MB / 454.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009839/0.3139, allocations: 6.067 MB / 461 MB, free: 8.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006254/0.3201, allocations: 4.066 MB / 465.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004226/0.3244, allocations: 2.189 MB / 467.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005216/0.3296, allocations: 3.081 MB / 470.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001154/0.3307, allocations: 0.4922 MB / 470.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002945/0.3337, allocations: 1.533 MB / 472.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00308/0.3368, allocations: 2.653 MB / 475 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003834/0.3406, allocations: 2.23 MB / 477.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01237/0.353, allocations: 9.706 MB / 487 MB, free: 14.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.353, allocations: 0 / 487 MB, free: 14.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.353, allocations: 0 / 487 MB, free: 14.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000257/0.3532, allocations: 3.938 kB / 487 MB, free: 14.53 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01533/0.3686, allocations: 6.268 MB / 493.2 MB, free: 8.195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3686, allocations: 11.97 kB / 493.2 MB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002083/0.3707, allocations: 0.9325 MB / 494.2 MB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03637/0.4071, allocations: 6.055 MB / 0.4885 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01097/0.418, allocations: 4.195 MB / 0.4926 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003152/0.4183, allocations: 308.1 kB / 0.4929 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00155/0.4199, allocations: 435.7 kB / 0.4933 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0231/0.443, allocations: 12.39 MB / 0.5054 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.4431, allocations: 55.62 kB / 0.5055 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000507/0.4436, allocations: 187.9 kB / 0.5056 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003287/0.4469, allocations: 2.039 MB / 0.5076 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02133/0.4683, allocations: 10.34 MB / 0.5177 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2676/0.7359, allocations: 41.63 MB / 0.5584 GB, free: 71.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.7471, allocations: 4.208 MB / 0.5625 GB, free: 70.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.7491, allocations: 1.841 MB / 0.5643 GB, free: 69.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.7594, allocations: 5.623 MB / 0.5698 GB, free: 67.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.7594, allocations: 51.38 kB / 0.5698 GB, free: 67.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.049e-06/0.7594, allocations: 0 / 0.5698 GB, free: 67.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06027/0.8197, allocations: 19.22 MB / 0.5886 GB, free: 49.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.8197, allocations: 201.9 kB / 0.5888 GB, free: 49.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005127/0.8249, allocations: 4.713 MB / 0.5934 GB, free: 45.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004043/0.8253, allocations: 53.7 kB / 0.5935 GB, free: 45.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001857/0.8271, allocations: 3.701 MB / 0.5971 GB, free: 41.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008583/0.828, allocations: 0.8709 MB / 0.5979 GB, free: 40.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/0.8293, allocations: 1.274 MB / 0.5992 GB, free: 39.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.794e-05/0.8293, allocations: 309.1 kB / 0.5995 GB, free: 39.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.8318, allocations: 2.233 MB / 0.6016 GB, free: 36.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003771/0.8356, allocations: 6.035 MB / 0.6075 GB, free: 28.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.8428, allocations: 8.915 MB / 0.6162 GB, free: 18.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.658e-05/0.8429, allocations: 40 kB / 0.6163 GB, free: 18.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01391/0.8568, allocations: 9.05 MB / 0.6251 GB, free: 9.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.8569, allocations: 71.03 kB / 0.6252 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/0.8571, allocations: 128 kB / 0.6253 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003521/0.8606, allocations: 1.206 MB / 0.6265 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004048/0.8646, allocations: 1.419 MB / 0.6279 GB, free: 6.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009938/0.8746, allocations: 7.808 MB / 0.6355 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/0.8791, allocations: 347.6 kB / 0.6358 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009069/0.88, allocations: 376 kB / 0.6362 GB, free: 13.67 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004273/0.8843, allocations: 2.478 MB / 0.6386 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009354/0.8852, allocations: 425.1 kB / 0.639 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008707/0.8939, allocations: 3.876 MB / 0.6428 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/0.894, allocations: 31.92 kB / 0.6428 GB, free: 6.844 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.894, allocations: 8 kB / 0.6428 GB, free: 6.836 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/0.894, allocations: 15.89 kB / 0.6429 GB, free: 6.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0221/0.9161, allocations: 9.501 MB / 0.6521 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.9161, allocations: 8.125 kB / 0.6521 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/0.9177, allocations: 331.5 kB / 0.6525 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003589/0.9212, allocations: 0.9894 MB / 0.6534 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/0.9214, allocations: 40 kB / 0.6535 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.9318, allocations: 6.517 MB / 0.6598 GB, free: 5.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.9319, allocations: 7.938 kB / 0.6598 GB, free: 5.223 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/0.9436, allocations: 6.621 MB / 0.6663 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.9448, allocations: 397 kB / 0.6667 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005198/0.9453, allocations: 36 kB / 0.6667 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.947, allocations: 115.1 kB / 0.6668 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.9474, allocations: 152.9 kB / 0.667 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/0.9475, allocations: 59.98 kB / 0.667 GB, free: 13.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004247/0.9518, allocations: 2.828 MB / 0.6698 GB, free: 10.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9518, allocations: 0 / 0.6698 GB, free: 10.94 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004706/0.9565, allocations: 1.156 MB / 0.6709 GB, free: 9.785 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0121/0.9686, allocations: 7.327 MB / 0.6781 GB, free: 2.371 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008735/0.9773, allocations: 5.329 MB / 0.6833 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.9773, allocations: 0 / 0.6833 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.9801, allocations: 1.707 MB / 0.6849 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/0.9833, allocations: 0.5677 MB / 0.6855 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08207/1.065, allocations: 51.55 MB / 0.7358 GB, free: 1.273 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1906/1.256, allocations: 3.348 MB / 0.7391 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004818/1.261, allocations: 1.934 MB / 0.741 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003384/1.264, allocations: 2.291 MB / 0.7432 GB, free: 197 MB / 0.545 GB Notification: Performance of SimCode: time 1.934e-06/1.264, allocations: 2.25 kB / 0.7432 GB, free: 197 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1742/1.438, allocations: 87.64 MB / 0.8288 GB, free: 120.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.22/17.66, allocations: 0 / 0.8288 GB, free: 120.1 MB / 0.545 GB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.831023191014538]