Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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.001753/0.001753, 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.001982/0.001982, 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.322/1.322, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 179] 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.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2433, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.01097/0.2543, allocations: 9.09 MB / 432.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005802/0.2601, allocations: 2.695 MB / 435.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.2613, allocations: 55.75 kB / 435.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003607/0.2649, allocations: 1.853 MB / 437.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003606/0.2685, allocations: 1.369 MB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.2692, allocations: 219.5 kB / 438.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003658/0.2729, allocations: 2.366 MB / 441.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002496/0.2754, allocations: 1.742 MB / 442.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001702/0.2771, allocations: 1.012 MB / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003516/0.2806, allocations: 2.478 MB / 446.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005833/0.2812, allocations: 188 kB / 446.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.2823, allocations: 0.511 MB / 447 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.2836, allocations: 1.344 MB / 448.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001603/0.2852, allocations: 1.587 MB / 449.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.2905, allocations: 4.888 MB / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2905, allocations: 0 / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2905, allocations: 0 / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.2906, allocations: 0 / 454.8 MB, free: 15.04 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.006409/0.297, allocations: 3.658 MB / 458.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.2971, allocations: 12.03 kB / 458.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.95e-05/0.2972, allocations: 72.11 kB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006681/0.2978, allocations: 0.5385 MB / 459.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.3031, allocations: 1.668 MB / 460.8 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003393/0.3065, allocations: 1.529 MB / 462.3 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.3066, allocations: 147.8 kB / 462.4 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004262/0.307, allocations: 207.8 kB / 462.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.3175, allocations: 6.982 MB / 469.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.155e-05/0.3176, allocations: 27.75 kB / 469.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002895/0.3178, allocations: 103.9 kB / 469.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002324/0.3202, allocations: 1.555 MB / 471.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009833/0.33, allocations: 5.493 MB / 476.8 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03479/0.3648, allocations: 27.07 MB / 0.4921 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.3676, allocations: 1.135 MB / 0.4932 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007632/0.3684, allocations: 472.9 kB / 0.4936 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004374/0.3728, allocations: 2.222 MB / 0.4958 GB, free: 8.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.3728, allocations: 46.48 kB / 0.4958 GB, free: 8.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=89): time 2.865e-06/0.3728, allocations: 0 / 0.4958 GB, free: 8.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.004362/0.3772, allocations: 1.77 MB / 0.4976 GB, free: 6.625 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.3773, allocations: 217.6 kB / 0.4978 GB, free: 6.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006038/0.3834, allocations: 3.682 MB / 0.5014 GB, free: 2.691 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.3835, allocations: 29.7 kB / 0.5014 GB, free: 2.656 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002299/0.3858, allocations: 2.804 MB / 0.5041 GB, free: 15.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004584/0.3862, allocations: 413.3 kB / 0.5045 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/0.3874, allocations: 0.9568 MB / 0.5055 GB, free: 14.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3876, allocations: 308.9 kB / 0.5058 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00179/0.3894, allocations: 1.204 MB / 0.5069 GB, free: 12.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004639/0.394, allocations: 4.534 MB / 0.5114 GB, free: 6.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007576/0.4016, allocations: 6.294 MB / 0.5175 GB, free: 14.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.714e-05/0.4017, allocations: 32 kB / 0.5175 GB, free: 14.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01041/0.4121, allocations: 5.447 MB / 0.5229 GB, free: 9.254 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.271e-05/0.4122, allocations: 60.25 kB / 0.5229 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/0.4123, allocations: 120 kB / 0.523 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.4125, allocations: 156 kB / 0.5232 GB, free: 8.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003078/0.4155, allocations: 1.088 MB / 0.5242 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001982/0.4157, allocations: 231.1 kB / 0.5245 GB, free: 7.609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003531/0.4193, allocations: 0.7057 MB / 0.5252 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005317/0.4198, allocations: 312 kB / 0.5255 GB, free: 6.594 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (589): * Single equations (assignments): 585 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002589/0.4224, allocations: 1.723 MB / 0.5271 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005714/0.423, allocations: 309.9 kB / 0.5274 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009447/0.4239, allocations: 490.2 kB / 0.5279 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-05/0.424, allocations: 27.98 kB / 0.5279 GB, free: 4.043 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.424, allocations: 4 kB / 0.5279 GB, free: 4.039 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.424, allocations: 3.984 kB / 0.5279 GB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006022/0.43, allocations: 3.126 MB / 0.531 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.43, allocations: 4 kB / 0.531 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/0.4305, allocations: 111.8 kB / 0.5311 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.4305, allocations: 8 kB / 0.5311 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.726e-05/0.4306, allocations: 23.98 kB / 0.5311 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.4306, allocations: 11.97 kB / 0.5311 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.4306, allocations: 7.938 kB / 0.5311 GB, free: 0.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.4333, allocations: 2.224 MB / 0.5333 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009201/0.4342, allocations: 369.6 kB / 0.5337 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.4345, allocations: 31.88 kB / 0.5337 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008953/0.4354, allocations: 31.97 kB / 0.5337 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.4355, allocations: 47.8 kB / 0.5338 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.4356, allocations: 31.98 kB / 0.5338 GB, free: 13.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003996/0.4396, allocations: 2.341 MB / 0.5361 GB, free: 11.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4396, allocations: 0 / 0.5361 GB, free: 11.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004148/0.4437, allocations: 0.8184 MB / 0.5369 GB, free: 10.74 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (prismatic.v,position.s) * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00328/0.447, allocations: 2.85 MB / 0.5397 GB, free: 7.836 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004974/0.452, allocations: 2.705 MB / 0.5423 GB, free: 5.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.452, allocations: 1.812 kB / 0.5423 GB, free: 5.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006307/0.4526, allocations: 404.1 kB / 0.5427 GB, free: 4.766 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.4552, allocations: 381.4 kB / 0.5431 GB, free: 4.391 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.248/0.7031, allocations: 33.26 MB / 0.5756 GB, free: 100.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002166/0.7053, allocations: 2.685 MB / 0.5782 GB, free: 97.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002816/0.7081, allocations: 1.484 MB / 0.5796 GB, free: 96.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/0.7096, allocations: 1.476 MB / 0.5811 GB, free: 94.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7097, allocations: 0 / 0.5811 GB, free: 94.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0812/0.7909, allocations: 51.67 MB / 0.6315 GB, free: 43.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.7/19.49, allocations: 2.922 kB / 0.6315 GB, free: 43.44 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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: 22.545968482038006]