Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 117.2 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.001653/0.001653, allocations: 208.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.292, allocations: 50.55 MB / 409.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00745/0.2995, allocations: 7.409 MB / 416.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00551/0.305, allocations: 3.25 MB / 419.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000793/0.3058, allocations: 31.94 kB / 419.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.3078, allocations: 1.027 MB / 421 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002723/0.3105, allocations: 1.339 MB / 422.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008853/0.3114, allocations: 459.1 kB / 422.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002992/0.3144, allocations: 2.664 MB / 425.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.3159, allocations: 1.52 MB / 426.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000947/0.3169, allocations: 0.8407 MB / 427.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.3182, allocations: 1.219 MB / 429 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.3185, allocations: 172 kB / 429.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001608/0.3201, allocations: 1.006 MB / 430.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.3211, allocations: 1.099 MB / 431.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.3223, allocations: 1.289 MB / 432.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004176/0.3265, allocations: 4.314 MB / 436.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3265, allocations: 4 kB / 436.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3265, allocations: 3.938 kB / 436.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.3265, allocations: 0 / 436.9 MB, free: 5.812 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005116/0.3317, allocations: 3.028 MB / 439.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3317, allocations: 15.95 kB / 439.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006433/0.3382, allocations: 1.779 MB / 441.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.3403, allocations: 1.371 MB / 443.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.018e-05/0.3404, allocations: 139.3 kB / 443.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005865/0.341, allocations: 255.6 kB / 443.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009532/0.3506, allocations: 6.676 MB / 450.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.391e-05/0.3507, allocations: 27.72 kB / 450.2 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/0.3509, allocations: 91.83 kB / 450.3 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002012/0.3529, allocations: 1.363 MB / 451.6 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.3632, allocations: 6.056 MB / 457.7 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.3937, allocations: 25.52 MB / 483.2 MB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007727/0.4015, allocations: 2.686 MB / 485.9 MB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001916/0.4035, allocations: 1.028 MB / 486.9 MB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007026/0.4106, allocations: 3.979 MB / 490.9 MB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.4106, allocations: 47.06 kB / 490.9 MB, free: 13.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.729e-06/0.4106, allocations: 4 kB / 490.9 MB, free: 13.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.0279/0.4385, allocations: 10.3 MB / 0.4895 GB, free: 3.512 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001382/0.44, allocations: 1.675 MB / 0.4911 GB, free: 1.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004503/0.4445, allocations: 2.721 MB / 0.4938 GB, free: 14.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.4448, allocations: 45.73 kB / 0.4938 GB, free: 14.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.4463, allocations: 2.075 MB / 0.4958 GB, free: 12.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000692/0.447, allocations: 0.5015 MB / 0.4963 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001566/0.4486, allocations: 0.9203 MB / 0.4972 GB, free: 11.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.451e-05/0.4487, allocations: 305.1 kB / 0.4975 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.4513, allocations: 1.66 MB / 0.4992 GB, free: 9.348 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004398/0.4557, allocations: 4.46 MB / 0.5035 GB, free: 3.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007369/0.4631, allocations: 6.552 MB / 0.5099 GB, free: 11.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-05/0.4632, allocations: 28 kB / 0.5099 GB, free: 11.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02016/0.4834, allocations: 8.075 MB / 0.5178 GB, free: 3.418 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.4835, allocations: 44.22 kB / 0.5179 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01222/0.4957, allocations: 3.581 MB / 0.5214 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.508, allocations: 2.677 MB / 0.524 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/0.5114, allocations: 1.018 MB / 0.525 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/0.5265, allocations: 9.71 MB / 0.5344 GB, free: 2.078 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.5305, allocations: 339.5 kB / 0.5348 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009304/0.5315, allocations: 284 kB / 0.535 GB, free: 1.469 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003121/0.5346, allocations: 1.426 MB / 0.5364 GB, free: 32 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2945/0.8291, allocations: 226.4 kB / 0.5366 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.8304, allocations: 329.4 kB / 0.537 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006958/0.8374, allocations: 2.531 MB / 0.5394 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/0.8374, allocations: 5.5 kB / 0.5394 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/0.8375, allocations: 5.219 kB / 0.5394 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.849, allocations: 6.875 MB / 0.5462 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.849, allocations: 0 / 0.5462 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.8498, allocations: 183.4 kB / 0.5463 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004418/0.8543, allocations: 1.426 MB / 0.5477 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.8544, allocations: 32.7 kB / 0.5478 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008457/0.8629, allocations: 7.936 MB / 0.5555 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007088/0.8636, allocations: 1.526 MB / 0.557 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007677/0.8713, allocations: 4.872 MB / 0.5618 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006054/0.8719, allocations: 295.3 kB / 0.562 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.8722, allocations: 24 kB / 0.5621 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.8733, allocations: 115.4 kB / 0.5622 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.8736, allocations: 82.22 kB / 0.5622 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.564e-05/0.8737, allocations: 39.98 kB / 0.5623 GB, free: 109.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001918/0.8756, allocations: 1.685 MB / 0.5639 GB, free: 107.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8756, allocations: 0 / 0.5639 GB, free: 107.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003096/0.8787, allocations: 0.778 MB / 0.5647 GB, free: 106.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003519/0.8791, allocations: 151.6 kB / 0.5648 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006293/0.8854, allocations: 4.466 MB / 0.5692 GB, free: 102.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.8854, allocations: 0 / 0.5692 GB, free: 102.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002816/0.8882, allocations: 1.73 MB / 0.5709 GB, free: 100.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.89, allocations: 267 kB / 0.5711 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008661/0.8987, allocations: 6.529 MB / 0.5775 GB, free: 93.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/0.9003, allocations: 2.289 MB / 0.5798 GB, free: 91.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00234/0.9026, allocations: 1.415 MB / 0.5811 GB, free: 89.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.903, allocations: 171.4 kB / 0.5813 GB, free: 89.74 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.903, allocations: 0 / 0.5813 GB, free: 89.74 MB / 462.1 MB Notification: Performance of Templates: time 0.04058/0.9436, allocations: 28.43 MB / 0.6091 GB, free: 61.44 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches