Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3041, allocations: 50.53 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008021/0.3122, allocations: 7.591 MB / 416.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006033/0.3183, allocations: 3.352 MB / 419.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006878/0.319, allocations: 35.94 kB / 419.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.321, allocations: 1.035 MB / 420.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002522/0.3235, allocations: 1.311 MB / 422.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.3246, allocations: 0.5457 MB / 422.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002893/0.3275, allocations: 2.617 MB / 425.2 MB, free: 1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.329, allocations: 1.375 MB / 426.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.33, allocations: 0.8251 MB / 427.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.3314, allocations: 1.148 MB / 428.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.3316, allocations: 144 kB / 428.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.3332, allocations: 0.9048 MB / 429.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008202/0.334, allocations: 1.048 MB / 430.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009034/0.3349, allocations: 1.242 MB / 431.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003744/0.3387, allocations: 4.087 MB / 436 MB, free: 6.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3387, allocations: 0 / 436 MB, free: 6.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3387, allocations: 0 / 436 MB, free: 6.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.3388, allocations: 0 / 436 MB, free: 6.164 MB / 350.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.004975/0.3438, allocations: 2.992 MB / 439 MB, free: 3.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.3438, allocations: 12.03 kB / 439 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004605/0.3443, allocations: 462.4 kB / 439.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005129/0.3494, allocations: 1.576 MB / 441 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.3526, allocations: 1.612 MB / 442.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.3527, allocations: 123 kB / 442.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003177/0.353, allocations: 167.9 kB / 442.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008511/0.3615, allocations: 6.53 MB / 449.5 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-05/0.3616, allocations: 31.56 kB / 449.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/0.3618, allocations: 87.84 kB / 449.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002283/0.3641, allocations: 1.46 MB / 451 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009913/0.374, allocations: 5.83 MB / 456.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03093/0.405, allocations: 25.66 MB / 482.5 MB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005483/0.4105, allocations: 2.545 MB / 485.1 MB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.412, allocations: 1.211 MB / 486.3 MB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008328/0.4204, allocations: 4.811 MB / 491.1 MB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.4205, allocations: 42.5 kB / 491.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.527e-06/0.4205, allocations: 0 / 491.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02416/0.4446, allocations: 9.792 MB / 0.4892 GB, free: 3.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.4448, allocations: 137 kB / 0.4893 GB, free: 3.285 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00492/0.4497, allocations: 2.714 MB / 0.492 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.4498, allocations: 41.7 kB / 0.492 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.4513, allocations: 2.044 MB / 0.494 GB, free: 14.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005023/0.4518, allocations: 430.7 kB / 0.4944 GB, free: 14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001463/0.4533, allocations: 0.833 MB / 0.4952 GB, free: 13.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.4533, allocations: 301.1 kB / 0.4955 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/0.4556, allocations: 1.441 MB / 0.4969 GB, free: 11.42 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/0.4597, allocations: 4.057 MB / 0.5009 GB, free: 6.043 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006452/0.4662, allocations: 5.948 MB / 0.5067 GB, free: 14.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.024e-05/0.4663, allocations: 28 kB / 0.5067 GB, free: 14.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01079/0.4771, allocations: 6.009 MB / 0.5126 GB, free: 8.742 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.288e-05/0.4772, allocations: 48 kB / 0.5126 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001321/0.4773, allocations: 92 kB / 0.5127 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.4798, allocations: 0.8282 MB / 0.5135 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002971/0.4828, allocations: 0.9396 MB / 0.5145 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/0.4889, allocations: 4.652 MB / 0.519 GB, free: 2.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/0.4919, allocations: 247.6 kB / 0.5192 GB, free: 1.801 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005744/0.4925, allocations: 256 kB / 0.5195 GB, free: 1.551 MB / 446.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.002188/0.4947, allocations: 1.372 MB / 0.5208 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005667/0.4953, allocations: 233.1 kB / 0.521 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004412/0.4997, allocations: 2.134 MB / 0.5231 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.017e-05/0.4997, allocations: 12 kB / 0.5231 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.4998, allocations: 4 kB / 0.5231 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.4998, allocations: 3.984 kB / 0.5231 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.5108, allocations: 5.073 MB / 0.5281 GB, free: 8.617 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.5108, allocations: 4 kB / 0.5281 GB, free: 8.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007842/0.5116, allocations: 151.8 kB / 0.5282 GB, free: 8.465 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.5137, allocations: 0.6873 MB / 0.5289 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.5139, allocations: 16 kB / 0.5289 GB, free: 7.758 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005102/0.519, allocations: 4.155 MB / 0.533 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.519, allocations: 4 kB / 0.533 GB, free: 3.457 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2416/0.7606, allocations: 4.047 MB / 0.5369 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007547/0.7614, allocations: 283.5 kB / 0.5372 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/0.7617, allocations: 16.8 kB / 0.5372 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.7628, allocations: 79.03 kB / 0.5373 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.763, allocations: 53.36 kB / 0.5374 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.7631, allocations: 29 kB / 0.5374 GB, free: 124.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002943/0.7661, allocations: 1.691 MB / 0.539 GB, free: 123.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7661, allocations: 0 / 0.539 GB, free: 123.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002917/0.769, allocations: 0.6638 MB / 0.5397 GB, free: 123.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.005559/0.7746, allocations: 4.738 MB / 0.5443 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00423/0.7788, allocations: 3.481 MB / 0.5477 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7789, allocations: 3.875 kB / 0.5477 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.78, allocations: 1.039 MB / 0.5487 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.7815, allocations: 249.1 kB / 0.549 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02993/0.8115, allocations: 29.8 MB / 0.5781 GB, free: 90.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/0.813, allocations: 2.244 MB / 0.5803 GB, free: 88.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002311/0.8153, allocations: 1.312 MB / 0.5815 GB, free: 87.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009945/0.8163, allocations: 1.097 MB / 0.5826 GB, free: 85.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.222e-06/0.8164, allocations: 0 / 0.5826 GB, free: 85.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06414/0.8805, allocations: 45.43 MB / 0.627 GB, free: 40.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.81/20.69, allocations: 8.047 kB / 0.627 GB, free: 40.79 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches