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.001326/0.001326, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001498/0.001498, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 51.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2698, allocations: 53.35 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01036/0.2802, allocations: 7.653 MB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007044/0.2872, allocations: 3.407 MB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.2885, allocations: 43.81 kB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.291, allocations: 1.051 MB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004501/0.2955, allocations: 1.349 MB / 444.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.2971, allocations: 0.5457 MB / 445.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004078/0.3012, allocations: 2.617 MB / 447.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.303, allocations: 1.222 MB / 449 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.3044, allocations: 0.8408 MB / 449.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.3063, allocations: 1.261 MB / 451.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003497/0.3066, allocations: 144 kB / 451.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.3084, allocations: 0.9282 MB / 452.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.3096, allocations: 1.079 MB / 453.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.3111, allocations: 1.238 MB / 454.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005373/0.3165, allocations: 4.103 MB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3165, allocations: 0 / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3165, allocations: 0 / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.671e-05/0.3166, allocations: 4 kB / 458.6 MB, free: 11.25 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.006475/0.323, allocations: 3.001 MB / 461.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.3231, allocations: 8.031 kB / 461.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006365/0.3237, allocations: 462.4 kB / 462.1 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00552/0.3292, allocations: 1.598 MB / 463.7 MB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003748/0.333, allocations: 1.543 MB / 465.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.3331, allocations: 127 kB / 465.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004543/0.3336, allocations: 163.8 kB / 465.5 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.3449, allocations: 6.542 MB / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.647e-05/0.345, allocations: 23.81 kB / 472.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3453, allocations: 83.83 kB / 472.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002672/0.3479, allocations: 1.472 MB / 473.6 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/0.3597, allocations: 5.841 MB / 479.5 MB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03622/0.3959, allocations: 25.61 MB / 0.4932 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005732/0.4016, allocations: 2.019 MB / 0.4952 GB, free: 9.383 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/0.4035, allocations: 1.133 MB / 0.4963 GB, free: 8.238 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008535/0.412, allocations: 4.537 MB / 0.5008 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.4121, allocations: 46.56 kB / 0.5008 GB, free: 3.617 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.737e-06/0.4121, allocations: 7.938 kB / 0.5008 GB, free: 3.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02545/0.4375, allocations: 9.695 MB / 0.5103 GB, free: 9.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.4376, allocations: 137 kB / 0.5104 GB, free: 9.676 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.4417, allocations: 2.719 MB / 0.5131 GB, free: 6.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002064/0.4419, allocations: 37.7 kB / 0.5131 GB, free: 6.895 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/0.4437, allocations: 2.132 MB / 0.5152 GB, free: 4.742 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000615/0.4443, allocations: 448.6 kB / 0.5156 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.4455, allocations: 0.8338 MB / 0.5164 GB, free: 3.457 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4456, allocations: 309 kB / 0.5167 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.448, allocations: 1.437 MB / 0.5181 GB, free: 1.711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005284/0.4533, allocations: 4.061 MB / 0.5221 GB, free: 12.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008712/0.462, allocations: 5.951 MB / 0.5279 GB, free: 5.082 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/0.4622, allocations: 32 kB / 0.5279 GB, free: 5.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01371/0.4759, allocations: 6.007 MB / 0.5338 GB, free: 15.03 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.65e-05/0.4759, allocations: 48 kB / 0.5338 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.4761, allocations: 96 kB / 0.5339 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/0.4786, allocations: 0.8123 MB / 0.5347 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003273/0.4819, allocations: 0.9474 MB / 0.5356 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006895/0.4887, allocations: 4.553 MB / 0.5401 GB, free: 8.457 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0031/0.4918, allocations: 243.7 kB / 0.5403 GB, free: 8.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006091/0.4925, allocations: 256 kB / 0.5406 GB, free: 7.969 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.002474/0.4949, allocations: 1.372 MB / 0.5419 GB, free: 6.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005023/0.4954, allocations: 246.3 kB / 0.5421 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004688/0.5001, allocations: 2.118 MB / 0.5442 GB, free: 4.215 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-05/0.5002, allocations: 12 kB / 0.5442 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.5002, allocations: 4 kB / 0.5442 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.5002, allocations: 3.984 kB / 0.5442 GB, free: 4.195 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2255/0.7257, allocations: 5.03 MB / 0.5491 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/0.7257, allocations: 2.5 kB / 0.5491 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009751/0.7267, allocations: 164 kB / 0.5493 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/0.7288, allocations: 0.6757 MB / 0.55 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.729, allocations: 18.81 kB / 0.55 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/0.7336, allocations: 4.057 MB / 0.5539 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.7336, allocations: 5.609 kB / 0.554 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/0.739, allocations: 4.058 MB / 0.5579 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005729/0.7396, allocations: 223 kB / 0.5581 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/0.7399, allocations: 19.16 kB / 0.5581 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008727/0.7407, allocations: 69.64 kB / 0.5582 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.7409, allocations: 60.3 kB / 0.5583 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.294e-05/0.741, allocations: 35.12 kB / 0.5583 GB, free: 111.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002061/0.7431, allocations: 1.692 MB / 0.56 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7431, allocations: 4.219 kB / 0.56 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002971/0.746, allocations: 0.6598 MB / 0.5606 GB, free: 110.4 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.005534/0.7516, allocations: 4.744 MB / 0.5652 GB, free: 108.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004335/0.7559, allocations: 3.34 MB / 0.5685 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.7559, allocations: 0 / 0.5685 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.757, allocations: 0.9618 MB / 0.5694 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.7586, allocations: 246.4 kB / 0.5697 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03048/0.7891, allocations: 29.96 MB / 0.5989 GB, free: 72.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.7907, allocations: 2.236 MB / 0.6011 GB, free: 70.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00249/0.7932, allocations: 1.316 MB / 0.6024 GB, free: 68.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.7943, allocations: 1.097 MB / 0.6035 GB, free: 67.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.483e-06/0.7943, allocations: 0 / 0.6035 GB, free: 67.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08037/0.8746, allocations: 48.35 MB / 0.6507 GB, free: 19.54 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.78/20.66, allocations: 0 / 0.6507 GB, free: 19.54 MB / 462.1 MB " [Timeout remaining time 639] (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: 23.29255297407508]