Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare") translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 177.7 kB / 16.58 MB, free: 6.84 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.956/1.956, allocations: 205.4 MB / 222.8 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5642/0.5642, allocations: 43.58 MB / 314.6 MB, free: 8.914 MB / 254.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.0005863/0.0005866, allocations: 16 kB / 384 MB, free: 8.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1847, allocations: 58.86 MB / 442.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002254/0.187, allocations: 1.347 MB / 444.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1881, allocations: 0.539 MB / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.878e-05/0.1882, allocations: 0 / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.1883, allocations: 3.938 kB / 444.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.83e-05/0.1884, allocations: 27.84 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.1887, allocations: 39.89 kB / 444.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.1889, allocations: 95.7 kB / 444.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.1891, allocations: 31.94 kB / 444.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.92e-05/0.1892, allocations: 27.86 kB / 444.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.1893, allocations: 39.83 kB / 445 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1893, allocations: 4 kB / 445 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.1894, allocations: 8 kB / 445 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.836e-05/0.1894, allocations: 15.92 kB / 445 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.582e-05/0.1895, allocations: 41.64 kB / 445 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.1896, allocations: 68.08 kB / 445.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.1897, allocations: 3.938 kB / 445.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1897, allocations: 0 / 445.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1897, allocations: 0 / 445.1 MB, free: 10.98 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007298/0.1904, allocations: 399 kB / 445.5 MB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.1905, allocations: 12.02 kB / 445.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.1905, allocations: 15.86 kB / 445.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.1908, allocations: 206.8 kB / 445.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.1908, allocations: 8 kB / 445.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.373e-05/0.1909, allocations: 4 kB / 445.7 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.1912, allocations: 89.64 kB / 445.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.1912, allocations: 4 kB / 445.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1912, allocations: 4 kB / 445.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1912, allocations: 0 / 445.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.1914, allocations: 51.92 kB / 445.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.1921, allocations: 380.5 kB / 446.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.1923, allocations: 58.55 kB / 446.3 MB, free: 9.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.953e-05/0.1924, allocations: 28.95 kB / 446.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1924, allocations: 0 / 446.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.1926, allocations: 103.3 kB / 446.4 MB, free: 9.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.1926, allocations: 0 / 446.4 MB, free: 9.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004075/0.1931, allocations: 133.5 kB / 446.6 MB, free: 9.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.1931, allocations: 51.41 kB / 446.6 MB, free: 9.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.1933, allocations: 145.5 kB / 446.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.1933, allocations: 25.7 kB / 446.8 MB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.1934, allocations: 108.2 kB / 446.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.1934, allocations: 27.61 kB / 446.9 MB, free: 8.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-06/0.1935, allocations: 4 kB / 446.9 MB, free: 8.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1936, allocations: 318.8 kB / 447.2 MB, free: 8.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.172e-05/0.1937, allocations: 31.92 kB / 447.3 MB, free: 8.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.1938, allocations: 87.66 kB / 447.3 MB, free: 8.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.356e-05/0.1939, allocations: 43.97 kB / 447.4 MB, free: 8.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1939, allocations: 0 / 447.4 MB, free: 8.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002441/0.1942, allocations: 141.3 kB / 447.5 MB, free: 8.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1942, allocations: 8.594 kB / 447.5 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1942, allocations: 7.984 kB / 447.5 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1942, allocations: 4 kB / 447.5 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.1944, allocations: 27.92 kB / 447.6 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1944, allocations: 7.938 kB / 447.6 MB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.437e-05/0.1945, allocations: 11.94 kB / 447.6 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.1945, allocations: 4 kB / 447.6 MB, free: 8.234 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.1946, allocations: 125.8 kB / 447.7 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.1947, allocations: 15.86 kB / 447.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.1947, allocations: 20.7 kB / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1947, allocations: 0 / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1947, allocations: 0 / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1948, allocations: 0 / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.195, allocations: 209.4 kB / 448 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.195, allocations: 0 / 448 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-05/0.1951, allocations: 15.98 kB / 448 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1951, allocations: 3.953 kB / 448 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1951, allocations: 4 kB / 448 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1951, allocations: 8 kB / 448 MB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1951, allocations: 0 / 448 MB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.1955, allocations: 164.9 kB / 448.1 MB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/0.1955, allocations: 85.05 kB / 448.2 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.1956, allocations: 7.953 kB / 448.2 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.156e-05/0.1956, allocations: 12.05 kB / 448.2 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/0.1957, allocations: 7.938 kB / 448.3 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1957, allocations: 7.984 kB / 448.3 MB, free: 7.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.848e-05/0.1958, allocations: 103.3 kB / 448.4 MB, free: 7.363 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1958, allocations: 0 / 448.4 MB, free: 7.363 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.196, allocations: 16 kB / 448.4 MB, free: 7.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001539/0.1962, allocations: 103.2 kB / 448.5 MB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002344/0.1964, allocations: 83.84 kB / 448.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1965, allocations: 0 / 448.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.445e-05/0.1966, allocations: 36.02 kB / 448.6 MB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.1968, allocations: 11.98 kB / 448.6 MB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005947/0.1974, allocations: 291.7 kB / 448.9 MB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.1979, allocations: 0.7042 MB / 449.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.376e-05/0.1979, allocations: 12.84 kB / 449.6 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.198, allocations: 11.44 kB / 449.6 MB, free: 6.047 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.198, allocations: 0 / 449.6 MB, free: 6.047 MB / 382.1 MB Notification: Performance of Templates: time 0.003605/0.2016, allocations: 0.8118 MB / 450.4 MB, free: 5.234 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches