Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008524/0.0008525, allocations: 93.81 kB / 17.3 MB, free: 6.395 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.000927/0.0009272, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004548, allocations: 16 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09776, allocations: 47.59 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01655/0.1143, allocations: 17.25 MB / 346.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.1262, allocations: 4.977 MB / 351.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003684/0.1299, allocations: 67.81 kB / 351.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.1315, allocations: 278.7 kB / 351.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004626/0.1361, allocations: 1.281 MB / 352.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.1372, allocations: 423.4 kB / 353.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004437/0.1416, allocations: 3.624 MB / 356.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002853/0.1445, allocations: 2.035 MB / 358.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.1456, allocations: 0.6651 MB / 359.6 MB, free: 5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.1471, allocations: 1.226 MB / 360.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002573/0.1474, allocations: 88 kB / 360.9 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.149, allocations: 0.9905 MB / 361.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009548/0.15, allocations: 1.055 MB / 362.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.1511, allocations: 1.24 MB / 364.2 MB, free: 388 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003944/0.155, allocations: 4.068 MB / 368.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.155, allocations: 8 kB / 368.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.155, allocations: 3.938 kB / 368.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.48e-05/0.1551, allocations: 0 / 368.2 MB, free: 12.29 MB / 318.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.004752/0.1599, allocations: 2.525 MB / 370.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1599, allocations: 8.031 kB / 370.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006644/0.1666, allocations: 1.779 MB / 372.5 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.1696, allocations: 1.445 MB / 374 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.1697, allocations: 135.3 kB / 374.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007716/0.1705, allocations: 259.6 kB / 374.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2031/0.3737, allocations: 6.665 MB / 381 MB, free: 49.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.3738, allocations: 31 kB / 381.1 MB, free: 49.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003336/0.3742, allocations: 87.83 kB / 381.2 MB, free: 49.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002756/0.3769, allocations: 1.363 MB / 382.5 MB, free: 49.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.3909, allocations: 6.056 MB / 388.6 MB, free: 48.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02828/0.4192, allocations: 25.62 MB / 414.2 MB, free: 28.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006265/0.4255, allocations: 2.671 MB / 416.9 MB, free: 25.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.4268, allocations: 1.032 MB / 417.9 MB, free: 24.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005338/0.4321, allocations: 3.887 MB / 421.8 MB, free: 20.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/0.4322, allocations: 39.12 kB / 421.8 MB, free: 20.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 4.809e-06/0.4322, allocations: 0 / 421.8 MB, free: 20.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02395/0.4562, allocations: 10.34 MB / 432.2 MB, free: 9.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001017/0.4572, allocations: 1.584 MB / 433.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003306/0.4606, allocations: 2.734 MB / 436.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003885/0.461, allocations: 42.72 kB / 436.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.4621, allocations: 2.086 MB / 438.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005483/0.4626, allocations: 0.5122 MB / 439.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004165/0.463, allocations: 392.5 kB / 439.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.057e-05/0.4631, allocations: 305.1 kB / 439.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.4651, allocations: 1.652 MB / 441.5 MB, free: 56 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004478/0.4696, allocations: 4.456 MB / 445.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007994/0.4776, allocations: 6.544 MB / 452.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.581e-05/0.4777, allocations: 28 kB / 452.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02173/0.4994, allocations: 7.99 MB / 460.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.822e-05/0.4995, allocations: 49 kB / 460.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01214/0.5117, allocations: 3.494 MB / 464 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01255/0.5243, allocations: 2.589 MB / 466.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/0.5276, allocations: 1.014 MB / 467.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/0.5421, allocations: 8.869 MB / 476.5 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004134/0.5463, allocations: 332.5 kB / 476.8 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006715/0.547, allocations: 280.9 kB / 477.1 MB, free: 9.316 MB / 366.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.002779/0.5498, allocations: 1.424 MB / 478.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005388/0.5503, allocations: 229 kB / 478.7 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006972/0.5573, allocations: 2.853 MB / 481.6 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006212/0.5636, allocations: 2.505 MB / 484.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/0.5636, allocations: 8 kB / 484.1 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.64e-05/0.5637, allocations: 11.97 kB / 484.1 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.5773, allocations: 6.869 MB / 491 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.5774, allocations: 4.094 kB / 491 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008888/0.5783, allocations: 183.7 kB / 491.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005031/0.5833, allocations: 1.426 MB / 492.6 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/0.5835, allocations: 35.97 kB / 492.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/0.5937, allocations: 7.339 MB / 500 MB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001045/0.5948, allocations: 1.45 MB / 0.4897 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009479/0.6043, allocations: 4.857 MB / 0.4944 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008348/0.6051, allocations: 298 kB / 0.4947 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.6055, allocations: 29.16 kB / 0.4947 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.6067, allocations: 107.8 kB / 0.4948 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/0.607, allocations: 76.44 kB / 0.4949 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.6071, allocations: 45.16 kB / 0.4949 GB, free: 11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00267/0.6098, allocations: 1.697 MB / 0.4966 GB, free: 9.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6098, allocations: 480 / 0.4966 GB, free: 9.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004356/0.6142, allocations: 0.7889 MB / 0.4974 GB, free: 8.512 MB / 398.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.0004112/0.6146, allocations: 166.8 kB / 0.4975 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007974/0.6226, allocations: 4.424 MB / 0.5018 GB, free: 3.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.6226, allocations: 0 / 0.5018 GB, free: 3.895 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003362/0.626, allocations: 1.718 MB / 0.5035 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.6283, allocations: 258.9 kB / 0.5038 GB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.6397, allocations: 7.986 MB / 0.5116 GB, free: 9.832 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002347/0.6421, allocations: 2.297 MB / 0.5138 GB, free: 7.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003522/0.6456, allocations: 1.408 MB / 0.5152 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000437/0.6461, allocations: 167.4 kB / 0.5153 GB, free: 5.922 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6461, allocations: 0 / 0.5153 GB, free: 5.922 MB / 414.1 MB Notification: Performance of Templates: time 0.2287/0.8748, allocations: 29.22 MB / 0.5439 GB, free: 123.6 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches