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.0008703/0.0008703, allocations: 175.9 kB / 16.72 MB, free: 5.078 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.2/1.2, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0007301/0.0007301, allocations: 94.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2877/0.2877, allocations: 43.55 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003321, allocations: 15.98 kB / 432 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08737/0.08772, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.003081/0.09084, allocations: 2.995 MB / 493.8 MB, free: 7.871 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.09296, allocations: 1.376 MB / 495.2 MB, free: 6.484 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.09326, allocations: 27.81 kB / 495.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.09347, allocations: 71.19 kB / 495.3 MB, free: 6.387 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003836/0.09386, allocations: 123 kB / 495.4 MB, free: 6.266 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009463/0.09481, allocations: 479.2 kB / 495.9 MB, free: 5.797 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008207/0.09564, allocations: 0.8195 MB / 496.7 MB, free: 4.973 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003988/0.09605, allocations: 292.8 kB / 497 MB, free: 4.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.09642, allocations: 278.5 kB / 497.2 MB, free: 4.402 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.09671, allocations: 286.3 kB / 497.5 MB, free: 4.121 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.442e-05/0.0968, allocations: 20 kB / 497.5 MB, free: 4.102 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.254e-05/0.09687, allocations: 24 kB / 497.6 MB, free: 4.078 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.364e-05/0.09697, allocations: 111.3 kB / 497.7 MB, free: 3.969 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.09721, allocations: 319.7 kB / 498 MB, free: 3.648 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000458/0.09767, allocations: 0.5728 MB / 498.6 MB, free: 3.074 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.09769, allocations: 3.984 kB / 498.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.09769, allocations: 0 / 498.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.09771, allocations: 0 / 498.6 MB, free: 3.07 MB / 378.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.001843/0.09956, allocations: 1.121 MB / 499.7 MB, free: 1.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.0996, allocations: 8.031 kB / 499.7 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.09973, allocations: 95.81 kB / 499.8 MB, free: 1.793 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.1004, allocations: 0.5738 MB / 0.4886 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.1005, allocations: 37.38 kB / 0.4887 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.1006, allocations: 56.36 kB / 0.4887 GB, free: 1.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.102, allocations: 0.7504 MB / 0.4895 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.102, allocations: 3.938 kB / 0.4895 GB, free: 292 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.1021, allocations: 24 kB / 0.4895 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1021, allocations: 12 kB / 0.4895 GB, free: 256 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1487/0.2508, allocations: 0.6356 MB / 0.4901 GB, free: 43.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.2539, allocations: 2.344 MB / 0.4924 GB, free: 42.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.2557, allocations: 0.8194 MB / 0.4932 GB, free: 41.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007978/0.2565, allocations: 374.5 kB / 0.4936 GB, free: 41.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.254e-05/0.2565, allocations: 13.42 kB / 0.4936 GB, free: 41.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.2566, allocations: 41.59 kB / 0.4936 GB, free: 41.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 2.895e-06/0.2566, allocations: 0 / 0.4936 GB, free: 41.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.004435/0.261, allocations: 2.163 MB / 0.4957 GB, free: 41.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.2611, allocations: 186.8 kB / 0.4959 GB, free: 41.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005745/0.2617, allocations: 0.5859 MB / 0.4965 GB, free: 40.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.135e-05/0.2617, allocations: 35.2 kB / 0.4965 GB, free: 40.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.2619, allocations: 363.2 kB / 0.4969 GB, free: 40.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.262, allocations: 176.9 kB / 0.497 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.2621, allocations: 11.38 kB / 0.497 GB, free: 40.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.2621, allocations: 326.3 kB / 0.4973 GB, free: 40.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007574/0.2629, allocations: 345.1 kB / 0.4977 GB, free: 40.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008254/0.2637, allocations: 462.4 kB / 0.4981 GB, free: 40.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.2652, allocations: 0.7476 MB / 0.4988 GB, free: 40.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2652, allocations: 0 / 0.4988 GB, free: 40.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001692/0.2669, allocations: 0.8899 MB / 0.4997 GB, free: 39.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.323e-05/0.267, allocations: 159.3 kB / 0.4999 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.267, allocations: 2.969 kB / 0.4999 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.267, allocations: 6.938 kB / 0.4999 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007836/0.2678, allocations: 216.3 kB / 0.5001 GB, free: 39.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.2679, allocations: 5.812 kB / 0.5001 GB, free: 39.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/0.2684, allocations: 109.8 kB / 0.5002 GB, free: 39.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.2684, allocations: 22.75 kB / 0.5002 GB, free: 39.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.2684, allocations: 2.469 kB / 0.5002 GB, free: 39.67 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001146/0.2696, allocations: 0.6149 MB / 0.5008 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2696, allocations: 5.656 kB / 0.5008 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.241e-06/0.2696, allocations: 9.188 kB / 0.5008 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006109/0.2702, allocations: 174.1 kB / 0.501 GB, free: 39.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2702, allocations: 6 kB / 0.501 GB, free: 39.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.2706, allocations: 69.06 kB / 0.5011 GB, free: 39.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.2707, allocations: 28.05 kB / 0.5011 GB, free: 39.45 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002432/0.2709, allocations: 268.5 kB / 0.5014 GB, free: 39.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.271, allocations: 76.44 kB / 0.5014 GB, free: 39.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.2712, allocations: 85.36 kB / 0.5015 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2712, allocations: 5.781 kB / 0.5015 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.2712, allocations: 6.703 kB / 0.5015 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.2712, allocations: 3.141 kB / 0.5015 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.2737, allocations: 1.546 MB / 0.503 GB, free: 38.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.2737, allocations: 8.281 kB / 0.503 GB, free: 38.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006764/0.2744, allocations: 173.4 kB / 0.5032 GB, free: 38.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.2744, allocations: 3.594 kB / 0.5032 GB, free: 38.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.2744, allocations: 11.67 kB / 0.5032 GB, free: 38.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2744, allocations: 2.375 kB / 0.5032 GB, free: 38.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2744, allocations: 5.156 kB / 0.5032 GB, free: 38.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.2769, allocations: 1.412 MB / 0.5046 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.2771, allocations: 189.1 kB / 0.5048 GB, free: 37.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.2772, allocations: 14 kB / 0.5048 GB, free: 37.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005283/0.2777, allocations: 107.5 kB / 0.5049 GB, free: 37.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.2778, allocations: 40.94 kB / 0.5049 GB, free: 37.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.2779, allocations: 19.58 kB / 0.505 GB, free: 37.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003826/0.2783, allocations: 399.7 kB / 0.5053 GB, free: 37.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2783, allocations: 3.938 kB / 0.5053 GB, free: 37.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000611/0.2789, allocations: 183.6 kB / 0.5055 GB, free: 37.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (der1.u,der2.u,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 50 * 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.0001075/0.279, allocations: 111.9 kB / 0.5056 GB, free: 37.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.2811, allocations: 1.101 MB / 0.5067 GB, free: 37.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2812, allocations: 0.9375 kB / 0.5067 GB, free: 37.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.282, allocations: 408.7 kB / 0.5071 GB, free: 36.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.283, allocations: 189.6 kB / 0.5073 GB, free: 36.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.2858, allocations: 1.85 MB / 0.5091 GB, free: 35.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.286, allocations: 0.9319 MB / 0.51 GB, free: 35.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.2863, allocations: 60.09 kB / 0.51 GB, free: 35.18 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2863, allocations: 0 / 0.51 GB, free: 35.18 MB / 378.7 MB Notification: Performance of Templates: time 0.009578/0.2959, allocations: 8.818 MB / 0.5187 GB, free: 34.36 MB / 378.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/jenkins/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