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.001238/0.001238, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001335/0.001335, allocations: 191.5 kB / 24.49 MB, free: 3.957 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.308/1.308, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 47.92 kB / 371.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2148, allocations: 52.18 MB / 423.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008494/0.2232, allocations: 6.738 MB / 430.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005339/0.2286, allocations: 3.135 MB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004273/0.229, allocations: 43.81 kB / 433.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.231, allocations: 1.004 MB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.2335, allocations: 1.382 MB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.2345, allocations: 0.5534 MB / 436.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00297/0.2375, allocations: 2.582 MB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.2389, allocations: 1.226 MB / 440 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009763/0.2399, allocations: 0.8485 MB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.2414, allocations: 1.269 MB / 442.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002506/0.2417, allocations: 148 kB / 442.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.243, allocations: 0.8073 MB / 443.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.244, allocations: 1.087 MB / 444.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008849/0.2449, allocations: 0.9119 MB / 445.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004124/0.2491, allocations: 4.158 MB / 449.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2491, allocations: 0 / 449.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2491, allocations: 0 / 449.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.689e-05/0.2491, allocations: 0 / 449.3 MB, free: 4.414 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.004805/0.2539, allocations: 3.009 MB / 452.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.2539, allocations: 8.031 kB / 452.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.016e-05/0.254, allocations: 59.31 kB / 452.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004854/0.2545, allocations: 462.4 kB / 452.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00509/0.2596, allocations: 1.598 MB / 454.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/0.2625, allocations: 1.669 MB / 456.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.2626, allocations: 131 kB / 456.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003559/0.263, allocations: 155.9 kB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009225/0.2722, allocations: 6.545 MB / 462.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.635e-05/0.2723, allocations: 27.77 kB / 462.9 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.2725, allocations: 79.89 kB / 463 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002445/0.275, allocations: 1.472 MB / 464.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.285, allocations: 5.841 MB / 470.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02939/0.3144, allocations: 24.74 MB / 495 MB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/0.3198, allocations: 2.016 MB / 497 MB, free: 3.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.3215, allocations: 1.133 MB / 498.2 MB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007483/0.329, allocations: 4.28 MB / 0.4907 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.329, allocations: 38.56 kB / 0.4907 GB, free: 13.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.847e-06/0.329, allocations: 0 / 0.4907 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02336/0.3524, allocations: 9.753 MB / 0.5002 GB, free: 3.902 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.3525, allocations: 141 kB / 0.5004 GB, free: 3.734 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.3566, allocations: 2.719 MB / 0.503 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.3567, allocations: 37.7 kB / 0.5031 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.3584, allocations: 2.144 MB / 0.5052 GB, free: 14.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005839/0.359, allocations: 448.7 kB / 0.5056 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.3602, allocations: 0.8376 MB / 0.5064 GB, free: 13.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3603, allocations: 301.1 kB / 0.5067 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002243/0.3626, allocations: 1.437 MB / 0.5081 GB, free: 11.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004719/0.3673, allocations: 4.061 MB / 0.5121 GB, free: 6.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007496/0.3748, allocations: 5.948 MB / 0.5179 GB, free: 15.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.666e-05/0.3748, allocations: 32 kB / 0.5179 GB, free: 15.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01122/0.3861, allocations: 6 MB / 0.5238 GB, free: 9.094 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/0.3861, allocations: 55.98 kB / 0.5238 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.3862, allocations: 92 kB / 0.5239 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002316/0.3886, allocations: 0.8162 MB / 0.5247 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/0.3914, allocations: 0.9436 MB / 0.5256 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006361/0.3977, allocations: 4.524 MB / 0.53 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/0.4008, allocations: 243.7 kB / 0.5303 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000666/0.4015, allocations: 260 kB / 0.5305 GB, free: 2.059 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.002335/0.4038, allocations: 1.38 MB / 0.5319 GB, free: 0.668 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.4043, allocations: 242.3 kB / 0.5321 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004394/0.4087, allocations: 2.122 MB / 0.5342 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-05/0.4087, allocations: 15.91 kB / 0.5342 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.4087, allocations: 4 kB / 0.5342 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4087, allocations: 7.984 kB / 0.5342 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009058/0.4178, allocations: 4.781 MB / 0.5389 GB, free: 9.426 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4178, allocations: 3.938 kB / 0.5389 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000755/0.4186, allocations: 151.8 kB / 0.539 GB, free: 9.273 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.4207, allocations: 0.6834 MB / 0.5397 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.668e-05/0.4207, allocations: 20 kB / 0.5397 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005427/0.4262, allocations: 4.023 MB / 0.5436 GB, free: 4.426 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4262, allocations: 0 / 0.5436 GB, free: 4.426 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006454/0.4326, allocations: 4.071 MB / 0.5476 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005133/0.4331, allocations: 218.2 kB / 0.5478 GB, free: 120 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/0.4334, allocations: 19.94 kB / 0.5478 GB, free: 100 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008774/0.4343, allocations: 75.83 kB / 0.5479 GB, free: 24 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1792/0.6134, allocations: 55.11 kB / 0.548 GB, free: 123.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/0.6137, allocations: 32.72 kB / 0.548 GB, free: 123.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002949/0.6166, allocations: 1.698 MB / 0.5496 GB, free: 123.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6166, allocations: 0 / 0.5496 GB, free: 123.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003058/0.6197, allocations: 0.6731 MB / 0.5503 GB, free: 123.2 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.005717/0.6254, allocations: 4.735 MB / 0.5549 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004213/0.6296, allocations: 3.342 MB / 0.5582 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.6296, allocations: 1.438 kB / 0.5582 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009799/0.6306, allocations: 0.9661 MB / 0.5591 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.6321, allocations: 255.3 kB / 0.5594 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02703/0.6591, allocations: 29.97 MB / 0.5887 GB, free: 88.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.6605, allocations: 1.663 MB / 0.5903 GB, free: 87.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002091/0.6626, allocations: 1.322 MB / 0.5916 GB, free: 85.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009788/0.6636, allocations: 1.097 MB / 0.5926 GB, free: 84.83 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6636, allocations: 4 kB / 0.5926 GB, free: 84.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07035/0.7339, allocations: 46.65 MB / 0.6382 GB, free: 38.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.05/18.79, allocations: 7.5 kB / 0.6382 GB, free: 38.72 MB / 462.1 MB " [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/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_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.57377166405786]