Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.001535/0.001535, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001538/0.001538, allocations: 186.9 kB / 20.73 MB, free: 2.332 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 / 249.1 MB, free: 3.598 MB / 190.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.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 47.92 kB / 365.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09511, allocations: 52.15 MB / 417.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009179/0.1043, allocations: 7.654 MB / 425.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00617/0.1105, allocations: 3.356 MB / 428.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008098/0.1113, allocations: 39.88 kB / 428.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.1133, allocations: 1.039 MB / 429.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002966/0.1163, allocations: 1.374 MB / 431.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.1175, allocations: 0.5496 MB / 431.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.1208, allocations: 2.59 MB / 434.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.1223, allocations: 1.202 MB / 435.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1233, allocations: 0.8367 MB / 436.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.1248, allocations: 1.261 MB / 437.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003067/0.1251, allocations: 144 kB / 437.8 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.1267, allocations: 0.9437 MB / 438.8 MB, free: 7.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009739/0.1277, allocations: 1.09 MB / 439.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.1288, allocations: 1.25 MB / 441.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004604/0.1334, allocations: 4.15 MB / 445.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1334, allocations: 0 / 445.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1334, allocations: 0 / 445.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.852e-05/0.1335, allocations: 0 / 445.3 MB, free: 1.066 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.1779/0.3114, allocations: 3.077 MB / 448.3 MB, free: 29.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3115, allocations: 10.16 kB / 448.4 MB, free: 29.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004761/0.312, allocations: 465.2 kB / 448.8 MB, free: 29.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004846/0.3168, allocations: 1.6 MB / 450.4 MB, free: 29.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.3203, allocations: 1.722 MB / 452.1 MB, free: 28.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.761e-05/0.3203, allocations: 121.4 kB / 452.2 MB, free: 28.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003457/0.3207, allocations: 167.7 kB / 452.4 MB, free: 28.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008729/0.3294, allocations: 6.539 MB / 458.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.848e-05/0.3295, allocations: 28.34 kB / 459 MB, free: 26.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/0.3297, allocations: 83.52 kB / 459.1 MB, free: 26.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002382/0.3321, allocations: 1.471 MB / 460.5 MB, free: 25.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009515/0.3416, allocations: 5.839 MB / 466.4 MB, free: 23.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/0.363, allocations: 25.7 MB / 492.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004852/0.3678, allocations: 2.487 MB / 494.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.3693, allocations: 1.129 MB / 495.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00822/0.3775, allocations: 4.813 MB / 0.4888 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.3776, allocations: 46.56 kB / 0.4888 GB, free: 8.652 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.607e-06/0.3776, allocations: 0 / 0.4888 GB, free: 8.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02309/0.4006, allocations: 9.911 MB / 0.4985 GB, free: 14.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.4007, allocations: 152.8 kB / 0.4986 GB, free: 14.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.4043, allocations: 2.723 MB / 0.5013 GB, free: 11.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.4044, allocations: 37.7 kB / 0.5013 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.4059, allocations: 2.136 MB / 0.5034 GB, free: 9.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004486/0.4064, allocations: 444.7 kB / 0.5038 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.4075, allocations: 0.8376 MB / 0.5047 GB, free: 8.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4076, allocations: 305.1 kB / 0.5049 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002176/0.4098, allocations: 1.441 MB / 0.5064 GB, free: 6.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004172/0.4139, allocations: 4.061 MB / 0.5103 GB, free: 1.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/0.421, allocations: 5.952 MB / 0.5161 GB, free: 9.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.705e-05/0.421, allocations: 24 kB / 0.5162 GB, free: 9.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01081/0.4319, allocations: 6.017 MB / 0.522 GB, free: 3.777 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.53e-05/0.4319, allocations: 44 kB / 0.5221 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.4321, allocations: 96 kB / 0.5222 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.4344, allocations: 0.8204 MB / 0.523 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.4372, allocations: 0.9396 MB / 0.5239 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006455/0.4437, allocations: 4.668 MB / 0.5284 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/0.4466, allocations: 239.6 kB / 0.5287 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006272/0.4472, allocations: 260 kB / 0.5289 GB, free: 12.59 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.002505/0.4497, allocations: 1.375 MB / 0.5303 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005377/0.4502, allocations: 238.4 kB / 0.5305 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004508/0.4547, allocations: 2.122 MB / 0.5326 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/0.4548, allocations: 12 kB / 0.5326 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4548, allocations: 8 kB / 0.5326 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/0.4548, allocations: 7.922 kB / 0.5326 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.4653, allocations: 5.062 MB / 0.5375 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/0.4654, allocations: 4 kB / 0.5375 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008123/0.4662, allocations: 155.8 kB / 0.5377 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002087/0.4683, allocations: 0.6796 MB / 0.5383 GB, free: 2.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.4684, allocations: 20 kB / 0.5384 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005509/0.4739, allocations: 4.153 MB / 0.5424 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.4739, allocations: 7.875 kB / 0.5424 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006684/0.4806, allocations: 4.064 MB / 0.5464 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006552/0.4813, allocations: 291.4 kB / 0.5467 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003806/0.4816, allocations: 20 kB / 0.5467 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.4827, allocations: 67.89 kB / 0.5468 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.4829, allocations: 64.33 kB / 0.5468 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-05/0.483, allocations: 38.25 kB / 0.5469 GB, free: 9.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002927/0.4859, allocations: 1.694 MB / 0.5485 GB, free: 8.227 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4859, allocations: 0 / 0.5485 GB, free: 8.227 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003292/0.4892, allocations: 0.6756 MB / 0.5492 GB, free: 7.551 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.007156/0.4963, allocations: 4.742 MB / 0.5538 GB, free: 2.766 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005552/0.5019, allocations: 3.343 MB / 0.5571 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.5019, allocations: 0 / 0.5571 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.5033, allocations: 0.9586 MB / 0.558 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001889/0.5052, allocations: 249.1 kB / 0.5582 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04947/0.5547, allocations: 29.92 MB / 0.5875 GB, free: 12.92 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002934/0.5576, allocations: 2.234 MB / 0.5896 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003067/0.5607, allocations: 1.32 MB / 0.5909 GB, free: 9.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/0.5624, allocations: 1.101 MB / 0.592 GB, free: 8.238 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5624, allocations: 0 / 0.592 GB, free: 8.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2951/0.8575, allocations: 45 MB / 0.636 GB, free: 170.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.7/18.55, allocations: 15.72 kB / 0.636 GB, free: 170.4 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.196586678735912]