Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 111.7 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002121/0.002121, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 43.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2645, allocations: 49.45 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008889/0.2735, allocations: 6.979 MB / 407.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006073/0.2796, allocations: 3.096 MB / 410.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009068/0.2805, allocations: 31.94 kB / 410.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.2822, allocations: 0.6614 MB / 411 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003174/0.2854, allocations: 1.393 MB / 412.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009966/0.2864, allocations: 0.4913 MB / 412.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004041/0.2904, allocations: 3.119 MB / 416 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008094/0.2913, allocations: 451.1 kB / 416.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.2925, allocations: 0.7977 MB / 417.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.2941, allocations: 1.207 MB / 418.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002976/0.2944, allocations: 132 kB / 418.6 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.2962, allocations: 0.9555 MB / 419.5 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.2973, allocations: 1.083 MB / 420.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.2986, allocations: 1.227 MB / 421.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004693/0.3033, allocations: 4.079 MB / 425.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3033, allocations: 3.938 kB / 425.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3033, allocations: 0 / 425.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.845e-05/0.3034, allocations: 0 / 425.9 MB, free: 15.02 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.006933/0.3103, allocations: 3.309 MB / 429.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.3104, allocations: 16.02 kB / 429.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005523/0.311, allocations: 437.4 kB / 429.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00842/0.3194, allocations: 1.926 MB / 431.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004195/0.3236, allocations: 2.269 MB / 433.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.3237, allocations: 114.6 kB / 434 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000901/0.3247, allocations: 299.5 kB / 434.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/0.3401, allocations: 8.223 MB / 442.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.733e-05/0.3402, allocations: 39.7 kB / 442.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002915/0.3405, allocations: 75.89 kB / 442.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002286/0.3428, allocations: 1.397 MB / 444 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/0.3615, allocations: 9.542 MB / 453.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03716/0.3987, allocations: 30.5 MB / 484.1 MB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/0.4111, allocations: 4.387 MB / 488.5 MB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003099/0.4143, allocations: 2.105 MB / 490.6 MB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.399e-05/0.4144, allocations: 13.06 kB / 490.6 MB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.4145, allocations: 50.7 kB / 490.6 MB, free: 12.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 5.741e-06/0.4145, allocations: 0 / 490.6 MB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04905/0.4635, allocations: 18.49 MB / 0.4972 GB, free: 9.832 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00275/0.4663, allocations: 3.235 MB / 0.5003 GB, free: 6.262 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/0.4707, allocations: 3.012 MB / 0.5033 GB, free: 3.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000565/0.4713, allocations: 41.7 kB / 0.5033 GB, free: 3.184 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001667/0.473, allocations: 2.163 MB / 0.5054 GB, free: 1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009375/0.4739, allocations: 0.5893 MB / 0.506 GB, free: 416 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001555/0.4755, allocations: 1.012 MB / 0.507 GB, free: 15.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4756, allocations: 305.1 kB / 0.5073 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003958/0.4796, allocations: 2.582 MB / 0.5098 GB, free: 12.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006308/0.4859, allocations: 5.517 MB / 0.5152 GB, free: 5.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/0.4971, allocations: 8.511 MB / 0.5235 GB, free: 11.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.083e-05/0.4973, allocations: 32 kB / 0.5235 GB, free: 11.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02254/0.5198, allocations: 9.883 MB / 0.5332 GB, free: 1.582 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.844e-05/0.5199, allocations: 52 kB / 0.5332 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2304/0.7503, allocations: 5.098 MB / 0.5382 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008674/0.7591, allocations: 2.351 MB / 0.5405 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/0.7629, allocations: 1.24 MB / 0.5417 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006696/0.7696, allocations: 8.683 MB / 0.5502 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004724/0.7744, allocations: 0.5651 MB / 0.5508 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/0.7751, allocations: 320.2 kB / 0.5511 GB, free: 121.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001786/0.7769, allocations: 1.401 MB / 0.5524 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/0.7774, allocations: 276.9 kB / 0.5527 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000747/0.7782, allocations: 415.8 kB / 0.5531 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01073/0.7889, allocations: 5.018 MB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/0.7889, allocations: 5.375 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.789, allocations: 3.984 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006658/0.7956, allocations: 5.361 MB / 0.5632 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.7957, allocations: 5.875 kB / 0.5632 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/0.7973, allocations: 367.4 kB / 0.5636 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008269/0.8056, allocations: 2.389 MB / 0.5659 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004028/0.806, allocations: 51.89 kB / 0.566 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007299/0.8133, allocations: 9.446 MB / 0.5752 GB, free: 99.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001342/0.8147, allocations: 3.064 MB / 0.5782 GB, free: 96.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/0.8293, allocations: 8.789 MB / 0.5868 GB, free: 87.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006732/0.83, allocations: 342.4 kB / 0.5871 GB, free: 87.13 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005339/0.8305, allocations: 31.98 kB / 0.5871 GB, free: 87.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/0.8326, allocations: 324.7 kB / 0.5874 GB, free: 86.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004225/0.8331, allocations: 101.8 kB / 0.5875 GB, free: 86.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/0.8332, allocations: 55.89 kB / 0.5876 GB, free: 86.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00216/0.8354, allocations: 1.877 MB / 0.5894 GB, free: 84.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8354, allocations: 0 / 0.5894 GB, free: 84.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00363/0.8391, allocations: 0.9624 MB / 0.5904 GB, free: 83.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01441/0.8535, allocations: 9.434 MB / 0.5996 GB, free: 74.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009834/0.8633, allocations: 7.259 MB / 0.6067 GB, free: 66.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.8634, allocations: 4 kB / 0.6067 GB, free: 66.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005433/0.8688, allocations: 3.649 MB / 0.6102 GB, free: 63.17 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/0.871, allocations: 315.2 kB / 0.6105 GB, free: 62.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06217/0.9332, allocations: 45.23 MB / 0.6547 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001675/0.9349, allocations: 2.29 MB / 0.6569 GB, free: 11.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003203/0.9381, allocations: 1.663 MB / 0.6586 GB, free: 9.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/0.9396, allocations: 1.167 MB / 0.6597 GB, free: 8.176 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.9396, allocations: 2.625 kB / 0.6597 GB, free: 8.176 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1631/1.103, allocations: 62.65 MB / 0.7209 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.92/19.02, allocations: 2.406 kB / 0.7209 GB, free: 9.887 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches