Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.001125, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001111/0.001111, allocations: 183.1 kB / 18.66 MB, free: 4.438 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.391/1.391, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001132/0.001132, allocations: 59.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08578, allocations: 46.62 MB / 375.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2049/0.2907, allocations: 10.74 MB / 385.9 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007536/0.2983, allocations: 3.926 MB / 389.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00182/0.3002, allocations: 62.28 kB / 389.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004761/0.305, allocations: 2.579 MB / 392.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005073/0.3101, allocations: 1.756 MB / 394.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.3119, allocations: 0.6863 MB / 394.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006353/0.3183, allocations: 3.692 MB / 398.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005492/0.3238, allocations: 3.572 MB / 402.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00315/0.327, allocations: 1.483 MB / 403.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003161/0.3301, allocations: 1.958 MB / 405.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007918/0.331, allocations: 315.1 kB / 405.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.3337, allocations: 1.151 MB / 407.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001959/0.3357, allocations: 1.817 MB / 408.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002722/0.3384, allocations: 2.145 MB / 411 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008582/0.347, allocations: 6.728 MB / 417.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3471, allocations: 0 / 417.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3471, allocations: 0 / 417.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001468/0.3472, allocations: 0 / 417.8 MB, free: 4.836 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.008212/0.3555, allocations: 4.694 MB / 422.5 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3555, allocations: 8.031 kB / 422.5 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006631/0.3621, allocations: 1.906 MB / 424.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.3658, allocations: 2.083 MB / 426.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.366, allocations: 246.2 kB / 426.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007681/0.3667, allocations: 391.7 kB / 427.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01965/0.3864, allocations: 10.07 MB / 437.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.3866, allocations: 35.69 kB / 437.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004424/0.387, allocations: 155.9 kB / 437.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002627/0.3897, allocations: 1.864 MB / 439.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01729/0.407, allocations: 8.325 MB / 447.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05105/0.4581, allocations: 39.31 MB / 486.8 MB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.4686, allocations: 4.008 MB / 490.8 MB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/0.4711, allocations: 1.427 MB / 492.3 MB, free: 8.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01059/0.4817, allocations: 7.636 MB / 499.9 MB, free: 64 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.4818, allocations: 55.55 kB / 500 MB, free: 0 / 414.1 MB Notification: Performance of pre-optimization done (n=152): time 3.326e-06/0.4818, allocations: 0 / 500 MB, free: 0 / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.0335/0.5153, allocations: 12.61 MB / 0.5006 GB, free: 3.215 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001443/0.5168, allocations: 1.672 MB / 0.5022 GB, free: 1.363 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006995/0.5238, allocations: 3.841 MB / 0.5059 GB, free: 13.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007523/0.5247, allocations: 53.69 kB / 0.506 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003886/0.5286, allocations: 3.242 MB / 0.5092 GB, free: 10.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001452/0.53, allocations: 0.6747 MB / 0.5098 GB, free: 9.523 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00246/0.5325, allocations: 1.27 MB / 0.5111 GB, free: 8.242 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5326, allocations: 309.1 kB / 0.5113 GB, free: 7.938 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003613/0.5363, allocations: 2.034 MB / 0.5133 GB, free: 5.898 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007242/0.5435, allocations: 5.965 MB / 0.5192 GB, free: 13.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/0.5556, allocations: 8.635 MB / 0.5276 GB, free: 3.367 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/0.5558, allocations: 40 kB / 0.5276 GB, free: 3.328 MB / 462.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02783/0.5836, allocations: 9.74 MB / 0.5371 GB, free: 9.562 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.5838, allocations: 64 kB / 0.5372 GB, free: 9.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01224/0.5961, allocations: 3.745 MB / 0.5409 GB, free: 5.738 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.6084, allocations: 2.606 MB / 0.5434 GB, free: 3.113 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005118/0.6136, allocations: 1.376 MB / 0.5447 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2378/0.8514, allocations: 7.701 MB / 0.5523 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005272/0.8567, allocations: 410.3 kB / 0.5527 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008921/0.8576, allocations: 389.2 kB / 0.553 GB, free: 140.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.003735/0.8614, allocations: 2.011 MB / 0.555 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006578/0.8621, allocations: 345.4 kB / 0.5553 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007296/0.8694, allocations: 3.131 MB / 0.5584 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007131/0.8765, allocations: 2.684 MB / 0.561 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/0.8766, allocations: 3.703 kB / 0.561 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-05/0.8766, allocations: 7.969 kB / 0.561 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01938/0.896, allocations: 8.548 MB / 0.5694 GB, free: 135.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.8961, allocations: 1.062 kB / 0.5694 GB, free: 135.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009318/0.897, allocations: 197.4 kB / 0.5696 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004348/0.9014, allocations: 1.427 MB / 0.5709 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.9016, allocations: 42.64 kB / 0.571 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005659/0.9072, allocations: 6.013 MB / 0.5769 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000718/0.908, allocations: 1.543 MB / 0.5784 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007807/0.9158, allocations: 5.333 MB / 0.5836 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.9169, allocations: 391.5 kB / 0.5839 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003729/0.9173, allocations: 32.38 kB / 0.584 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.9186, allocations: 122.6 kB / 0.5841 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.9189, allocations: 94.66 kB / 0.5842 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.919, allocations: 46.44 kB / 0.5842 GB, free: 127.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003359/0.9224, allocations: 2.349 MB / 0.5865 GB, free: 126.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9224, allocations: 0 / 0.5865 GB, free: 126.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005184/0.9276, allocations: 1.031 MB / 0.5875 GB, free: 126.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004935/0.9281, allocations: 172.2 kB / 0.5877 GB, free: 126.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008027/0.9361, allocations: 5.501 MB / 0.5931 GB, free: 122.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.9362, allocations: 3.938 kB / 0.5931 GB, free: 122.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003283/0.9394, allocations: 2.042 MB / 0.5951 GB, free: 120.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.9419, allocations: 391.2 kB / 0.5954 GB, free: 120.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.9544, allocations: 9.117 MB / 0.6043 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002432/0.9569, allocations: 3.103 MB / 0.6074 GB, free: 108.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003433/0.9603, allocations: 1.803 MB / 0.6091 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.9608, allocations: 223.4 kB / 0.6093 GB, free: 106.1 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/0.9608, allocations: 0 / 0.6093 GB, free: 106.1 MB / 478.1 MB Notification: Performance of Templates: time 0.0546/1.015, allocations: 35.48 MB / 0.644 GB, free: 70.67 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches