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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002192/0.002192, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 230.5 MB / 258.2 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 67.89 kB / 378.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2312, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009166/0.2404, allocations: 7.653 MB / 439.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006268/0.2466, allocations: 3.395 MB / 443 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008406/0.2475, allocations: 43.81 kB / 443.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.2495, allocations: 1.047 MB / 444.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.2524, allocations: 1.351 MB / 445.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2537, allocations: 0.5417 MB / 446 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003615/0.2573, allocations: 2.621 MB / 448.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.2589, allocations: 1.222 MB / 449.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2602, allocations: 0.8446 MB / 450.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.2618, allocations: 1.257 MB / 452 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002675/0.262, allocations: 148 kB / 452.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.2637, allocations: 0.9282 MB / 453 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.2647, allocations: 1.075 MB / 454.1 MB, free: 496 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001198/0.2659, allocations: 1.242 MB / 455.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004472/0.2704, allocations: 4.107 MB / 459.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2704, allocations: 0 / 459.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2704, allocations: 0 / 459.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.206e-05/0.2704, allocations: 0 / 459.5 MB, free: 11.11 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.005264/0.2757, allocations: 2.993 MB / 462.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2757, allocations: 12.03 kB / 462.5 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.343e-05/0.2758, allocations: 59.31 kB / 462.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005073/0.2763, allocations: 466.4 kB / 463 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005302/0.2816, allocations: 1.594 MB / 464.6 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.2845, allocations: 1.551 MB / 466.1 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.2846, allocations: 123 kB / 466.2 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/0.2849, allocations: 163.8 kB / 466.4 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009573/0.2945, allocations: 6.538 MB / 472.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-05/0.2946, allocations: 27.75 kB / 473 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.2948, allocations: 87.83 kB / 473.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002537/0.2974, allocations: 1.468 MB / 474.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.3078, allocations: 5.834 MB / 480.4 MB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02982/0.3377, allocations: 25.61 MB / 0.4941 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005305/0.343, allocations: 2.02 MB / 0.4961 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.3445, allocations: 1.135 MB / 0.4972 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007271/0.3518, allocations: 4.544 MB / 0.5016 GB, free: 3.477 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.3518, allocations: 46.5 kB / 0.5017 GB, free: 3.422 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.026e-06/0.3518, allocations: 0 / 0.5017 GB, free: 3.422 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02396/0.3758, allocations: 9.702 MB / 0.5111 GB, free: 9.645 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.3759, allocations: 137 kB / 0.5113 GB, free: 9.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004256/0.3801, allocations: 2.719 MB / 0.5139 GB, free: 6.742 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002087/0.3803, allocations: 37.7 kB / 0.514 GB, free: 6.699 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.382, allocations: 2.136 MB / 0.5161 GB, free: 4.543 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00052/0.3825, allocations: 444.6 kB / 0.5165 GB, free: 4.105 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.3836, allocations: 0.8338 MB / 0.5173 GB, free: 3.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3837, allocations: 309.1 kB / 0.5176 GB, free: 2.957 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.3859, allocations: 1.433 MB / 0.519 GB, free: 1.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004581/0.3904, allocations: 4.065 MB / 0.523 GB, free: 12.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008113/0.3985, allocations: 5.945 MB / 0.5288 GB, free: 4.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.298e-05/0.3986, allocations: 28 kB / 0.5288 GB, free: 4.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01136/0.41, allocations: 6.014 MB / 0.5347 GB, free: 14.83 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.226e-05/0.41, allocations: 44 kB / 0.5347 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.786e-05/0.4101, allocations: 92 kB / 0.5348 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/0.4125, allocations: 0.8163 MB / 0.5356 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002773/0.4153, allocations: 0.9435 MB / 0.5365 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006249/0.4215, allocations: 4.56 MB / 0.541 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/0.4244, allocations: 247.7 kB / 0.5412 GB, free: 8.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000404/0.4248, allocations: 260 kB / 0.5414 GB, free: 7.754 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.002029/0.4269, allocations: 1.368 MB / 0.5428 GB, free: 6.375 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004047/0.4273, allocations: 242.3 kB / 0.543 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.4317, allocations: 2.118 MB / 0.5451 GB, free: 4.008 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/0.4317, allocations: 16 kB / 0.5451 GB, free: 3.992 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.4317, allocations: 0 / 0.5451 GB, free: 3.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4318, allocations: 7.984 kB / 0.5451 GB, free: 3.984 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2266/0.6584, allocations: 5.032 MB / 0.55 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.6584, allocations: 5.375 kB / 0.55 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007819/0.6592, allocations: 155.2 kB / 0.5502 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.6612, allocations: 0.6856 MB / 0.5508 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.28e-05/0.6613, allocations: 17.97 kB / 0.5509 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/0.6656, allocations: 4.046 MB / 0.5548 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6656, allocations: 1.812 kB / 0.5548 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005202/0.6708, allocations: 4.071 MB / 0.5588 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004128/0.6712, allocations: 211.4 kB / 0.559 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/0.6714, allocations: 19.42 kB / 0.559 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008625/0.6723, allocations: 68.45 kB / 0.5591 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.6724, allocations: 65.06 kB / 0.5591 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.486e-05/0.6725, allocations: 26 kB / 0.5592 GB, free: 111.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00175/0.6743, allocations: 1.69 MB / 0.5608 GB, free: 111.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6743, allocations: 2.062 kB / 0.5608 GB, free: 111.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002564/0.6768, allocations: 0.673 MB / 0.5615 GB, free: 111.1 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.005282/0.6821, allocations: 4.732 MB / 0.5661 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004394/0.6865, allocations: 3.347 MB / 0.5694 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.6865, allocations: 0 / 0.5694 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009878/0.6875, allocations: 0.9586 MB / 0.5703 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.689, allocations: 261.5 kB / 0.5705 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02997/0.719, allocations: 29.95 MB / 0.5998 GB, free: 72.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.7203, allocations: 2.234 MB / 0.602 GB, free: 69.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002061/0.7224, allocations: 1.322 MB / 0.6033 GB, free: 68.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009517/0.7234, allocations: 1.097 MB / 0.6043 GB, free: 67.38 MB / 462.1 MB Notification: Performance of SimCode: time 6.12e-07/0.7234, allocations: 0 / 0.6043 GB, free: 67.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7027/1.426, allocations: 48.37 MB / 0.6516 GB, free: 19.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.48/19.9, allocations: 8 kB / 0.6516 GB, free: 19.23 MB / 462.1 MB " [Timeout remaining time 640] (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 --stepSize=0.0019992 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 22.863126962969545]