Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters") translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002254/0.002254, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.277/0.277, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.807e-05/3.822e-05, allocations: 4 kB / 425.3 MB, free: 23.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 58.86 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4705/0.5825, allocations: 90.75 MB / 0.5614 GB, free: 12.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5828, allocations: 71.44 kB / 0.5615 GB, free: 12.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07661/0.6594, allocations: 15.81 MB / 0.5769 GB, free: 15.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.486e-06/0.6595, allocations: 0 / 0.5769 GB, free: 15.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001928/0.6597, allocations: 27.88 kB / 0.5769 GB, free: 15.48 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.005208/0.665, allocations: 1.046 MB / 0.578 GB, free: 14.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/0.6651, allocations: 8.031 kB / 0.578 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006255/0.6657, allocations: 102.8 kB / 0.5781 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/0.6689, allocations: 0.6188 MB / 0.5787 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.6691, allocations: 39.25 kB / 0.5787 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.6694, allocations: 55.94 kB / 0.5788 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.6715, allocations: 0.5634 MB / 0.5793 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-05/0.6716, allocations: 7.891 kB / 0.5793 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.6718, allocations: 29.38 kB / 0.5794 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.6718, allocations: 16 kB / 0.5794 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.6735, allocations: 361.9 kB / 0.5797 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007803/0.6814, allocations: 2.281 MB / 0.5819 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004075/0.6855, allocations: 0.7138 MB / 0.5826 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008662/0.6864, allocations: 195.8 kB / 0.5828 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.6866, allocations: 4 kB / 0.5828 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.6866, allocations: 41.88 kB / 0.5829 GB, free: 10.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=46): time 5.2e-06/0.6866, allocations: 0 / 0.5829 GB, free: 10.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=46): time 0.002016/0.6887, allocations: 445.7 kB / 0.5833 GB, free: 9.902 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.6888, allocations: 132.5 kB / 0.5834 GB, free: 9.742 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.6902, allocations: 0.4983 MB / 0.5839 GB, free: 9.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.6904, allocations: 37.83 kB / 0.5839 GB, free: 9.305 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.6908, allocations: 369.9 kB / 0.5843 GB, free: 9.062 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/0.6912, allocations: 159.6 kB / 0.5845 GB, free: 8.926 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.227e-05/0.6912, allocations: 13.12 kB / 0.5845 GB, free: 8.922 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.6914, allocations: 338.1 kB / 0.5848 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007543/0.6922, allocations: 153.6 kB / 0.5849 GB, free: 8.504 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009201/0.6932, allocations: 262.2 kB / 0.5852 GB, free: 8.285 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007814/0.694, allocations: 163.8 kB / 0.5853 GB, free: 8.191 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.694, allocations: 7.938 kB / 0.5853 GB, free: 8.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002068/0.6961, allocations: 477.6 kB / 0.5858 GB, free: 7.844 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004955/0.6966, allocations: 0.8808 MB / 0.5867 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.6967, allocations: 0 / 0.5867 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.689e-05/0.6967, allocations: 11.98 kB / 0.5867 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003013/0.6998, allocations: 203.1 kB / 0.5869 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.253e-05/0.6998, allocations: 8 kB / 0.5869 GB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.7017, allocations: 118.5 kB / 0.587 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.7019, allocations: 23.67 kB / 0.587 GB, free: 6.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.702, allocations: 4 kB / 0.587 GB, free: 6.57 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001846/0.7038, allocations: 402.7 kB / 0.5874 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.7039, allocations: 8.062 kB / 0.5874 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.704, allocations: 7.984 kB / 0.5874 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/0.7065, allocations: 171.5 kB / 0.5876 GB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-05/0.7066, allocations: 4 kB / 0.5876 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.7077, allocations: 94.03 kB / 0.5877 GB, free: 6.039 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.923e-05/0.7078, allocations: 19.92 kB / 0.5877 GB, free: 6.023 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 4 (PID2.I.local_reset,PID1.I.local_reset,limIntegrator2.local_reset,limIntegrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0003573/0.7082, allocations: 130.3 kB / 0.5878 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004118/0.7086, allocations: 75.06 kB / 0.5879 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.709, allocations: 78.08 kB / 0.588 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.7091, allocations: 11.97 kB / 0.588 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.7091, allocations: 0 / 0.588 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.7091, allocations: 11.89 kB / 0.588 GB, free: 5.762 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00432/0.7135, allocations: 1.163 MB / 0.5891 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.7135, allocations: 0 / 0.5891 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/0.7159, allocations: 163.3 kB / 0.5893 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.758e-05/0.716, allocations: 0 / 0.5893 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.7162, allocations: 18.44 kB / 0.5893 GB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-05/0.7162, allocations: 8 kB / 0.5893 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.7162, allocations: 0 / 0.5893 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003061/0.7193, allocations: 0.8461 MB / 0.5901 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006439/0.72, allocations: 196.2 kB / 0.5903 GB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.7203, allocations: 10.81 kB / 0.5903 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.7219, allocations: 95.23 kB / 0.5904 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.7221, allocations: 42.42 kB / 0.5905 GB, free: 3.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/0.7222, allocations: 19.06 kB / 0.5905 GB, free: 3.715 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001235/0.7234, allocations: 394.6 kB / 0.5908 GB, free: 3.422 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.242e-06/0.7235, allocations: 0 / 0.5908 GB, free: 3.422 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001971/0.7255, allocations: 227.7 kB / 0.5911 GB, free: 3.223 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (slewRateLimiter1.y,slewRateLimiter2.y,limIntegrator1.y,limIntegrator2.y,PID1.I.y,PID1.D.x,PID2.I.y,PID2.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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 Backend phase and start with SimCode phase: time 0.0003146/0.7259, allocations: 118.2 kB / 0.5912 GB, free: 3.105 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.7287, allocations: 0.6221 MB / 0.5918 GB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.7287, allocations: 0 / 0.5918 GB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009007/0.7297, allocations: 218 kB / 0.592 GB, free: 2.543 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.7321, allocations: 177.4 kB / 0.5922 GB, free: 2.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006586/0.7387, allocations: 1.161 MB / 0.5933 GB, free: 1.324 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008786/0.7397, allocations: 0.934 MB / 0.5942 GB, free: 368 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.7404, allocations: 58.84 kB / 0.5943 GB, free: 312 kB / 394.7 MB Notification: Performance of SimCode: time 2.004e-06/0.7404, allocations: 0 / 0.5943 GB, free: 312 kB / 394.7 MB Notification: Performance of Templates: time 0.02957/0.77, allocations: 8.554 MB / 0.6026 GB, free: 7.887 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches