Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 190.8 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 244.1 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008648/0.0008647, allocations: 91.94 kB / 296.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3276/0.3276, allocations: 44.82 MB / 393 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002673/0.0002673, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3347, allocations: 62.96 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.4539, allocations: 92.68 MB / 0.607 GB, free: 12.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4542, allocations: 63.97 kB / 0.607 GB, free: 12.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04199/0.4962, allocations: 15.71 MB / 0.6224 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4963, allocations: 0 / 0.6224 GB, free: 12.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.705e-05/0.4964, allocations: 31.94 kB / 0.6224 GB, free: 12.88 MB / 442.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.002344/0.4987, allocations: 1.141 MB / 0.6235 GB, free: 11.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4988, allocations: 12.03 kB / 0.6235 GB, free: 11.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005401/0.4993, allocations: 155.8 kB / 0.6237 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.5004, allocations: 0.6257 MB / 0.6243 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.5004, allocations: 37.38 kB / 0.6243 GB, free: 10.81 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/0.5005, allocations: 60.28 kB / 0.6244 GB, free: 10.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.5019, allocations: 0.7311 MB / 0.6251 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.5019, allocations: 3.938 kB / 0.6251 GB, free: 9.969 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/0.502, allocations: 31.97 kB / 0.6251 GB, free: 9.938 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.502, allocations: 12 kB / 0.6252 GB, free: 9.926 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.5034, allocations: 0.5972 MB / 0.6257 GB, free: 9.328 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.5063, allocations: 2.285 MB / 0.628 GB, free: 6.961 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/0.5087, allocations: 1.053 MB / 0.629 GB, free: 5.871 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000774/0.5095, allocations: 349.5 kB / 0.6293 GB, free: 5.523 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.407e-05/0.5095, allocations: 4 kB / 0.6293 GB, free: 5.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.5096, allocations: 42.5 kB / 0.6294 GB, free: 5.469 MB / 442.7 MB Notification: Performance of pre-optimization done (n=46): time 3.287e-06/0.5096, allocations: 3.984 kB / 0.6294 GB, free: 5.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.002499/0.5121, allocations: 1.035 MB / 0.6304 GB, free: 4.422 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.5122, allocations: 136.5 kB / 0.6305 GB, free: 4.258 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000656/0.5128, allocations: 0.5708 MB / 0.6311 GB, free: 3.676 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.549e-05/0.5129, allocations: 33.7 kB / 0.6311 GB, free: 3.637 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.5132, allocations: 348.8 kB / 0.6314 GB, free: 3.289 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.5133, allocations: 169.5 kB / 0.6316 GB, free: 3.121 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.5133, allocations: 12 kB / 0.6316 GB, free: 3.109 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.5135, allocations: 382.8 kB / 0.632 GB, free: 2.727 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008288/0.5144, allocations: 312.9 kB / 0.6323 GB, free: 2.422 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008712/0.5152, allocations: 424.1 kB / 0.6327 GB, free: 1.969 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.5169, allocations: 0.6909 MB / 0.6334 GB, free: 1.246 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5169, allocations: 0 / 0.6334 GB, free: 1.246 MB / 442.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001835/0.5187, allocations: 0.8232 MB / 0.6342 GB, free: 424 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.548e-05/0.5188, allocations: 158.5 kB / 0.6343 GB, free: 232 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5188, allocations: 4 kB / 0.6343 GB, free: 228 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.5189, allocations: 7.938 kB / 0.6343 GB, free: 220 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009123/0.5198, allocations: 211.7 kB / 0.6345 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.5198, allocations: 4 kB / 0.6345 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005517/0.5204, allocations: 119.5 kB / 0.6346 GB, free: 15.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.5204, allocations: 23.98 kB / 0.6347 GB, free: 15.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-06/0.5204, allocations: 4 kB / 0.6347 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001262/0.5217, allocations: 0.5957 MB / 0.6352 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5217, allocations: 3.984 kB / 0.6353 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.39e-06/0.5217, allocations: 4.25 kB / 0.6353 GB, free: 15.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007353/0.5225, allocations: 175.7 kB / 0.6354 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.5225, allocations: 4 kB / 0.6354 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.5229, allocations: 99.47 kB / 0.6355 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.5229, allocations: 16 kB / 0.6355 GB, free: 14.96 MB / 458.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 (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.0003246/0.5233, allocations: 272.9 kB / 0.6358 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.5234, allocations: 71.16 kB / 0.6359 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.5236, allocations: 82.89 kB / 0.6359 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.5236, allocations: 8 kB / 0.636 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5236, allocations: 0 / 0.636 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.5236, allocations: 0 / 0.636 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.526, allocations: 1.41 MB / 0.6373 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.526, allocations: 0 / 0.6373 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000666/0.5267, allocations: 163.8 kB / 0.6375 GB, free: 12.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.5267, allocations: 0 / 0.6375 GB, free: 12.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.5267, allocations: 11.98 kB / 0.6375 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.5268, allocations: 4 kB / 0.6375 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5268, allocations: 0 / 0.6375 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.5294, allocations: 1.295 MB / 0.6388 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.5296, allocations: 192 kB / 0.6389 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.46e-05/0.5297, allocations: 11.98 kB / 0.639 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.5302, allocations: 103.9 kB / 0.6391 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.5303, allocations: 39.92 kB / 0.6391 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.5303, allocations: 12 kB / 0.6391 GB, free: 11.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004275/0.5308, allocations: 391.1 kB / 0.6395 GB, free: 10.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5308, allocations: 0 / 0.6395 GB, free: 10.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006753/0.5315, allocations: 231.2 kB / 0.6397 GB, free: 10.59 MB / 458.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 () * Number of clocked 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.0001452/0.5316, allocations: 123.1 kB / 0.6398 GB, free: 10.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00233/0.534, allocations: 1.034 MB / 0.6408 GB, free: 9.434 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.534, allocations: 7.938 kB / 0.6408 GB, free: 9.426 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.5348, allocations: 371.6 kB / 0.6412 GB, free: 9.062 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009779/0.5358, allocations: 186.3 kB / 0.6414 GB, free: 8.887 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/0.5389, allocations: 1.746 MB / 0.6431 GB, free: 7.102 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.5393, allocations: 0.9222 MB / 0.644 GB, free: 6.148 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.5396, allocations: 59.41 kB / 0.644 GB, free: 6.09 MB / 458.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5396, allocations: 4 kB / 0.644 GB, free: 6.086 MB / 458.7 MB Notification: Performance of Templates: time 0.01118/0.5508, allocations: 8.523 MB / 0.6524 GB, free: 13.61 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches