Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 194.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.5 MB / 244.3 MB, free: 8.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007522/0.0007526, allocations: 106.8 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2285, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02558/0.2541, allocations: 38.2 MB / 445.7 MB, free: 5.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.2741, allocations: 8.699 MB / 454.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006829/0.2809, allocations: 179.6 kB / 454.6 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005606/0.2866, allocations: 1.975 MB / 456.5 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01434/0.3009, allocations: 5.891 MB / 462.4 MB, free: 4.738 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.3033, allocations: 0.5656 MB / 463 MB, free: 4.172 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005239/0.3086, allocations: 4.309 MB / 467.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005822/0.3144, allocations: 4.182 MB / 471.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002161/0.3166, allocations: 1.199 MB / 472.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002587/0.3192, allocations: 1.799 MB / 474.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006781/0.3199, allocations: 136 kB / 474.6 MB, free: 8.457 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.3219, allocations: 0.8893 MB / 475.5 MB, free: 7.566 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001754/0.3237, allocations: 1.597 MB / 477.1 MB, free: 5.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.325, allocations: 0.7999 MB / 477.9 MB, free: 5.156 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005088/0.3301, allocations: 5.098 MB / 483 MB, free: 48 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3301, allocations: 4 kB / 483 MB, free: 44 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3301, allocations: 0 / 483 MB, free: 44 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002785/0.3304, allocations: 0 / 483 MB, free: 44 kB / 346.7 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.008443/0.3388, allocations: 3.793 MB / 486.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3389, allocations: 8.031 kB / 486.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006769/0.3457, allocations: 1.983 MB / 488.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003802/0.3495, allocations: 1.923 MB / 490.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.3497, allocations: 246.2 kB / 491 MB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.3508, allocations: 399.6 kB / 491.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.3679, allocations: 10.05 MB / 0.4896 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.3681, allocations: 47.53 kB / 0.4897 GB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007641/0.3689, allocations: 159.9 kB / 0.4898 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002681/0.3715, allocations: 1.853 MB / 0.4917 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.3875, allocations: 8.296 MB / 0.4998 GB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2206/0.6081, allocations: 39.37 MB / 0.5382 GB, free: 62.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008349/0.6165, allocations: 3.98 MB / 0.5421 GB, free: 58.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.6181, allocations: 1.428 MB / 0.5435 GB, free: 57.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007974/0.6261, allocations: 7.629 MB / 0.5509 GB, free: 49.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.6262, allocations: 51.55 kB / 0.551 GB, free: 49.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 4.739e-06/0.6262, allocations: 0 / 0.551 GB, free: 49.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02605/0.6522, allocations: 12.35 MB / 0.563 GB, free: 36.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008522/0.6531, allocations: 1.587 MB / 0.5646 GB, free: 34.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/0.6569, allocations: 3.8 MB / 0.5683 GB, free: 30.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002371/0.6572, allocations: 45.7 kB / 0.5683 GB, free: 30.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.6585, allocations: 3.119 MB / 0.5714 GB, free: 27.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/0.659, allocations: 0.6475 MB / 0.572 GB, free: 27.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.6592, allocations: 124 kB / 0.5721 GB, free: 27.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.6594, allocations: 0.5704 MB / 0.5727 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00231/0.6617, allocations: 2.011 MB / 0.5747 GB, free: 24.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003571/0.6653, allocations: 5.942 MB / 0.5805 GB, free: 16.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.6689, allocations: 3.378 MB / 0.5838 GB, free: 13.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.531e-05/0.6689, allocations: 40 kB / 0.5838 GB, free: 13.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.01805/0.687, allocations: 9.741 MB / 0.5933 GB, free: 3.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.341e-05/0.6871, allocations: 64 kB / 0.5934 GB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01001/0.6971, allocations: 3.808 MB / 0.5971 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/0.7085, allocations: 2.739 MB / 0.5998 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004038/0.7126, allocations: 1.361 MB / 0.6011 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009184/0.7218, allocations: 7.228 MB / 0.6082 GB, free: 3.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004652/0.7265, allocations: 399.3 kB / 0.6085 GB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007502/0.7273, allocations: 388 kB / 0.6089 GB, free: 3.055 MB / 394.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of prepare postOptimizeDAE: time 0.003056/0.7303, allocations: 2.015 MB / 0.6109 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005499/0.7309, allocations: 327.7 kB / 0.6112 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006468/0.7374, allocations: 3.134 MB / 0.6142 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005542/0.743, allocations: 2.683 MB / 0.6169 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/0.743, allocations: 0 / 0.6169 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.884e-05/0.743, allocations: 11.94 kB / 0.6169 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/0.7593, allocations: 8.548 MB / 0.6252 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.7594, allocations: 0 / 0.6252 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008934/0.7603, allocations: 191.7 kB / 0.6254 GB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004544/0.7648, allocations: 1.435 MB / 0.6268 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.7651, allocations: 39.97 kB / 0.6269 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005966/0.771, allocations: 5.71 MB / 0.6324 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009344/0.772, allocations: 1.456 MB / 0.6338 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008915/0.7809, allocations: 5.289 MB / 0.639 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.7823, allocations: 384.6 kB / 0.6394 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009133/0.7832, allocations: 27.2 kB / 0.6394 GB, free: 3.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001918/0.7852, allocations: 127.8 kB / 0.6395 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.7854, allocations: 92.84 kB / 0.6396 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.7856, allocations: 43.98 kB / 0.6397 GB, free: 2.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004062/0.7897, allocations: 2.322 MB / 0.6419 GB, free: 0.625 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7897, allocations: 0 / 0.6419 GB, free: 0.625 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005147/0.7948, allocations: 1.034 MB / 0.6429 GB, free: 15.59 MB / 442.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005035/0.7954, allocations: 164.1 kB / 0.6431 GB, free: 15.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009529/0.8049, allocations: 5.485 MB / 0.6484 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.8049, allocations: 0 / 0.6484 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/0.8087, allocations: 2.028 MB / 0.6504 GB, free: 7.816 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/0.8114, allocations: 374.6 kB / 0.6508 GB, free: 7.449 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/0.8295, allocations: 11.13 MB / 0.6617 GB, free: 12.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004392/0.8339, allocations: 3.107 MB / 0.6647 GB, free: 9.105 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008581/0.8348, allocations: 267.4 kB / 0.665 GB, free: 8.844 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8348, allocations: 0 / 0.665 GB, free: 8.844 MB / 458.7 MB Notification: Performance of Templates: time 0.3095/1.144, allocations: 142.7 MB / 0.8044 GB, free: 34.26 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches