Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.00107, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007456/0.0007457, allocations: 92.53 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.0002382, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1877, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01005/0.1978, allocations: 16.11 MB / 424.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007068/0.2049, allocations: 4.709 MB / 428.9 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.2065, allocations: 67.81 kB / 428.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.2078, allocations: 0.7893 MB / 429.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004253/0.212, allocations: 2.674 MB / 432.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007611/0.2128, allocations: 403.4 kB / 432.8 MB, free: 2.918 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002241/0.2151, allocations: 2.949 MB / 435.7 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/0.2174, allocations: 1.961 MB / 437.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008301/0.2182, allocations: 0.7316 MB / 438.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.2195, allocations: 1.207 MB / 439.6 MB, free: 12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001903/0.2197, allocations: 88 kB / 439.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.2212, allocations: 0.9866 MB / 440.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007827/0.222, allocations: 1.017 MB / 441.7 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009172/0.2229, allocations: 1.159 MB / 442.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002702/0.2256, allocations: 3.274 MB / 446.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2256, allocations: 0 / 446.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2256, allocations: 4 kB / 446.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.964e-05/0.2257, allocations: 0 / 446.2 MB, free: 5.449 MB / 314.7 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.004133/0.2298, allocations: 2.536 MB / 448.7 MB, free: 2.855 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2299, allocations: 12.03 kB / 448.7 MB, free: 2.844 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006328/0.2362, allocations: 1.83 MB / 450.5 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.2392, allocations: 1.355 MB / 451.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.2394, allocations: 131.2 kB / 452 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007467/0.2401, allocations: 259.6 kB / 452.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009966/0.2501, allocations: 6.664 MB / 458.9 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.679e-05/0.2502, allocations: 27.72 kB / 459 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.2505, allocations: 87.89 kB / 459.1 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001979/0.2525, allocations: 1.359 MB / 460.4 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.2636, allocations: 6.025 MB / 466.4 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02839/0.292, allocations: 25.61 MB / 492.1 MB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006326/0.2984, allocations: 2.667 MB / 494.7 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.2997, allocations: 1.032 MB / 495.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005036/0.3047, allocations: 3.896 MB / 499.7 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.3048, allocations: 47.06 kB / 499.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.456e-06/0.3048, allocations: 0 / 499.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02406/0.3288, allocations: 10.3 MB / 0.498 GB, free: 3.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001103/0.33, allocations: 1.588 MB / 0.4996 GB, free: 1.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1707/0.5007, allocations: 2.71 MB / 0.5022 GB, free: 92.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003214/0.501, allocations: 41.61 kB / 0.5023 GB, free: 92.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.503, allocations: 2.082 MB / 0.5043 GB, free: 91.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/0.5038, allocations: 0.5053 MB / 0.5048 GB, free: 91.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.5044, allocations: 93.08 kB / 0.5049 GB, free: 91.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004038/0.5048, allocations: 0.4946 MB / 0.5054 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/0.5079, allocations: 1.638 MB / 0.507 GB, free: 90.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00392/0.5119, allocations: 4.437 MB / 0.5113 GB, free: 85.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006244/0.5181, allocations: 6.528 MB / 0.5177 GB, free: 80.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001243/0.5183, allocations: 31.19 kB / 0.5177 GB, free: 80.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01739/0.5357, allocations: 8.029 MB / 0.5256 GB, free: 76.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.5358, allocations: 48.19 kB / 0.5256 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009895/0.5457, allocations: 3.561 MB / 0.5291 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/0.5562, allocations: 2.678 MB / 0.5317 GB, free: 70.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.5591, allocations: 1.01 MB / 0.5327 GB, free: 69.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.5699, allocations: 8.901 MB / 0.5414 GB, free: 60.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003413/0.5734, allocations: 323.6 kB / 0.5417 GB, free: 60.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004732/0.5739, allocations: 280 kB / 0.542 GB, free: 59.74 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001938/0.5758, allocations: 1.426 MB / 0.5433 GB, free: 58.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/0.5762, allocations: 233 kB / 0.5436 GB, free: 58.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005551/0.5818, allocations: 2.834 MB / 0.5463 GB, free: 55.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004869/0.5867, allocations: 2.521 MB / 0.5488 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/0.5867, allocations: 9.75 kB / 0.5488 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.5867, allocations: 3.984 kB / 0.5488 GB, free: 52.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.5979, allocations: 6.871 MB / 0.5555 GB, free: 45.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.598, allocations: 0 / 0.5555 GB, free: 45.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007662/0.5987, allocations: 179.7 kB / 0.5557 GB, free: 45.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004215/0.603, allocations: 1.429 MB / 0.5571 GB, free: 44.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.6031, allocations: 31.98 kB / 0.5571 GB, free: 44.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00764/0.6108, allocations: 7.331 MB / 0.5643 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006263/0.6114, allocations: 1.451 MB / 0.5657 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007275/0.6187, allocations: 4.84 MB / 0.5704 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005342/0.6193, allocations: 301.9 kB / 0.5707 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.6195, allocations: 28.69 kB / 0.5707 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.6205, allocations: 112.6 kB / 0.5708 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.6208, allocations: 84.31 kB / 0.5709 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.993e-05/0.6209, allocations: 43.73 kB / 0.571 GB, free: 29.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001893/0.6228, allocations: 1.677 MB / 0.5726 GB, free: 27.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6228, allocations: 0 / 0.5726 GB, free: 27.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003008/0.6258, allocations: 0.7863 MB / 0.5734 GB, free: 27 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003044/0.6261, allocations: 161.5 kB / 0.5735 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005966/0.6321, allocations: 4.41 MB / 0.5778 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.6321, allocations: 6.719 kB / 0.5778 GB, free: 22.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002554/0.6347, allocations: 1.725 MB / 0.5795 GB, free: 20.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002005/0.6367, allocations: 261.8 kB / 0.5798 GB, free: 20.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008682/0.6454, allocations: 7.986 MB / 0.5876 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.647, allocations: 2.293 MB / 0.5898 GB, free: 9.996 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005773/0.6476, allocations: 207.4 kB / 0.59 GB, free: 9.793 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.6476, allocations: 0 / 0.59 GB, free: 9.793 MB / 378.7 MB Notification: Performance of Templates: time 0.2503/0.8979, allocations: 75.25 MB / 0.6635 GB, free: 141 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches