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.001248/0.001248, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001357/0.001357, allocations: 204 kB / 23.73 MB, free: 4.379 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.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001552/0.001552, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2321, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008988/0.2411, allocations: 6.758 MB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006348/0.2475, allocations: 3.154 MB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.2487, allocations: 47.81 kB / 441.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.251, allocations: 1.012 MB / 442.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003409/0.2544, allocations: 1.347 MB / 443.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2558, allocations: 0.5379 MB / 444 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003746/0.2595, allocations: 2.617 MB / 446.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.2614, allocations: 1.226 MB / 447.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001486/0.2629, allocations: 0.8485 MB / 448.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.2649, allocations: 1.257 MB / 449.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003233/0.2652, allocations: 148 kB / 450 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00157/0.2668, allocations: 0.7878 MB / 450.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001262/0.268, allocations: 1.083 MB / 451.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.2691, allocations: 0.8963 MB / 452.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004788/0.2739, allocations: 4.1 MB / 456.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2739, allocations: 4 kB / 456.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2739, allocations: 0 / 456.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.383e-05/0.274, allocations: 0 / 456.9 MB, free: 12.69 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.006008/0.28, allocations: 3.001 MB / 459.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.2801, allocations: 12.03 kB / 459.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006373/0.2807, allocations: 462.4 kB / 460.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005515/0.2862, allocations: 1.602 MB / 462 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004029/0.2902, allocations: 1.551 MB / 463.5 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/0.2904, allocations: 127 kB / 463.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004174/0.2908, allocations: 163.8 kB / 463.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.3015, allocations: 6.542 MB / 470.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-05/0.3016, allocations: 23.81 kB / 470.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/0.3018, allocations: 87.88 kB / 470.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002546/0.3044, allocations: 1.464 MB / 471.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.3148, allocations: 5.814 MB / 477.7 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03147/0.3463, allocations: 24.74 MB / 0.4907 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005612/0.3519, allocations: 2.008 MB / 0.4927 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.3535, allocations: 1.141 MB / 0.4938 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008737/0.3623, allocations: 4.291 MB / 0.498 GB, free: 6.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.3623, allocations: 42.56 kB / 0.498 GB, free: 6.199 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.899e-06/0.3623, allocations: 0 / 0.498 GB, free: 6.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.0258/0.3881, allocations: 9.741 MB / 0.5075 GB, free: 12.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/0.3882, allocations: 141 kB / 0.5077 GB, free: 12.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003873/0.3921, allocations: 2.869 MB / 0.5105 GB, free: 9.324 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001829/0.3923, allocations: 37.7 kB / 0.5105 GB, free: 9.281 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.394, allocations: 2.128 MB / 0.5126 GB, free: 7.133 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005409/0.3945, allocations: 448.7 kB / 0.513 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.3957, allocations: 0.8376 MB / 0.5138 GB, free: 5.844 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3958, allocations: 305.1 kB / 0.5141 GB, free: 5.543 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/0.3981, allocations: 1.441 MB / 0.5155 GB, free: 4.098 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004674/0.4027, allocations: 4.061 MB / 0.5195 GB, free: 14.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007599/0.4103, allocations: 5.952 MB / 0.5253 GB, free: 7.461 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.578e-05/0.4104, allocations: 24 kB / 0.5253 GB, free: 7.438 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01201/0.4224, allocations: 6.017 MB / 0.5312 GB, free: 1.414 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.85e-05/0.4225, allocations: 44 kB / 0.5312 GB, free: 1.371 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.4226, allocations: 100.5 kB / 0.5313 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.425, allocations: 0.8167 MB / 0.5321 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003147/0.4282, allocations: 0.9435 MB / 0.5331 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006657/0.4348, allocations: 4.529 MB / 0.5375 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/0.4388, allocations: 243.8 kB / 0.5377 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008146/0.4396, allocations: 256 kB / 0.538 GB, free: 10.38 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.00313/0.4427, allocations: 1.368 MB / 0.5393 GB, free: 8.996 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007236/0.4435, allocations: 242.3 kB / 0.5395 GB, free: 8.758 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.4482, allocations: 2.125 MB / 0.5416 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.781e-05/0.4483, allocations: 16 kB / 0.5416 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.4483, allocations: 0 / 0.5416 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.4483, allocations: 7.984 kB / 0.5416 GB, free: 6.602 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.4586, allocations: 4.781 MB / 0.5463 GB, free: 1.762 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.4586, allocations: 0 / 0.5463 GB, free: 1.762 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008079/0.4595, allocations: 155.8 kB / 0.5464 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/0.4617, allocations: 0.6794 MB / 0.5471 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.4618, allocations: 20 kB / 0.5471 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1978/0.6596, allocations: 4.016 MB / 0.551 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/0.6596, allocations: 6.125 kB / 0.551 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006368/0.6659, allocations: 4.058 MB / 0.555 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006541/0.6666, allocations: 219.7 kB / 0.5552 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002674/0.6669, allocations: 24.59 kB / 0.5552 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000964/0.6678, allocations: 72.89 kB / 0.5553 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.668, allocations: 58.73 kB / 0.5554 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/0.6681, allocations: 32.81 kB / 0.5554 GB, free: 112.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00201/0.6701, allocations: 1.693 MB / 0.5571 GB, free: 111.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6701, allocations: 0 / 0.5571 GB, free: 111.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002945/0.673, allocations: 0.6624 MB / 0.5577 GB, free: 111.8 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.00552/0.6786, allocations: 4.748 MB / 0.5623 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004002/0.6826, allocations: 3.339 MB / 0.5656 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.6826, allocations: 0 / 0.5656 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.6836, allocations: 0.9562 MB / 0.5665 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.6851, allocations: 260.5 kB / 0.5668 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02987/0.715, allocations: 29.95 MB / 0.596 GB, free: 74.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.7165, allocations: 1.666 MB / 0.5977 GB, free: 72.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002333/0.7188, allocations: 1.318 MB / 0.5989 GB, free: 71.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/0.7199, allocations: 1.097 MB / 0.6 GB, free: 70.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7199, allocations: 0 / 0.6 GB, free: 70.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07773/0.7977, allocations: 46.95 MB / 0.6459 GB, free: 23.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.19, allocations: 2.234 kB / 0.6459 GB, free: 23.89 MB / 462.1 MB " [Timeout remaining time 646] (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: 16.739052629010985]