Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.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.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 110.8 kB / 16.41 MB, free: 6.027 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.001279/0.00128, allocations: 185.8 kB / 17.34 MB, free: 5.633 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.556/1.556, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.206/0.206, allocations: 43.53 MB / 314.1 MB, free: 468 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.001385/0.001385, allocations: 72.47 kB / 441.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1312, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.00299/0.1342, allocations: 1.686 MB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1354, allocations: 0.6437 MB / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.449e-05/0.1355, allocations: 4 kB / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.449e-05/0.1356, allocations: 15.8 kB / 0.4902 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.1357, allocations: 15.81 kB / 0.4902 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.1361, allocations: 139.8 kB / 0.4903 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000208/0.1363, allocations: 159.6 kB / 0.4905 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.1365, allocations: 41.08 kB / 0.4905 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.1366, allocations: 75.69 kB / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.1367, allocations: 63.73 kB / 0.4906 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.99e-05/0.1368, allocations: 12 kB / 0.4907 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.338e-05/0.1368, allocations: 16 kB / 0.4907 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.505e-05/0.1369, allocations: 31.91 kB / 0.4907 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.438e-05/0.1369, allocations: 63.64 kB / 0.4908 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.1371, allocations: 127.6 kB / 0.4909 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1371, allocations: 7.938 kB / 0.4909 GB, free: 8.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1371, allocations: 0 / 0.4909 GB, free: 8.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1372, allocations: 0 / 0.4909 GB, free: 8.719 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007255/0.1379, allocations: 462.3 kB / 0.4913 GB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1379, allocations: 11.89 kB / 0.4913 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.138, allocations: 20.75 kB / 0.4914 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.1383, allocations: 232 kB / 0.4916 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.1384, allocations: 4.375 kB / 0.4916 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.481e-05/0.1384, allocations: 8.375 kB / 0.4916 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.1388, allocations: 187 kB / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1389, allocations: 0 / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.1389, allocations: 4 kB / 0.4918 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1389, allocations: 0 / 0.4918 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003811/0.1393, allocations: 123.9 kB / 0.4919 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008529/0.1401, allocations: 460.2 kB / 0.4923 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005758/0.1407, allocations: 198.4 kB / 0.4925 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.141, allocations: 72.8 kB / 0.4926 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.141, allocations: 4 kB / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.141, allocations: 34.56 kB / 0.4926 GB, free: 6.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.141, allocations: 0 / 0.4926 GB, free: 6.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.001492/0.1425, allocations: 0.576 MB / 0.4932 GB, free: 6.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/0.1426, allocations: 106.8 kB / 0.4933 GB, free: 6.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.1428, allocations: 168.4 kB / 0.4935 GB, free: 5.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.1428, allocations: 25.7 kB / 0.4935 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.1429, allocations: 116 kB / 0.4936 GB, free: 5.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/0.1429, allocations: 27.55 kB / 0.4936 GB, free: 5.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.143, allocations: 33.7 kB / 0.4936 GB, free: 5.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1431, allocations: 318.8 kB / 0.494 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.1434, allocations: 76.8 kB / 0.494 GB, free: 5.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.1436, allocations: 94.5 kB / 0.4941 GB, free: 5.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.144, allocations: 136.7 kB / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.144, allocations: 0 / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004701/0.1445, allocations: 193.7 kB / 0.4944 GB, free: 4.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1445, allocations: 4 kB / 0.4944 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1445, allocations: 4 kB / 0.4944 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1445, allocations: 0 / 0.4944 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1447, allocations: 47.89 kB / 0.4945 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.1448, allocations: 0 / 0.4945 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.1449, allocations: 27.91 kB / 0.4945 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.1449, allocations: 0 / 0.4945 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001466/0.1451, allocations: 124.1 kB / 0.4946 GB, free: 4.586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001143/0.1452, allocations: 66.47 kB / 0.4947 GB, free: 4.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001729/0.1454, allocations: 68.83 kB / 0.4948 GB, free: 4.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.146e-06/0.1454, allocations: 4 kB / 0.4948 GB, free: 4.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.000239/0.1456, allocations: 121.4 kB / 0.4949 GB, free: 4.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.1457, allocations: 4 kB / 0.4949 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-06/0.1457, allocations: 4.031 kB / 0.4949 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-06/0.1457, allocations: 0 / 0.4949 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.122e-05/0.1458, allocations: 27.98 kB / 0.4949 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.1458, allocations: 4.312 kB / 0.4949 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.971e-05/0.1459, allocations: 11.98 kB / 0.4949 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.1459, allocations: 0 / 0.4949 GB, free: 4.262 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001062/0.146, allocations: 188.2 kB / 0.4951 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.146, allocations: 15.84 kB / 0.4951 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.1461, allocations: 25.39 kB / 0.4951 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1461, allocations: 3.938 kB / 0.4951 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1461, allocations: 0 / 0.4951 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.1461, allocations: 0 / 0.4951 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008491/0.147, allocations: 0.5108 MB / 0.4956 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.147, allocations: 3.938 kB / 0.4957 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.1472, allocations: 35.97 kB / 0.4957 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1472, allocations: 0 / 0.4957 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.1472, allocations: 3.984 kB / 0.4957 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1472, allocations: 0 / 0.4957 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1472, allocations: 4 kB / 0.4957 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007431/0.148, allocations: 356.1 kB / 0.496 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.148, allocations: 96.84 kB / 0.4961 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.1481, allocations: 4 kB / 0.4961 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.1483, allocations: 35.95 kB / 0.4962 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.1484, allocations: 16 kB / 0.4962 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.1484, allocations: 3.984 kB / 0.4962 GB, free: 2.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.802e-05/0.1485, allocations: 123.5 kB / 0.4963 GB, free: 2.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.1485, allocations: 4 kB / 0.4963 GB, free: 2.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.1488, allocations: 35.94 kB / 0.4963 GB, free: 2.703 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * 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 (9): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0001248/0.149, allocations: 99.19 kB / 0.4964 GB, free: 2.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005891/0.1495, allocations: 195.8 kB / 0.4966 GB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1496, allocations: 0 / 0.4966 GB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.1498, allocations: 83.92 kB / 0.4967 GB, free: 2.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.1502, allocations: 48.91 kB / 0.4967 GB, free: 2.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.1509, allocations: 289 kB / 0.497 GB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.1512, allocations: 0.7124 MB / 0.4977 GB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.451e-05/0.1513, allocations: 20.86 kB / 0.4977 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.433e-05/0.1514, allocations: 15.44 kB / 0.4978 GB, free: 1.188 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1514, allocations: 3.938 kB / 0.4978 GB, free: 1.184 MB / 382.1 MB Notification: Performance of Templates: time 0.005787/0.1572, allocations: 2.269 MB / 0.5 GB, free: 14.92 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches