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.001343/0.001343, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001552/0.001552, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.476/1.476, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001553/0.001553, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1014, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2022/0.3035, allocations: 7.628 MB / 434 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005791/0.3093, allocations: 3.38 MB / 437.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.3104, allocations: 47.28 kB / 437.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002064/0.3124, allocations: 1.043 MB / 438.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.3159, allocations: 1.342 MB / 439.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.3172, allocations: 0.5437 MB / 440.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.3209, allocations: 2.616 MB / 442.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.3225, allocations: 1.197 MB / 444.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.3239, allocations: 0.8411 MB / 445 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.3255, allocations: 1.256 MB / 446.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003543/0.3259, allocations: 147.2 kB / 446.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.3278, allocations: 0.9239 MB / 447.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.3289, allocations: 1.083 MB / 448.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.3301, allocations: 1.235 MB / 449.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005777/0.3358, allocations: 4.1 MB / 453.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3358, allocations: 5.125 kB / 453.7 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3358, allocations: 0 / 453.7 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.301e-05/0.3359, allocations: 0 / 453.7 MB, free: 15 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.007047/0.343, allocations: 3.079 MB / 456.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.343, allocations: 9.438 kB / 456.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006506/0.3437, allocations: 456.5 kB / 457.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005576/0.3492, allocations: 1.603 MB / 458.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.3525, allocations: 1.61 MB / 460.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.3527, allocations: 128.1 kB / 460.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000431/0.3531, allocations: 161.4 kB / 460.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/0.3643, allocations: 6.537 MB / 467.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-05/0.3644, allocations: 32.2 kB / 467.3 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002737/0.3646, allocations: 81.92 kB / 467.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002678/0.3673, allocations: 1.464 MB / 468.8 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.3783, allocations: 5.834 MB / 474.7 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03341/0.4117, allocations: 25.7 MB / 0.4887 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006023/0.4177, allocations: 2.469 MB / 0.4911 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4194, allocations: 1.134 MB / 0.4922 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008388/0.4278, allocations: 4.821 MB / 0.4969 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.4278, allocations: 46.56 kB / 0.4969 GB, free: 12.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.118e-06/0.4278, allocations: 0 / 0.4969 GB, free: 12.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02593/0.4537, allocations: 9.92 MB / 0.5066 GB, free: 2.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.956e-05/0.4538, allocations: 141 kB / 0.5067 GB, free: 2.414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004416/0.4582, allocations: 2.711 MB / 0.5094 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002945/0.4585, allocations: 41.7 kB / 0.5094 GB, free: 15.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.4603, allocations: 2.132 MB / 0.5115 GB, free: 13.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005981/0.4609, allocations: 448.6 kB / 0.5119 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001192/0.4621, allocations: 0.8337 MB / 0.5128 GB, free: 12.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.4622, allocations: 309.1 kB / 0.5131 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/0.4646, allocations: 1.441 MB / 0.5145 GB, free: 10.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004603/0.4692, allocations: 4.061 MB / 0.5184 GB, free: 5.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007544/0.4767, allocations: 5.942 MB / 0.5242 GB, free: 13.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.394e-05/0.4768, allocations: 28 kB / 0.5243 GB, free: 13.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01224/0.489, allocations: 6.013 MB / 0.5301 GB, free: 7.773 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.028e-05/0.4891, allocations: 47.94 kB / 0.5302 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/0.4892, allocations: 96.19 kB / 0.5303 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002502/0.4917, allocations: 0.8203 MB / 0.5311 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003118/0.4949, allocations: 0.9473 MB / 0.532 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006405/0.5013, allocations: 4.652 MB / 0.5365 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/0.5042, allocations: 239.7 kB / 0.5368 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000429/0.5047, allocations: 264 kB / 0.537 GB, free: 0.5781 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.002286/0.507, allocations: 1.368 MB / 0.5383 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/0.5074, allocations: 234.4 kB / 0.5386 GB, free: 14.97 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00466/0.5121, allocations: 2.133 MB / 0.5407 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.328e-05/0.5121, allocations: 12 kB / 0.5407 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.5121, allocations: 4 kB / 0.5407 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.5121, allocations: 7.984 kB / 0.5407 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009716/0.5218, allocations: 5.059 MB / 0.5456 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.5218, allocations: 2.938 kB / 0.5456 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.5227, allocations: 159.7 kB / 0.5458 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/0.5249, allocations: 0.6795 MB / 0.5464 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.5251, allocations: 20.06 kB / 0.5465 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00604/0.5311, allocations: 4.151 MB / 0.5505 GB, free: 2.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/0.5311, allocations: 7.969 kB / 0.5505 GB, free: 2.512 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007423/0.5385, allocations: 4.049 MB / 0.5545 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008347/0.5394, allocations: 299.4 kB / 0.5548 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005185/0.5399, allocations: 15.98 kB / 0.5548 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.5411, allocations: 71.89 kB / 0.5548 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.5414, allocations: 57.33 kB / 0.5549 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5415, allocations: 35.98 kB / 0.5549 GB, free: 13.94 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003439/0.5449, allocations: 1.693 MB / 0.5566 GB, free: 12.24 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5449, allocations: 0 / 0.5566 GB, free: 12.24 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003877/0.5488, allocations: 0.6677 MB / 0.5572 GB, free: 11.57 MB / 478.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.007749/0.5566, allocations: 4.739 MB / 0.5619 GB, free: 6.785 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006247/0.5628, allocations: 3.337 MB / 0.5651 GB, free: 3.457 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5628, allocations: 0 / 0.5651 GB, free: 3.457 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.5644, allocations: 0.9662 MB / 0.5661 GB, free: 2.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.5666, allocations: 267.1 kB / 0.5663 GB, free: 2.223 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05426/0.6209, allocations: 29.9 MB / 0.5955 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/0.6241, allocations: 2.237 MB / 0.5977 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003057/0.6272, allocations: 1.32 MB / 0.599 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/0.6289, allocations: 1.093 MB / 0.6001 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/0.6289, allocations: 4 kB / 0.6001 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2858/0.9147, allocations: 44.98 MB / 0.644 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.69/17.61, allocations: 7.953 kB / 0.644 GB, free: 159.4 MB / 0.5137 GB " [Timeout remaining time 642] (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: 20.44597606593743]