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.001294/0.001294, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.312, allocations: 50.55 MB / 409.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008443/0.3204, allocations: 7.588 MB / 416.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006055/0.3265, allocations: 3.356 MB / 420.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009758/0.3275, allocations: 35.94 kB / 420.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.3299, allocations: 1.027 MB / 421.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003038/0.3329, allocations: 1.315 MB / 422.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.3342, allocations: 0.5379 MB / 423.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003103/0.3374, allocations: 2.617 MB / 425.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.3388, allocations: 1.381 MB / 427.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009962/0.3398, allocations: 0.825 MB / 427.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/0.3411, allocations: 1.148 MB / 429.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002415/0.3414, allocations: 151.9 kB / 429.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.3428, allocations: 0.897 MB / 430.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008649/0.3437, allocations: 1.048 MB / 431.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009971/0.3447, allocations: 1.226 MB / 432.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004036/0.3487, allocations: 4.088 MB / 436.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3488, allocations: 4 kB / 436.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3488, allocations: 0 / 436.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.608e-05/0.3488, allocations: 0 / 436.5 MB, free: 6.336 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.005341/0.3542, allocations: 2.984 MB / 439.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3542, allocations: 12.03 kB / 439.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005323/0.3596, allocations: 1.565 MB / 441.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.3618, allocations: 1.378 MB / 442.4 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.3619, allocations: 127 kB / 442.6 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003427/0.3623, allocations: 167.8 kB / 442.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/0.3726, allocations: 6.534 MB / 449.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.146e-05/0.3727, allocations: 27.72 kB / 449.3 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/0.3729, allocations: 83.89 kB / 449.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002492/0.3754, allocations: 1.468 MB / 450.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.3861, allocations: 5.834 MB / 456.7 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02826/0.4144, allocations: 25.65 MB / 482.3 MB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005604/0.42, allocations: 2.545 MB / 484.9 MB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.4215, allocations: 1.223 MB / 486.1 MB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007139/0.4287, allocations: 4.807 MB / 490.9 MB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.4287, allocations: 42.56 kB / 490.9 MB, free: 14.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.206e-06/0.4287, allocations: 0 / 490.9 MB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02429/0.453, allocations: 9.787 MB / 0.489 GB, free: 4.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.4531, allocations: 137 kB / 0.4891 GB, free: 4.168 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/0.4566, allocations: 2.702 MB / 0.4918 GB, free: 1.445 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.4568, allocations: 37.64 kB / 0.4918 GB, free: 1.402 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.4581, allocations: 2.06 MB / 0.4938 GB, free: 15.31 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003827/0.4585, allocations: 422.8 kB / 0.4942 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001004/0.4595, allocations: 0.8371 MB / 0.495 GB, free: 14.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4597, allocations: 301.1 kB / 0.4953 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002022/0.4617, allocations: 1.452 MB / 0.4967 GB, free: 12.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003546/0.4652, allocations: 4.069 MB / 0.5007 GB, free: 6.887 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006102/0.4714, allocations: 5.957 MB / 0.5065 GB, free: 15.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.277e-05/0.4714, allocations: 28 kB / 0.5065 GB, free: 15.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009984/0.4814, allocations: 6.028 MB / 0.5124 GB, free: 9.555 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.8e-05/0.4815, allocations: 44.97 kB / 0.5125 GB, free: 9.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.913e-05/0.4816, allocations: 92 kB / 0.5126 GB, free: 9.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/0.484, allocations: 0.824 MB / 0.5134 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/0.4868, allocations: 0.9513 MB / 0.5143 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005883/0.4927, allocations: 4.655 MB / 0.5188 GB, free: 2.848 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00278/0.4955, allocations: 247.5 kB / 0.5191 GB, free: 2.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003636/0.4959, allocations: 260 kB / 0.5193 GB, free: 2.352 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 (502): * Single equations (assignments): 498 * 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.00202/0.4979, allocations: 1.372 MB / 0.5207 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/0.4983, allocations: 225 kB / 0.5209 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004158/0.5025, allocations: 2.134 MB / 0.523 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/0.5025, allocations: 12 kB / 0.523 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.5025, allocations: 4 kB / 0.523 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.5025, allocations: 3.984 kB / 0.523 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009167/0.5117, allocations: 5.066 MB / 0.5279 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.5117, allocations: 4 kB / 0.5279 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007858/0.5125, allocations: 155.8 kB / 0.5281 GB, free: 9.277 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002146/0.5147, allocations: 0.6873 MB / 0.5288 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.6e-05/0.5148, allocations: 20.28 kB / 0.5288 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005197/0.52, allocations: 4.152 MB / 0.5328 GB, free: 4.273 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.52, allocations: 4.031 kB / 0.5328 GB, free: 4.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006315/0.5263, allocations: 4.05 MB / 0.5368 GB, free: 192 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2189/0.7453, allocations: 282.4 kB / 0.5371 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007231/0.7461, allocations: 19.81 kB / 0.5371 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.7472, allocations: 72.58 kB / 0.5371 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.7475, allocations: 55.56 kB / 0.5372 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.7476, allocations: 31.59 kB / 0.5372 GB, free: 124.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003301/0.7509, allocations: 1.688 MB / 0.5389 GB, free: 124.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7509, allocations: 0 / 0.5389 GB, free: 124.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002997/0.7539, allocations: 0.6651 MB / 0.5395 GB, free: 124.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.0004235/0.7543, allocations: 203 kB / 0.5397 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004351/0.7587, allocations: 3.49 MB / 0.5431 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7587, allocations: 0 / 0.5431 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.7598, allocations: 1.051 MB / 0.5442 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.7611, allocations: 252.8 kB / 0.5444 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006508/0.7676, allocations: 5.594 MB / 0.5499 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001488/0.7691, allocations: 2.23 MB / 0.552 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002131/0.7713, allocations: 1.323 MB / 0.5533 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000346/0.7716, allocations: 163.2 kB / 0.5535 GB, free: 118.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7716, allocations: 0 / 0.5535 GB, free: 118.5 MB / 462.1 MB Notification: Performance of Templates: time 0.03178/0.8034, allocations: 21.74 MB / 0.5747 GB, free: 97.82 MB / 462.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