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.001707/0.001707, allocations: 112 kB / 20.43 MB, free: 1.449 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.001989/0.001989, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.437/1.437, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2726, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.01158/0.2841, allocations: 9.09 MB / 431.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005765/0.2899, allocations: 2.699 MB / 434.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.2909, allocations: 59.75 kB / 434.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003643/0.2946, allocations: 1.853 MB / 436.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003216/0.2978, allocations: 1.37 MB / 437.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2983, allocations: 207.6 kB / 437.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.3016, allocations: 2.374 MB / 440.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.3037, allocations: 1.738 MB / 442 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.3052, allocations: 1.016 MB / 443 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003589/0.3088, allocations: 2.474 MB / 445.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004776/0.3092, allocations: 188 kB / 445.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.3103, allocations: 0.5032 MB / 446.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.3116, allocations: 1.355 MB / 447.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00167/0.3133, allocations: 1.583 MB / 449.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00599/0.3193, allocations: 4.881 MB / 454 MB, free: 15.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3193, allocations: 3.984 kB / 454 MB, free: 15.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3193, allocations: 0 / 454 MB, free: 15.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001292/0.3194, allocations: 4 kB / 454 MB, free: 15.06 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.00663/0.3261, allocations: 3.658 MB / 457.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3261, allocations: 8.031 kB / 457.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006676/0.3268, allocations: 0.5424 MB / 458.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005046/0.3318, allocations: 1.668 MB / 459.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.335, allocations: 1.529 MB / 461.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.3352, allocations: 151.8 kB / 461.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000404/0.3356, allocations: 203.8 kB / 461.8 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.3461, allocations: 6.986 MB / 468.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.222e-05/0.3462, allocations: 27.73 kB / 468.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002674/0.3465, allocations: 99.89 kB / 468.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/0.3488, allocations: 1.562 MB / 470.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009832/0.3586, allocations: 5.485 MB / 475.9 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03458/0.3932, allocations: 27.07 MB / 0.4912 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.3959, allocations: 1.15 MB / 0.4923 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000711/0.3966, allocations: 461.8 kB / 0.4928 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004483/0.4011, allocations: 2.226 MB / 0.495 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.4011, allocations: 42.56 kB / 0.495 GB, free: 8.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=89): time 2.775e-06/0.4011, allocations: 0 / 0.495 GB, free: 8.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.004104/0.4052, allocations: 1.771 MB / 0.4967 GB, free: 6.715 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.4054, allocations: 217.7 kB / 0.4969 GB, free: 6.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/0.4109, allocations: 3.682 MB / 0.5005 GB, free: 2.781 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.538e-05/0.411, allocations: 33.7 kB / 0.5006 GB, free: 2.742 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/0.4132, allocations: 2.8 MB / 0.5033 GB, free: 15.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004563/0.4137, allocations: 409.1 kB / 0.5037 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/0.4149, allocations: 0.9607 MB / 0.5046 GB, free: 14.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.415, allocations: 301.1 kB / 0.5049 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.4168, allocations: 1.208 MB / 0.5061 GB, free: 13.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004643/0.4214, allocations: 4.534 MB / 0.5105 GB, free: 6.789 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007683/0.4291, allocations: 6.302 MB / 0.5167 GB, free: 14.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-05/0.4292, allocations: 32 kB / 0.5167 GB, free: 14.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009675/0.4389, allocations: 5.454 MB / 0.522 GB, free: 9.328 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.086e-05/0.4389, allocations: 56 kB / 0.5221 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.4391, allocations: 120 kB / 0.5222 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.4392, allocations: 156 kB / 0.5223 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/0.4421, allocations: 1.081 MB / 0.5234 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002032/0.4423, allocations: 231.1 kB / 0.5236 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.4455, allocations: 0.7056 MB / 0.5243 GB, free: 6.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003804/0.4459, allocations: 319.9 kB / 0.5246 GB, free: 6.676 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.002529/0.4485, allocations: 1.719 MB / 0.5263 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000566/0.449, allocations: 313.9 kB / 0.5266 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009273/0.4499, allocations: 486.3 kB / 0.5271 GB, free: 4.156 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.416e-05/0.45, allocations: 24 kB / 0.5271 GB, free: 4.133 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.45, allocations: 0 / 0.5271 GB, free: 4.133 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.45, allocations: 8.266 kB / 0.5271 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005522/0.4555, allocations: 3.129 MB / 0.5301 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.4556, allocations: 4.281 kB / 0.5302 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.456, allocations: 115.8 kB / 0.5303 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.591e-05/0.456, allocations: 7.938 kB / 0.5303 GB, free: 0.793 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.4561, allocations: 20 kB / 0.5303 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.4561, allocations: 4 kB / 0.5303 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.4561, allocations: 7.938 kB / 0.5303 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.4588, allocations: 2.231 MB / 0.5325 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008779/0.4596, allocations: 365.6 kB / 0.5328 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.4599, allocations: 23.89 kB / 0.5329 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00083/0.4607, allocations: 35.95 kB / 0.5329 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.4608, allocations: 47.88 kB / 0.5329 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/0.4609, allocations: 31.98 kB / 0.533 GB, free: 13.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003398/0.4643, allocations: 2.337 MB / 0.5352 GB, free: 11.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4643, allocations: 0 / 0.5352 GB, free: 11.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003797/0.4681, allocations: 0.8145 MB / 0.536 GB, free: 10.84 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.003225/0.4713, allocations: 2.855 MB / 0.5388 GB, free: 7.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005022/0.4763, allocations: 2.707 MB / 0.5415 GB, free: 5.254 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.4763, allocations: 0 / 0.5415 GB, free: 5.254 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000621/0.477, allocations: 404.4 kB / 0.5419 GB, free: 4.859 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4792, allocations: 389.2 kB / 0.5422 GB, free: 4.477 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2584/0.7377, allocations: 33.26 MB / 0.5747 GB, free: 98.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001969/0.7396, allocations: 2.685 MB / 0.5773 GB, free: 96.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002616/0.7423, allocations: 1.49 MB / 0.5788 GB, free: 94.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.7435, allocations: 1.464 MB / 0.5802 GB, free: 93.17 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.7435, allocations: 0 / 0.5802 GB, free: 93.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08559/0.8291, allocations: 51.64 MB / 0.6307 GB, free: 41.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.86/20.69, allocations: 15.91 kB / 0.6307 GB, free: 41.91 MB / 462.1 MB " [Timeout remaining time 639] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable prismatic.s in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv. Warning: Get data of variable prismatic.s from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.357905344000756]