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.001622/0.001622, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002055/0.002055, allocations: 217.1 kB / 24.47 MB, free: 3.777 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.453/1.453, allocations: 207.7 MB / 235.3 MB, free: 9.785 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.001872/0.001872, allocations: 62.58 kB / 347.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2587, allocations: 49.15 MB / 396.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00732/0.266, allocations: 6.837 MB / 403.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006131/0.2722, allocations: 3.1 MB / 406.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.2734, allocations: 43.06 kB / 406.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.2755, allocations: 1.016 MB / 407.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003401/0.2789, allocations: 1.378 MB / 408.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.2802, allocations: 0.5436 MB / 409.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003214/0.2834, allocations: 2.6 MB / 411.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.2851, allocations: 1.221 MB / 413.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001499/0.2866, allocations: 0.8654 MB / 414 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/0.2885, allocations: 1.223 MB / 415.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003619/0.2889, allocations: 147.4 kB / 415.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00184/0.2907, allocations: 0.7875 MB / 416.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001189/0.2919, allocations: 1.093 MB / 417.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.2931, allocations: 0.9158 MB / 418.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005427/0.2986, allocations: 4.153 MB / 422.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.2986, allocations: 4 kB / 422.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2986, allocations: 0 / 422.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.2987, allocations: 0 / 422.3 MB, free: 9.113 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.006766/0.3054, allocations: 3.028 MB / 425.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3055, allocations: 15.92 kB / 425.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006538/0.3061, allocations: 462.4 kB / 425.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005537/0.3117, allocations: 1.598 MB / 427.4 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004032/0.3157, allocations: 1.825 MB / 429.2 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.3158, allocations: 123 kB / 429.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003666/0.3162, allocations: 159.8 kB / 429.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/0.3265, allocations: 6.534 MB / 436 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.507e-05/0.3266, allocations: 35.69 kB / 436 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002437/0.3268, allocations: 79.89 kB / 436.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002591/0.3294, allocations: 1.464 MB / 437.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.3403, allocations: 5.826 MB / 443.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03346/0.3738, allocations: 24.76 MB / 468.2 MB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005692/0.3795, allocations: 2.012 MB / 470.2 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.3812, allocations: 1.129 MB / 471.3 MB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008271/0.3894, allocations: 4.295 MB / 475.6 MB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.3895, allocations: 42.5 kB / 475.7 MB, free: 2.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.586e-06/0.3895, allocations: 0 / 475.7 MB, free: 2.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.0248/0.4143, allocations: 9.805 MB / 485.5 MB, free: 8.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.929e-05/0.4144, allocations: 140.9 kB / 485.6 MB, free: 8.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.4185, allocations: 2.906 MB / 488.5 MB, free: 5.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.4187, allocations: 37.7 kB / 488.5 MB, free: 5.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/0.4205, allocations: 2.14 MB / 490.7 MB, free: 3.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000538/0.421, allocations: 452.6 kB / 491.1 MB, free: 2.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/0.4221, allocations: 0.8338 MB / 492 MB, free: 1.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4222, allocations: 301.1 kB / 492.2 MB, free: 1.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002176/0.4244, allocations: 1.441 MB / 493.7 MB, free: 88 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004362/0.4288, allocations: 4.053 MB / 497.7 MB, free: 10.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.436, allocations: 5.945 MB / 0.4919 GB, free: 3.461 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-05/0.436, allocations: 31.94 kB / 0.4919 GB, free: 3.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01108/0.4471, allocations: 6.011 MB / 0.4978 GB, free: 13.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.028e-05/0.4472, allocations: 44.19 kB / 0.4978 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/0.4473, allocations: 103.9 kB / 0.4979 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00239/0.4497, allocations: 0.8123 MB / 0.4987 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/0.4526, allocations: 0.9474 MB / 0.4996 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/0.4592, allocations: 4.522 MB / 0.5041 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003208/0.4624, allocations: 247.6 kB / 0.5043 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004785/0.4629, allocations: 256 kB / 0.5045 GB, free: 6.371 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.002321/0.4652, allocations: 1.376 MB / 0.5059 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/0.4656, allocations: 238.3 kB / 0.5061 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/0.4702, allocations: 2.126 MB / 0.5082 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.4702, allocations: 15.94 kB / 0.5082 GB, free: 2.586 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.4702, allocations: 4 kB / 0.5082 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.4702, allocations: 3.984 kB / 0.5082 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009794/0.48, allocations: 4.782 MB / 0.5129 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.48, allocations: 0 / 0.5129 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.4808, allocations: 159.7 kB / 0.513 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002185/0.483, allocations: 0.6801 MB / 0.5137 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001203/0.4831, allocations: 23.98 kB / 0.5137 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00566/0.4888, allocations: 4.021 MB / 0.5176 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4888, allocations: 4.062 kB / 0.5176 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007073/0.4958, allocations: 4.064 MB / 0.5216 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.4972, allocations: 390.2 kB / 0.522 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005098/0.4977, allocations: 16 kB / 0.522 GB, free: 4.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4989, allocations: 75.83 kB / 0.5221 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.4991, allocations: 56.33 kB / 0.5221 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.263e-05/0.4992, allocations: 31.98 kB / 0.5222 GB, free: 4.082 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003238/0.5024, allocations: 1.714 MB / 0.5238 GB, free: 2.359 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5024, allocations: 0 / 0.5238 GB, free: 2.359 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003702/0.5061, allocations: 0.6716 MB / 0.5245 GB, free: 1.688 MB / 446.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.007583/0.5137, allocations: 4.734 MB / 0.5291 GB, free: 12.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005875/0.5196, allocations: 3.352 MB / 0.5324 GB, free: 9.566 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5196, allocations: 192 / 0.5324 GB, free: 9.566 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.5212, allocations: 0.9659 MB / 0.5333 GB, free: 8.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.5233, allocations: 245.5 kB / 0.5336 GB, free: 8.348 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.7321, allocations: 30.05 MB / 0.5629 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/0.7342, allocations: 1.679 MB / 0.5645 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002723/0.737, allocations: 1.315 MB / 0.5658 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/0.7381, allocations: 1.099 MB / 0.5669 GB, free: 141.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.7381, allocations: 3.438 kB / 0.5669 GB, free: 141.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07674/0.8148, allocations: 45.28 MB / 0.6111 GB, free: 104.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/15.14, allocations: 3.984 kB / 0.6111 GB, free: 104.9 MB / 478.1 MB " [Timeout remaining time 645] (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: 17.722803209908307]