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.001446/0.001446, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001633/0.001633, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.32/1.32, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 47.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2033, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008712/0.212, allocations: 7.657 MB / 439.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005646/0.2177, allocations: 3.399 MB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005365/0.2182, allocations: 43.81 kB / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.2201, allocations: 1.062 MB / 444.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002537/0.2227, allocations: 1.346 MB / 445.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.2237, allocations: 0.534 MB / 446 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003064/0.2267, allocations: 2.621 MB / 448.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.2282, allocations: 1.221 MB / 449.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.2293, allocations: 0.8407 MB / 450.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.2308, allocations: 1.261 MB / 451.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002555/0.231, allocations: 148 kB / 452.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.2325, allocations: 0.932 MB / 453 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009595/0.2335, allocations: 1.071 MB / 454.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.2346, allocations: 1.242 MB / 455.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004022/0.2386, allocations: 4.1 MB / 459.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2386, allocations: 7.984 kB / 459.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2386, allocations: 0 / 459.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.674e-05/0.2386, allocations: 0 / 459.4 MB, free: 11.24 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.004859/0.2435, allocations: 2.993 MB / 462.4 MB, free: 8.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2435, allocations: 12.03 kB / 462.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.066e-05/0.2436, allocations: 59.31 kB / 462.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004783/0.2441, allocations: 454.4 kB / 462.9 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00521/0.2493, allocations: 1.602 MB / 464.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002717/0.252, allocations: 1.551 MB / 466.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.2521, allocations: 127 kB / 466.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003058/0.2524, allocations: 163.8 kB / 466.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00887/0.2613, allocations: 6.538 MB / 472.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.096e-05/0.2613, allocations: 27.75 kB / 472.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002333/0.2616, allocations: 83.89 kB / 473 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002447/0.264, allocations: 1.472 MB / 474.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009419/0.2734, allocations: 5.83 MB / 480.3 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02779/0.3012, allocations: 25.62 MB / 0.4941 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005185/0.3064, allocations: 2.02 MB / 0.496 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.3079, allocations: 1.129 MB / 0.4971 GB, free: 8.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00708/0.315, allocations: 4.548 MB / 0.5016 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.315, allocations: 42.5 kB / 0.5016 GB, free: 3.551 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.206e-06/0.315, allocations: 3.938 kB / 0.5016 GB, free: 3.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02282/0.3378, allocations: 9.69 MB / 0.5111 GB, free: 9.785 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.515e-05/0.3379, allocations: 144.9 kB / 0.5112 GB, free: 9.613 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/0.3414, allocations: 2.715 MB / 0.5139 GB, free: 6.879 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.3415, allocations: 37.7 kB / 0.5139 GB, free: 6.836 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.343, allocations: 2.14 MB / 0.516 GB, free: 4.676 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004277/0.3434, allocations: 448.6 kB / 0.5164 GB, free: 4.234 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/0.3444, allocations: 0.8299 MB / 0.5172 GB, free: 3.395 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3445, allocations: 301.1 kB / 0.5175 GB, free: 3.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.3466, allocations: 1.437 MB / 0.5189 GB, free: 1.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004027/0.3506, allocations: 4.065 MB / 0.5229 GB, free: 12.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006727/0.3574, allocations: 5.948 MB / 0.5287 GB, free: 5.023 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.616e-05/0.3574, allocations: 31.94 kB / 0.5287 GB, free: 4.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01037/0.3678, allocations: 6.014 MB / 0.5346 GB, free: 14.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.389e-05/0.3678, allocations: 44.94 kB / 0.5347 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.752e-05/0.3679, allocations: 95.94 kB / 0.5347 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002299/0.3702, allocations: 0.8196 MB / 0.5355 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.373, allocations: 0.9396 MB / 0.5365 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005967/0.379, allocations: 4.569 MB / 0.5409 GB, free: 8.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002669/0.3816, allocations: 235.7 kB / 0.5411 GB, free: 8.152 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003722/0.382, allocations: 260 kB / 0.5414 GB, free: 7.898 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.001851/0.3839, allocations: 1.373 MB / 0.5427 GB, free: 6.516 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003911/0.3843, allocations: 238.3 kB / 0.543 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00427/0.3885, allocations: 2.118 MB / 0.545 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/0.3885, allocations: 16 kB / 0.545 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3885, allocations: 0 / 0.545 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.3886, allocations: 7.984 kB / 0.5451 GB, free: 4.129 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1721/0.5606, allocations: 5.036 MB / 0.55 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.5606, allocations: 1.688 kB / 0.55 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.5615, allocations: 155.9 kB / 0.5501 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/0.5635, allocations: 0.679 MB / 0.5508 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.418e-05/0.5636, allocations: 17.92 kB / 0.5508 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004134/0.5677, allocations: 4.056 MB / 0.5548 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5677, allocations: 5.469 kB / 0.5548 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005021/0.5727, allocations: 4.064 MB / 0.5587 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003155/0.573, allocations: 214.9 kB / 0.5589 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/0.5733, allocations: 15.69 kB / 0.559 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008561/0.5741, allocations: 71.97 kB / 0.559 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.5743, allocations: 65.47 kB / 0.5591 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.405e-05/0.5743, allocations: 33.08 kB / 0.5591 GB, free: 111.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001733/0.5761, allocations: 1.695 MB / 0.5608 GB, free: 111.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5761, allocations: 0 / 0.5608 GB, free: 111.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002473/0.5785, allocations: 0.6597 MB / 0.5614 GB, free: 111.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.005012/0.5836, allocations: 4.732 MB / 0.566 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003444/0.587, allocations: 3.349 MB / 0.5693 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.587, allocations: 2 kB / 0.5693 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.5879, allocations: 0.9629 MB / 0.5703 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5892, allocations: 251.5 kB / 0.5705 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/0.6168, allocations: 29.95 MB / 0.5997 GB, free: 72.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/0.6182, allocations: 2.232 MB / 0.6019 GB, free: 70.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002063/0.6203, allocations: 1.328 MB / 0.6032 GB, free: 68.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009485/0.6212, allocations: 1.095 MB / 0.6043 GB, free: 67.63 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6212, allocations: 0 / 0.6043 GB, free: 67.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06605/0.6873, allocations: 48.37 MB / 0.6515 GB, free: 19.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.35/19.03, allocations: 9.547 kB / 0.6515 GB, free: 19.56 MB / 462.1 MB " [Timeout remaining time 641] (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: 21.885252273001242]