Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002029/0.002029, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 47.91 kB / 371.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2456, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01281/0.2584, allocations: 10.81 MB / 434.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008505/0.267, allocations: 3.963 MB / 438.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.2687, allocations: 75.62 kB / 438.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005275/0.274, allocations: 2.636 MB / 440.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005315/0.2793, allocations: 1.813 MB / 442.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.281, allocations: 0.6941 MB / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005631/0.2866, allocations: 3.684 MB / 447.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003531/0.2901, allocations: 2.73 MB / 449.8 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.2925, allocations: 1.503 MB / 451.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.2956, allocations: 2.114 MB / 453.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005912/0.2961, allocations: 315.9 kB / 453.8 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.2983, allocations: 1.209 MB / 455 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001906/0.3002, allocations: 1.874 MB / 456.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.3026, allocations: 2.144 MB / 459 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008192/0.3108, allocations: 6.73 MB / 465.7 MB, free: 4.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3108, allocations: 0 / 465.7 MB, free: 4.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3108, allocations: 4 kB / 465.7 MB, free: 4.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002034/0.311, allocations: 4 kB / 465.7 MB, free: 4.105 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.009704/0.3207, allocations: 4.623 MB / 470.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3207, allocations: 12.03 kB / 470.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001287/0.3209, allocations: 102.6 kB / 470.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001026/0.3219, allocations: 0.7197 MB / 471.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006854/0.3287, allocations: 1.913 MB / 473.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005593/0.3343, allocations: 2.269 MB / 475.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002691/0.3346, allocations: 254.2 kB / 475.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001214/0.3358, allocations: 387.7 kB / 476 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.3546, allocations: 10.07 MB / 486.1 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/0.3547, allocations: 43.62 kB / 486.1 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000424/0.3551, allocations: 163.9 kB / 486.3 MB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/0.358, allocations: 1.853 MB / 488.1 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01755/0.3755, allocations: 8.335 MB / 496.4 MB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05209/0.4276, allocations: 39.18 MB / 0.5231 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.4381, allocations: 3.396 MB / 0.5264 GB, free: 8.781 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002382/0.4405, allocations: 1.345 MB / 0.5277 GB, free: 7.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.4517, allocations: 5.82 MB / 0.5334 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.604e-05/0.4518, allocations: 51.55 kB / 0.5334 GB, free: 1.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 8.055e-06/0.4518, allocations: 0 / 0.5334 GB, free: 1.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.2158/0.6675, allocations: 12.19 MB / 0.5453 GB, free: 106 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008461/0.6684, allocations: 1.561 MB / 0.5469 GB, free: 104.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/0.6722, allocations: 3.834 MB / 0.5506 GB, free: 103.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002136/0.6724, allocations: 45.58 kB / 0.5507 GB, free: 103.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.6735, allocations: 3.254 MB / 0.5538 GB, free: 100.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.674, allocations: 0.6752 MB / 0.5545 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/0.6751, allocations: 1.261 MB / 0.5557 GB, free: 99.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.236e-05/0.6751, allocations: 301.1 kB / 0.556 GB, free: 99.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.6773, allocations: 2.007 MB / 0.558 GB, free: 97.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003393/0.6807, allocations: 5.941 MB / 0.5638 GB, free: 89.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007906/0.6886, allocations: 8.573 MB / 0.5721 GB, free: 78.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-05/0.6887, allocations: 40 kB / 0.5722 GB, free: 78.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01565/0.7043, allocations: 8.767 MB / 0.5807 GB, free: 70.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.7044, allocations: 64 kB / 0.5808 GB, free: 70.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005218/0.7097, allocations: 2.769 MB / 0.5835 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004403/0.7141, allocations: 1.537 MB / 0.585 GB, free: 65.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.7176, allocations: 1.361 MB / 0.5863 GB, free: 64.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004809/0.7224, allocations: 5.603 MB / 0.5918 GB, free: 58.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/0.7271, allocations: 395.5 kB / 0.5922 GB, free: 58.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00083/0.7279, allocations: 391.9 kB / 0.5926 GB, free: 57.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.003042/0.7309, allocations: 2.013 MB / 0.5945 GB, free: 55.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006481/0.7316, allocations: 341.7 kB / 0.5949 GB, free: 55.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005844/0.7374, allocations: 3.104 MB / 0.5979 GB, free: 52.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004695/0.7421, allocations: 2.663 MB / 0.6005 GB, free: 49.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.7421, allocations: 4 kB / 0.6005 GB, free: 49.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.7421, allocations: 7.984 kB / 0.6005 GB, free: 49.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/0.7547, allocations: 8.383 MB / 0.6087 GB, free: 41.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/0.7547, allocations: 4 kB / 0.6087 GB, free: 41.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.7555, allocations: 191.7 kB / 0.6089 GB, free: 40.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003952/0.7594, allocations: 1.436 MB / 0.6103 GB, free: 39.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.7596, allocations: 35.97 kB / 0.6103 GB, free: 39.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004653/0.7642, allocations: 5.808 MB / 0.616 GB, free: 33.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006851/0.7649, allocations: 1.44 MB / 0.6174 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.7724, allocations: 5.298 MB / 0.6226 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007776/0.7732, allocations: 313.5 kB / 0.6229 GB, free: 26.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005927/0.7738, allocations: 28 kB / 0.6229 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/0.7753, allocations: 119.8 kB / 0.623 GB, free: 26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.7755, allocations: 92.8 kB / 0.6231 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.7756, allocations: 55.91 kB / 0.6231 GB, free: 25.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00301/0.7786, allocations: 2.341 MB / 0.6254 GB, free: 23.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7786, allocations: 4 kB / 0.6254 GB, free: 23.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004173/0.7828, allocations: 1.004 MB / 0.6264 GB, free: 22.53 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006728/0.7895, allocations: 5.761 MB / 0.632 GB, free: 16.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007283/0.7968, allocations: 5.104 MB / 0.637 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.7968, allocations: 0 / 0.637 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003161/0.8, allocations: 1.804 MB / 0.6388 GB, free: 9.789 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/0.8025, allocations: 397.3 kB / 0.6392 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07651/0.879, allocations: 45.43 MB / 0.6835 GB, free: 5.785 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00492/0.8839, allocations: 3.111 MB / 0.6866 GB, free: 2.641 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004249/0.8882, allocations: 1.8 MB / 0.6883 GB, free: 0.832 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003049/0.8912, allocations: 1.77 MB / 0.6901 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of SimCode: time 1.222e-06/0.8912, allocations: 0 / 0.6901 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.148/2.039, allocations: 71.86 MB / 0.7602 GB, free: 177 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.89/24.93, allocations: 5.969 kB / 0.7602 GB, free: 177 MB / 0.5294 GB " [Timeout remaining time 635] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --stepSize=0.0019988 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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: 28.849360520020127]