Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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|idealDerivative.y",fileNamePrefix="ModelicaTest_4.0.0_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|idealDerivative.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 99.84 kB / 18.01 MB, free: 5.734 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.001183/0.001183, allocations: 182.3 kB / 18.91 MB, free: 4.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.3 MB / 243 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1906/0.1906, allocations: 44.25 MB / 338.3 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003097, allocations: 8 kB / 411 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 61.93 MB / 472.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001773/0.1031, allocations: 1.376 MB / 474.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.1041, allocations: 0.5885 MB / 474.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.403e-05/0.1042, allocations: 4 kB / 474.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.681e-05/0.1043, allocations: 7.922 kB / 474.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001079/0.1044, allocations: 15.81 kB / 474.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.1048, allocations: 130.2 kB / 475 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.105, allocations: 143.7 kB / 475.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1051, allocations: 29.42 kB / 475.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1053, allocations: 67.7 kB / 475.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.1054, allocations: 59.73 kB / 475.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.1054, allocations: 4 kB / 475.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.103e-05/0.1055, allocations: 8 kB / 475.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.004e-05/0.1055, allocations: 19.92 kB / 475.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.881e-05/0.1056, allocations: 85.34 kB / 475.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.1057, allocations: 88.03 kB / 475.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1057, allocations: 4 kB / 475.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1057, allocations: 0 / 475.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.1057, allocations: 0 / 475.5 MB, free: 10.73 MB / 350.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.0007164/0.1065, allocations: 439.1 kB / 476 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1065, allocations: 12.03 kB / 476 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.1066, allocations: 16.75 kB / 476 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1068, allocations: 220.6 kB / 476.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1068, allocations: 4.375 kB / 476.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.1069, allocations: 16.12 kB / 476.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004506/0.1073, allocations: 192.1 kB / 476.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1074, allocations: 0 / 476.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.1074, allocations: 8 kB / 476.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1074, allocations: 0 / 476.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.1079, allocations: 163.8 kB / 476.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000925/0.1088, allocations: 468.5 kB / 477 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006756/0.1095, allocations: 250.4 kB / 477.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.1097, allocations: 92.8 kB / 477.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.1098, allocations: 4 kB / 477.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1098, allocations: 34.56 kB / 477.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.1098, allocations: 0 / 477.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.001606/0.1114, allocations: 0.6539 MB / 478.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.1115, allocations: 114.8 kB / 478.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1116, allocations: 154.2 kB / 478.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.1117, allocations: 25.8 kB / 478.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.1117, allocations: 108 kB / 478.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.1118, allocations: 35.69 kB / 478.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.1118, allocations: 21.66 kB / 478.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1119, allocations: 322.8 kB / 478.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002677/0.1122, allocations: 87.92 kB / 478.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.1125, allocations: 106.5 kB / 479 MB, free: 6.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000468/0.113, allocations: 180.7 kB / 479.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.113, allocations: 0 / 479.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005565/0.1135, allocations: 233.3 kB / 479.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.163e-05/0.1136, allocations: 96.94 kB / 479.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1136, allocations: 3.984 kB / 479.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1136, allocations: 4 kB / 479.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.1139, allocations: 43.97 kB / 479.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1139, allocations: 3.984 kB / 479.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.114, allocations: 35.98 kB / 479.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1141, allocations: 3.984 kB / 479.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.1141, allocations: 6.188 kB / 479.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002424/0.1143, allocations: 100.1 kB / 479.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1143, allocations: 4 kB / 479.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-06/0.1143, allocations: 0 / 479.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.9e-05/0.1144, allocations: 23.98 kB / 479.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.1145, allocations: 3.938 kB / 479.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.275e-05/0.1145, allocations: 11.98 kB / 479.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1146, allocations: 8 kB / 479.8 MB, free: 6.184 MB / 350.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.0001292/0.1147, allocations: 197.1 kB / 480 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.1147, allocations: 11.91 kB / 480 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.1148, allocations: 16.7 kB / 480 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1148, allocations: 3.938 kB / 480 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1148, allocations: 0 / 480 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1148, allocations: 0 / 480 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.1158, allocations: 0.546 MB / 480.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1158, allocations: 11.97 kB / 480.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.116, allocations: 43.97 kB / 480.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.116, allocations: 0 / 480.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.116, allocations: 8 kB / 480.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.116, allocations: 0 / 480.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.116, allocations: 0 / 480.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.1169, allocations: 419.9 kB / 481 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.117, allocations: 93.05 kB / 481.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.117, allocations: 8 kB / 481.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.1173, allocations: 51.95 kB / 481.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.1173, allocations: 11.92 kB / 481.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.1174, allocations: 11.98 kB / 481.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.225e-05/0.1174, allocations: 116.1 kB / 481.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1174, allocations: 0 / 481.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.1178, allocations: 35.98 kB / 481.3 MB, free: 4.512 MB / 350.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.0001062/0.1179, allocations: 95.78 kB / 481.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006706/0.1186, allocations: 239.9 kB / 481.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1186, allocations: 8 kB / 481.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.1188, allocations: 96.56 kB / 481.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.1193, allocations: 35.91 kB / 481.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006671/0.1199, allocations: 365.8 kB / 482.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.1202, allocations: 0.7049 MB / 482.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.452e-05/0.1203, allocations: 15.44 kB / 482.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1203, allocations: 4 kB / 482.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Templates: time 0.003648/0.124, allocations: 1.821 MB / 484.7 MB, free: 1.09 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches