Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001392/0.001392, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.001663/0.001663, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 51.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2767, allocations: 49.16 MB / 396.4 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00807/0.2847, allocations: 7.745 MB / 404.1 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00652/0.2913, allocations: 3.343 MB / 407.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.2928, allocations: 42.72 kB / 407.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.2951, allocations: 1.045 MB / 408.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003776/0.2988, allocations: 1.38 MB / 409.9 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.3003, allocations: 0.5389 MB / 410.5 MB, free: 136 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004306/0.3046, allocations: 2.603 MB / 413.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002151/0.3068, allocations: 1.241 MB / 414.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002055/0.3088, allocations: 0.8535 MB / 415.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002541/0.3113, allocations: 1.27 MB / 416.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004626/0.3118, allocations: 148.4 kB / 416.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002348/0.3142, allocations: 0.9355 MB / 417.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001522/0.3157, allocations: 1.097 MB / 418.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001915/0.3176, allocations: 1.254 MB / 419.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006721/0.3243, allocations: 4.156 MB / 424 MB, free: 7.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3243, allocations: 0 / 424 MB, free: 7.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3243, allocations: 3.938 kB / 424 MB, free: 7.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001606/0.3245, allocations: 0 / 424 MB, free: 7.59 MB / 334.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.007117/0.3316, allocations: 3.024 MB / 427 MB, free: 4.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3317, allocations: 11.98 kB / 427 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007553/0.3324, allocations: 462.4 kB / 427.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005412/0.3378, allocations: 1.598 MB / 429.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/0.3418, allocations: 1.813 MB / 430.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3419, allocations: 127 kB / 431 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/0.3423, allocations: 159.9 kB / 431.2 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01113/0.3534, allocations: 6.534 MB / 437.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.439e-05/0.3535, allocations: 31.77 kB / 437.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.3537, allocations: 83.83 kB / 437.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002575/0.3563, allocations: 1.468 MB / 439.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/0.3676, allocations: 5.83 MB / 445.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03391/0.4015, allocations: 25.64 MB / 470.8 MB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005625/0.4071, allocations: 2.015 MB / 472.8 MB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.4087, allocations: 1.133 MB / 473.9 MB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008481/0.4172, allocations: 4.545 MB / 478.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.4172, allocations: 50.48 kB / 478.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.226e-06/0.4172, allocations: 7.938 kB / 478.5 MB, free: 15.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02428/0.4415, allocations: 9.756 MB / 488.3 MB, free: 5.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.818e-05/0.4416, allocations: 137 kB / 488.4 MB, free: 5.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00451/0.4461, allocations: 2.744 MB / 491.2 MB, free: 2.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002841/0.4464, allocations: 37.7 kB / 491.2 MB, free: 2.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.4482, allocations: 2.155 MB / 493.3 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006045/0.4488, allocations: 436.7 kB / 493.8 MB, free: 232 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/0.45, allocations: 0.8337 MB / 494.6 MB, free: 15.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4501, allocations: 309.1 kB / 494.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/0.4525, allocations: 1.441 MB / 496.4 MB, free: 13.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0044/0.4569, allocations: 4.053 MB / 0.4887 GB, free: 8.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007367/0.4642, allocations: 5.944 MB / 0.4945 GB, free: 1.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.041e-05/0.4643, allocations: 28 kB / 0.4945 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0123/0.4766, allocations: 6.019 MB / 0.5004 GB, free: 10.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.536e-05/0.4767, allocations: 48.25 kB / 0.5004 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.4768, allocations: 92 kB / 0.5005 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.4793, allocations: 0.8201 MB / 0.5013 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003102/0.4824, allocations: 0.9435 MB / 0.5022 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006558/0.4889, allocations: 4.545 MB / 0.5067 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/0.4922, allocations: 243.7 kB / 0.5069 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006349/0.4928, allocations: 263.9 kB / 0.5072 GB, free: 3.887 MB / 430.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.002471/0.4953, allocations: 1.372 MB / 0.5085 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004889/0.4958, allocations: 242.3 kB / 0.5087 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004528/0.5003, allocations: 2.122 MB / 0.5108 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.5003, allocations: 16 kB / 0.5108 GB, free: 112 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5003, allocations: 0 / 0.5108 GB, free: 112 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.5003, allocations: 7.984 kB / 0.5108 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.5105, allocations: 5.035 MB / 0.5157 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.5105, allocations: 0 / 0.5157 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/0.5113, allocations: 159.9 kB / 0.5159 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/0.5135, allocations: 0.6833 MB / 0.5166 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/0.5136, allocations: 23.97 kB / 0.5166 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00566/0.5193, allocations: 4.04 MB / 0.5205 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.5193, allocations: 4 kB / 0.5205 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007034/0.5263, allocations: 4.064 MB / 0.5245 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.5276, allocations: 390.1 kB / 0.5249 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003291/0.528, allocations: 12 kB / 0.5249 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009437/0.5289, allocations: 75.83 kB / 0.525 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.5291, allocations: 60.33 kB / 0.525 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5292, allocations: 35.92 kB / 0.5251 GB, free: 1.309 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003058/0.5323, allocations: 1.706 MB / 0.5267 GB, free: 15.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5323, allocations: 4.062 kB / 0.5267 GB, free: 15.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003558/0.5358, allocations: 0.6716 MB / 0.5274 GB, free: 14.92 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.007305/0.5431, allocations: 4.745 MB / 0.532 GB, free: 10.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00618/0.5493, allocations: 3.353 MB / 0.5353 GB, free: 6.785 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.5493, allocations: 0 / 0.5353 GB, free: 6.785 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.5508, allocations: 0.9614 MB / 0.5362 GB, free: 5.812 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.5526, allocations: 269.7 kB / 0.5365 GB, free: 5.547 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2416/0.7942, allocations: 30.03 MB / 0.5658 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002264/0.7965, allocations: 2.241 MB / 0.568 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002874/0.7993, allocations: 1.322 MB / 0.5693 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/0.8006, allocations: 1.103 MB / 0.5704 GB, free: 141.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.8006, allocations: 0 / 0.5704 GB, free: 141.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08581/0.8864, allocations: 48.47 MB / 0.6177 GB, free: 101.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.24/20.13, allocations: 3.906 kB / 0.6177 GB, free: 101.3 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0019992 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 22.737031133001437]