Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.001218/0.001218, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001305/0.001305, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.327/1.327, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 179] 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.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 51.92 kB / 378.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2023, allocations: 53.36 MB / 431.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008656/0.2109, allocations: 6.716 MB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006064/0.217, allocations: 3.14 MB / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009812/0.218, allocations: 43.81 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002234/0.2202, allocations: 1.02 MB / 442.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00321/0.2234, allocations: 1.347 MB / 444.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.2247, allocations: 0.5418 MB / 444.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003358/0.228, allocations: 2.621 MB / 447.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00145/0.2295, allocations: 1.217 MB / 448.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.2305, allocations: 0.8446 MB / 449.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.2321, allocations: 1.254 MB / 450.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002784/0.2324, allocations: 148 kB / 450.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.2338, allocations: 0.7955 MB / 451.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009845/0.2348, allocations: 1.079 MB / 452.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009933/0.2358, allocations: 0.8885 MB / 453.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004503/0.2403, allocations: 4.116 MB / 457.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2403, allocations: 0 / 457.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2403, allocations: 0 / 457.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.585e-05/0.2404, allocations: 0 / 457.6 MB, free: 12.75 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.005252/0.2456, allocations: 2.993 MB / 460.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.2457, allocations: 12.03 kB / 460.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.305e-05/0.2457, allocations: 59.3 kB / 460.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005288/0.2463, allocations: 466.4 kB / 461.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005161/0.2514, allocations: 1.598 MB / 462.8 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.2542, allocations: 1.563 MB / 464.3 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.2543, allocations: 119 kB / 464.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003334/0.2547, allocations: 167.8 kB / 464.6 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009826/0.2645, allocations: 6.534 MB / 471.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-05/0.2646, allocations: 31.69 kB / 471.2 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.2648, allocations: 87.88 kB / 471.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00265/0.2675, allocations: 1.472 MB / 472.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.2782, allocations: 5.83 MB / 478.5 MB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02804/0.3063, allocations: 24.74 MB / 0.4915 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00513/0.3114, allocations: 2.017 MB / 0.4935 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.3129, allocations: 1.133 MB / 0.4946 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007094/0.32, allocations: 4.287 MB / 0.4988 GB, free: 6.234 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.3201, allocations: 46.48 kB / 0.4988 GB, free: 6.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.005e-06/0.3201, allocations: 0 / 0.4988 GB, free: 6.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02277/0.3428, allocations: 9.736 MB / 0.5083 GB, free: 12.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.3429, allocations: 144.9 kB / 0.5084 GB, free: 12.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003596/0.3465, allocations: 2.719 MB / 0.5111 GB, free: 9.461 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.3466, allocations: 37.7 kB / 0.5111 GB, free: 9.418 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.3482, allocations: 2.136 MB / 0.5132 GB, free: 7.262 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.3487, allocations: 444.6 kB / 0.5136 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/0.3497, allocations: 0.8377 MB / 0.5145 GB, free: 5.977 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3499, allocations: 301.1 kB / 0.5147 GB, free: 5.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/0.352, allocations: 1.441 MB / 0.5162 GB, free: 4.234 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004249/0.3562, allocations: 4.057 MB / 0.5201 GB, free: 14.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006887/0.3631, allocations: 5.956 MB / 0.5259 GB, free: 7.602 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-05/0.3632, allocations: 24 kB / 0.526 GB, free: 7.578 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01027/0.3734, allocations: 6.019 MB / 0.5318 GB, free: 1.547 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.13e-05/0.3735, allocations: 44 kB / 0.5319 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.66e-05/0.3736, allocations: 96 kB / 0.532 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002317/0.3759, allocations: 0.8209 MB / 0.5328 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/0.3786, allocations: 0.9435 MB / 0.5337 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006112/0.3848, allocations: 4.524 MB / 0.5381 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.3875, allocations: 247.7 kB / 0.5383 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004893/0.388, allocations: 264 kB / 0.5386 GB, free: 10.51 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (498): * Single equations (assignments): 494 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002112/0.3901, allocations: 1.368 MB / 0.5399 GB, free: 9.129 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004434/0.3905, allocations: 238.3 kB / 0.5402 GB, free: 8.895 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00433/0.3949, allocations: 2.118 MB / 0.5422 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.555e-05/0.3949, allocations: 16 kB / 0.5422 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.3949, allocations: 4 kB / 0.5422 GB, free: 6.746 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.3949, allocations: 3.984 kB / 0.5423 GB, free: 6.742 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009743/0.4047, allocations: 4.789 MB / 0.5469 GB, free: 1.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.4047, allocations: 4.062 kB / 0.5469 GB, free: 1.891 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008195/0.4055, allocations: 155.8 kB / 0.5471 GB, free: 1.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/0.4076, allocations: 0.6795 MB / 0.5477 GB, free: 1.055 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.4078, allocations: 12 kB / 0.5478 GB, free: 1.043 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1768/0.5845, allocations: 4.016 MB / 0.5517 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5846, allocations: 1.656 kB / 0.5517 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00531/0.5899, allocations: 4.066 MB / 0.5556 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003667/0.5902, allocations: 224.2 kB / 0.5559 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.5905, allocations: 13 kB / 0.5559 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008425/0.5913, allocations: 73.2 kB / 0.5559 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.5915, allocations: 58 kB / 0.556 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.768e-05/0.5915, allocations: 35.02 kB / 0.556 GB, free: 113.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001849/0.5934, allocations: 1.688 MB / 0.5577 GB, free: 112.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5934, allocations: 0 / 0.5577 GB, free: 112.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002579/0.596, allocations: 0.6658 MB / 0.5583 GB, free: 112.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (74): * Single equations (assignments): 70 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00502/0.601, allocations: 4.731 MB / 0.563 GB, free: 110.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003634/0.6046, allocations: 3.357 MB / 0.5662 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.6046, allocations: 4 kB / 0.5662 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009355/0.6055, allocations: 0.9603 MB / 0.5672 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.6069, allocations: 249.4 kB / 0.5674 GB, free: 107.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02731/0.6342, allocations: 29.96 MB / 0.5967 GB, free: 74.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.6356, allocations: 1.666 MB / 0.5983 GB, free: 72.97 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002088/0.6377, allocations: 1.315 MB / 0.5996 GB, free: 71.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009754/0.6386, allocations: 1.097 MB / 0.6006 GB, free: 70.56 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6386, allocations: 0 / 0.6006 GB, free: 70.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06855/0.7072, allocations: 46.63 MB / 0.6462 GB, free: 24.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.15/18.86, allocations: 7.984 kB / 0.6462 GB, free: 24.45 MB / 462.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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: 21.625538121908903]