Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009426/0.0009427, allocations: 175.2 kB / 16.72 MB, free: 5.082 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.174/1.174, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007125/0.0007125, allocations: 90.36 kB / 271.2 MB, free: 8.242 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.2831/0.2831, allocations: 43.55 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003454, allocations: 12 kB / 432 MB, free: 5.594 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.08785, allocations: 58.85 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.003505/0.09139, allocations: 3.708 MB / 494.5 MB, free: 6.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.09358, allocations: 1.544 MB / 496.1 MB, free: 5.375 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003502/0.09395, allocations: 35.81 kB / 496.1 MB, free: 5.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.09421, allocations: 110.8 kB / 496.2 MB, free: 5.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002924/0.09451, allocations: 130.8 kB / 496.3 MB, free: 5.102 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009031/0.09542, allocations: 439.3 kB / 496.8 MB, free: 4.672 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008221/0.09625, allocations: 0.9177 MB / 497.7 MB, free: 3.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.09677, allocations: 423.2 kB / 498.1 MB, free: 3.316 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.09703, allocations: 258.4 kB / 498.4 MB, free: 3.062 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.09729, allocations: 294 kB / 498.6 MB, free: 2.773 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.477e-05/0.09737, allocations: 20 kB / 498.7 MB, free: 2.754 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.993e-05/0.09743, allocations: 20 kB / 498.7 MB, free: 2.734 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.153e-05/0.09753, allocations: 119.3 kB / 498.8 MB, free: 2.617 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.09778, allocations: 355.3 kB / 499.1 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.09831, allocations: 0.7133 MB / 499.9 MB, free: 1.547 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.09833, allocations: 3.938 kB / 499.9 MB, free: 1.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09833, allocations: 3.938 kB / 499.9 MB, free: 1.539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.09835, allocations: 0 / 499.9 MB, free: 1.539 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001546/0.0999, allocations: 1.156 MB / 0.4893 GB, free: 340 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.09994, allocations: 8.031 kB / 0.4893 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1001, allocations: 119.4 kB / 0.4894 GB, free: 212 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1488/0.2489, allocations: 0.6409 MB / 0.49 GB, free: 42.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.249, allocations: 50.77 kB / 0.4901 GB, free: 42.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.2491, allocations: 64.75 kB / 0.4901 GB, free: 42.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.2503, allocations: 0.7531 MB / 0.4909 GB, free: 42.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.2503, allocations: 4.969 kB / 0.4909 GB, free: 42.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.2504, allocations: 24.97 kB / 0.4909 GB, free: 42.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.2504, allocations: 16.86 kB / 0.4909 GB, free: 42.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.2516, allocations: 0.5959 MB / 0.4915 GB, free: 42.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.2546, allocations: 2.754 MB / 0.4942 GB, free: 41.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.2559, allocations: 0.7231 MB / 0.4949 GB, free: 41.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.2564, allocations: 300.2 kB / 0.4952 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.2565, allocations: 9.406 kB / 0.4952 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.2565, allocations: 47.81 kB / 0.4952 GB, free: 40.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 3.085e-06/0.2565, allocations: 0 / 0.4952 GB, free: 40.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001723/0.2582, allocations: 0.8743 MB / 0.4961 GB, free: 40.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.2583, allocations: 242.9 kB / 0.4963 GB, free: 40.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000786/0.2591, allocations: 0.7069 MB / 0.497 GB, free: 40.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.2591, allocations: 35.52 kB / 0.497 GB, free: 40.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/0.2594, allocations: 450.3 kB / 0.4975 GB, free: 40.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2595, allocations: 179 kB / 0.4976 GB, free: 40.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.2596, allocations: 10.66 kB / 0.4977 GB, free: 40.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.772e-05/0.2596, allocations: 329.1 kB / 0.498 GB, free: 39.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/0.2601, allocations: 242.5 kB / 0.4982 GB, free: 39.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005211/0.2606, allocations: 396.2 kB / 0.4986 GB, free: 39.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009559/0.2616, allocations: 0.5959 MB / 0.4992 GB, free: 39.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2616, allocations: 0 / 0.4992 GB, free: 39.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002338/0.264, allocations: 1.156 MB / 0.5003 GB, free: 38.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.264, allocations: 168.3 kB / 0.5004 GB, free: 38.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.264, allocations: 7.062 kB / 0.5005 GB, free: 38.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.2652, allocations: 373.5 kB / 0.5008 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005047/0.2657, allocations: 127 kB / 0.5009 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00635/0.272, allocations: 7.068 MB / 0.5078 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004725/0.2725, allocations: 94.12 kB / 0.5079 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.2726, allocations: 19.94 kB / 0.5079 GB, free: 32.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/0.2726, allocations: 3.656 kB / 0.5079 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/0.2739, allocations: 0.683 MB / 0.5086 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.274, allocations: 2.625 kB / 0.5086 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/0.2744, allocations: 151.5 kB / 0.5088 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006684/0.2751, allocations: 175.6 kB / 0.5089 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.2775, allocations: 3.267 MB / 0.5121 GB, free: 29.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.2779, allocations: 67.09 kB / 0.5122 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.278, allocations: 23.05 kB / 0.5122 GB, free: 29.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002942/0.2783, allocations: 291.2 kB / 0.5125 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.2784, allocations: 99.58 kB / 0.5126 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.2786, allocations: 99.5 kB / 0.5127 GB, free: 29.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2786, allocations: 10.72 kB / 0.5127 GB, free: 29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2786, allocations: 0 / 0.5127 GB, free: 29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.2786, allocations: 10.42 kB / 0.5127 GB, free: 29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009365/0.2795, allocations: 0.7393 MB / 0.5134 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2796, allocations: 0 / 0.5134 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.2801, allocations: 123.7 kB / 0.5135 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2801, allocations: 3.188 kB / 0.5135 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.2802, allocations: 7.922 kB / 0.5135 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2802, allocations: 7.141 kB / 0.5135 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2802, allocations: 3.672 kB / 0.5136 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.2817, allocations: 1.284 MB / 0.5148 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.2819, allocations: 213.3 kB / 0.515 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/0.282, allocations: 11.25 kB / 0.515 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.2825, allocations: 56.78 kB / 0.5151 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.2825, allocations: 40.19 kB / 0.5151 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.2826, allocations: 13.75 kB / 0.5151 GB, free: 27.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004219/0.283, allocations: 490 kB / 0.5156 GB, free: 27.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.283, allocations: 0 / 0.5156 GB, free: 27.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008081/0.2838, allocations: 284 kB / 0.5159 GB, free: 27.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * Single equations (assignments): 52 * 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 9.489e-05/0.2839, allocations: 116.1 kB / 0.516 GB, free: 27.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003308/0.2872, allocations: 2.016 MB / 0.5179 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2873, allocations: 0 / 0.5179 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.2878, allocations: 309.2 kB / 0.5182 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.289, allocations: 209.3 kB / 0.5184 GB, free: 26.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.291, allocations: 1.827 MB / 0.5202 GB, free: 25.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.2913, allocations: 0.9854 MB / 0.5212 GB, free: 24.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.2915, allocations: 49.09 kB / 0.5212 GB, free: 24.29 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.2915, allocations: 0 / 0.5212 GB, free: 24.29 MB / 378.7 MB Notification: Performance of Templates: time 0.01616/0.3077, allocations: 17.31 MB / 0.5381 GB, free: 20.37 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches