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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008581/0.0008581, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 246.4 MB, free: 11.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002469, allocations: 4 kB / 307.1 MB, free: 1.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.08997, allocations: 51.53 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2044/0.2944, allocations: 16.16 MB / 374.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.3046, allocations: 4.717 MB / 379.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002954/0.3076, allocations: 72.31 kB / 379.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.31, allocations: 0.7847 MB / 380.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007821/0.3178, allocations: 2.6 MB / 383 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00183/0.3197, allocations: 470.3 kB / 383.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005201/0.3249, allocations: 2.834 MB / 386.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/0.3278, allocations: 1.571 MB / 387.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001621/0.3295, allocations: 0.7429 MB / 388.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.331, allocations: 1.161 MB / 389.7 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002924/0.3313, allocations: 81.84 kB / 389.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.333, allocations: 0.738 MB / 390.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009416/0.334, allocations: 0.9703 MB / 391.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005705/0.3346, allocations: 0.491 MB / 392 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003985/0.3386, allocations: 3.036 MB / 395.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3386, allocations: 0 / 395.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3386, allocations: 0 / 395.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001377/0.3387, allocations: 0 / 395.1 MB, free: 3.379 MB / 302.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.005449/0.3442, allocations: 2.521 MB / 397.6 MB, free: 1.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3443, allocations: 9.094 kB / 397.6 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/0.3493, allocations: 1.612 MB / 399.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003005/0.3524, allocations: 1.339 MB / 400.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.3525, allocations: 127.2 kB / 400.7 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003434/0.3529, allocations: 165.4 kB / 400.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.364, allocations: 6.529 MB / 407.4 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.221e-05/0.3641, allocations: 27.75 kB / 407.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002716/0.3644, allocations: 86.64 kB / 407.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002382/0.3668, allocations: 1.467 MB / 408.9 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.3776, allocations: 5.822 MB / 414.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03148/0.4091, allocations: 25.75 MB / 440.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005611/0.4148, allocations: 2.568 MB / 443.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.4165, allocations: 1.222 MB / 444.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007574/0.4241, allocations: 4.788 MB / 449.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.4241, allocations: 46.48 kB / 449.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 4.719e-06/0.4241, allocations: 0 / 449.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02311/0.4473, allocations: 9.742 MB / 458.9 MB, free: 5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.434e-05/0.4474, allocations: 148.9 kB / 459 MB, free: 4.824 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/0.4509, allocations: 2.686 MB / 461.7 MB, free: 2.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.4511, allocations: 41.7 kB / 461.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.4524, allocations: 2.045 MB / 463.8 MB, free: 28 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004356/0.4528, allocations: 433.3 kB / 464.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.453, allocations: 80 kB / 464.3 MB, free: 15.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002525/0.4532, allocations: 487.1 kB / 464.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.4554, allocations: 1.433 MB / 466.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003676/0.4591, allocations: 4.057 MB / 470.3 MB, free: 8.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003358/0.4624, allocations: 2.349 MB / 472.6 MB, free: 5.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.743e-05/0.4625, allocations: 24 kB / 472.6 MB, free: 5.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01137/0.4739, allocations: 5.993 MB / 478.6 MB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.474, allocations: 47.95 kB / 478.7 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.451e-05/0.4741, allocations: 92 kB / 478.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/0.4763, allocations: 0.8279 MB / 479.6 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.4794, allocations: 0.9553 MB / 480.5 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00568/0.4851, allocations: 4.343 MB / 484.9 MB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002956/0.4881, allocations: 243.6 kB / 485.1 MB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004023/0.4885, allocations: 256.5 kB / 485.4 MB, free: 8.957 MB / 398.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 (502): * Single equations (assignments): 498 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002325/0.4908, allocations: 1.372 MB / 486.7 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004149/0.4912, allocations: 225.1 kB / 487 MB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004301/0.4955, allocations: 2.126 MB / 489.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.054e-05/0.4956, allocations: 12 kB / 489.1 MB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4956, allocations: 4 kB / 489.1 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4956, allocations: 11.92 kB / 489.1 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009439/0.5051, allocations: 5.065 MB / 494.2 MB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5051, allocations: 3.953 kB / 494.2 MB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007601/0.5059, allocations: 159.7 kB / 494.3 MB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.5078, allocations: 0.6757 MB / 495 MB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.5079, allocations: 19.98 kB / 495 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004837/0.5128, allocations: 3.899 MB / 498.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5128, allocations: 4 kB / 498.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/0.5189, allocations: 4.039 MB / 0.4912 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006562/0.5196, allocations: 286 kB / 0.4915 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.5199, allocations: 20.06 kB / 0.4915 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008443/0.5207, allocations: 67.89 kB / 0.4915 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.5209, allocations: 60.31 kB / 0.4916 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-05/0.521, allocations: 38.81 kB / 0.4916 GB, free: 6.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.5234, allocations: 1.677 MB / 0.4933 GB, free: 4.922 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5234, allocations: 0 / 0.4933 GB, free: 4.922 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00315/0.5266, allocations: 0.6565 MB / 0.4939 GB, free: 4.266 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.527, allocations: 191.8 kB / 0.4941 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005306/0.5323, allocations: 3.469 MB / 0.4975 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5323, allocations: 0 / 0.4975 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.5337, allocations: 1.032 MB / 0.4985 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.5354, allocations: 240.4 kB / 0.4987 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009471/0.5449, allocations: 6.648 MB / 0.5052 GB, free: 8.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/0.547, allocations: 2.233 MB / 0.5074 GB, free: 6.371 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003016/0.55, allocations: 1.328 MB / 0.5087 GB, free: 5.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.5505, allocations: 155.4 kB / 0.5088 GB, free: 4.887 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5505, allocations: 0 / 0.5088 GB, free: 4.887 MB / 430.1 MB Notification: Performance of Templates: time 0.2011/0.7516, allocations: 22.19 MB / 0.5305 GB, free: 147.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches