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.001373/0.001373, allocations: 109.5 kB / 16.41 MB, free: 6.426 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.00124/0.00124, allocations: 185.5 kB / 17.34 MB, free: 5.73 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.432/1.432, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2275/0.2275, allocations: 43.52 MB / 314.1 MB, free: 472 kB / 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.001334/0.001334, allocations: 64.28 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1407, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002976/0.1438, allocations: 1.649 MB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.1448, allocations: 0.5775 MB / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.733e-05/0.1449, allocations: 0 / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.1451, allocations: 11.86 kB / 0.4901 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.951e-05/0.1451, allocations: 15.81 kB / 0.4901 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.1454, allocations: 55.88 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.1456, allocations: 103.7 kB / 0.4902 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.1457, allocations: 51.89 kB / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.1458, allocations: 51.77 kB / 0.4903 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.146, allocations: 43.78 kB / 0.4904 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.146, allocations: 8 kB / 0.4904 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.146, allocations: 8 kB / 0.4904 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.1461, allocations: 19.92 kB / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.819e-05/0.1462, allocations: 47.78 kB / 0.4904 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1463, allocations: 111.5 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1463, allocations: 0 / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1463, allocations: 0 / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1463, allocations: 4 kB / 0.4906 GB, free: 9.051 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.0007074/0.1471, allocations: 411 kB / 0.4909 GB, free: 8.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1471, allocations: 15.89 kB / 0.491 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.1472, allocations: 8.844 kB / 0.491 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.1474, allocations: 204.1 kB / 0.4912 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.1474, allocations: 4.375 kB / 0.4912 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.1475, allocations: 12.31 kB / 0.4912 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.1477, allocations: 101.9 kB / 0.4913 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.1477, allocations: 0 / 0.4913 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.1477, allocations: 0 / 0.4913 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1477, allocations: 4 kB / 0.4913 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.1479, allocations: 43.97 kB / 0.4913 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.1484, allocations: 364.5 kB / 0.4917 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.1486, allocations: 62.66 kB / 0.4917 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.968e-05/0.1487, allocations: 28.89 kB / 0.4918 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.1487, allocations: 0 / 0.4918 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.1489, allocations: 103.3 kB / 0.4919 GB, free: 7.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.1489, allocations: 0 / 0.4919 GB, free: 7.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003463/0.1492, allocations: 125.5 kB / 0.492 GB, free: 7.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1493, allocations: 55.41 kB / 0.492 GB, free: 7.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.1494, allocations: 148.2 kB / 0.4922 GB, free: 7.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1494, allocations: 25.7 kB / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.1495, allocations: 108.2 kB / 0.4923 GB, free: 7.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.1495, allocations: 35.48 kB / 0.4923 GB, free: 7.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.1496, allocations: 37.7 kB / 0.4924 GB, free: 6.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1497, allocations: 318.8 kB / 0.4927 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.206e-05/0.1498, allocations: 27.98 kB / 0.4927 GB, free: 6.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.1499, allocations: 79.7 kB / 0.4928 GB, free: 6.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.1501, allocations: 127.6 kB / 0.4929 GB, free: 6.379 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1501, allocations: 0 / 0.4929 GB, free: 6.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002375/0.1504, allocations: 141.4 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1504, allocations: 4 kB / 0.493 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1504, allocations: 4 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.1504, allocations: 4.375 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1505, allocations: 24.14 kB / 0.4931 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1506, allocations: 11.94 kB / 0.4931 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.192e-05/0.1506, allocations: 11.91 kB / 0.4931 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1507, allocations: 7.938 kB / 0.4931 GB, free: 6.168 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 (mean1.y,$PRE.mean1.y,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.1508, allocations: 141.6 kB / 0.4932 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.1508, allocations: 7.906 kB / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.1508, allocations: 12.72 kB / 0.4932 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1508, allocations: 0 / 0.4932 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1509, allocations: 7.938 kB / 0.4933 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1509, allocations: 8 kB / 0.4933 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.1511, allocations: 193.6 kB / 0.4934 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1511, allocations: 4 kB / 0.4935 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.1512, allocations: 15.98 kB / 0.4935 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1512, allocations: 0 / 0.4935 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1512, allocations: 0 / 0.4935 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1512, allocations: 4 kB / 0.4935 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1512, allocations: 7.875 kB / 0.4935 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.1516, allocations: 172.9 kB / 0.4936 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-05/0.1516, allocations: 81.02 kB / 0.4937 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.1517, allocations: 7.984 kB / 0.4937 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.927e-05/0.1517, allocations: 0 / 0.4937 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.1518, allocations: 15.92 kB / 0.4937 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.1518, allocations: 4 kB / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.003e-05/0.1519, allocations: 113.9 kB / 0.4939 GB, free: 5.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1519, allocations: 0 / 0.4939 GB, free: 5.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.1521, allocations: 16 kB / 0.4939 GB, free: 5.273 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001129/0.1522, allocations: 111.2 kB / 0.494 GB, free: 5.156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002261/0.1525, allocations: 75.84 kB / 0.494 GB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1525, allocations: 0 / 0.494 GB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.364e-05/0.1526, allocations: 36.02 kB / 0.4941 GB, free: 5.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.1528, allocations: 20.11 kB / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005463/0.1533, allocations: 245.4 kB / 0.4943 GB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.1537, allocations: 0.6963 MB / 0.495 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.023e-05/0.1538, allocations: 12.81 kB / 0.495 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.1538, allocations: 19.44 kB / 0.495 GB, free: 4.008 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1538, allocations: 0 / 0.495 GB, free: 4.008 MB / 382.1 MB Notification: Performance of Templates: time 0.003343/0.1572, allocations: 0.9252 MB / 0.496 GB, free: 3.09 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches