Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 104.5 kB / 17.01 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 198.3 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.588/1.588, allocations: 227.7 MB / 246.4 MB, free: 9.781 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2453/0.2453, allocations: 46.19 MB / 344.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002835, allocations: 8 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1461, allocations: 63.56 MB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004532/0.1507, allocations: 3.673 MB / 486.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003894/0.1546, allocations: 1.5 MB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008296/0.1555, allocations: 27.88 kB / 487.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003608/0.1559, allocations: 110.9 kB / 487.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003467/0.1562, allocations: 118.8 kB / 487.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1575, allocations: 453.5 kB / 488.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.1586, allocations: 0.875 MB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.1591, allocations: 310.5 kB / 489.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.1594, allocations: 254.4 kB / 489.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003577/0.1598, allocations: 286 kB / 490 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.805e-05/0.1599, allocations: 20 kB / 490 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.377e-05/0.1599, allocations: 20 kB / 490 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.16, allocations: 115.3 kB / 490.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1602, allocations: 165.1 kB / 490.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007869/0.161, allocations: 0.7056 MB / 491 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.161, allocations: 0 / 491 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.161, allocations: 0 / 491 MB, free: 11.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.161, allocations: 0 / 491 MB, free: 11.88 MB / 366.1 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.002039/0.1631, allocations: 1.144 MB / 492.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.1631, allocations: 12.03 kB / 492.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.1633, allocations: 114.6 kB / 492.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009304/0.1643, allocations: 0.5885 MB / 492.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.1643, allocations: 45.31 kB / 492.9 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.1645, allocations: 75.91 kB / 493 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.1659, allocations: 0.7821 MB / 493.7 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.166, allocations: 0 / 493.7 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.1661, allocations: 28 kB / 493.8 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.1662, allocations: 16 kB / 493.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.1674, allocations: 0.5897 MB / 494.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003488/0.1709, allocations: 2.741 MB / 497.1 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.1723, allocations: 0.7257 MB / 497.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005345/0.1728, allocations: 307.3 kB / 498.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.1729, allocations: 11.98 kB / 498.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.173, allocations: 50.52 kB / 498.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.395e-06/0.173, allocations: 3.938 kB / 498.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001737/0.1747, allocations: 0.8628 MB / 499.1 MB, free: 3.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002799/0.175, allocations: 354.1 kB / 499.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009363/0.1759, allocations: 0.6851 MB / 0.4884 GB, free: 2.344 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.176, allocations: 37.7 kB / 0.4884 GB, free: 2.301 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004723/0.1765, allocations: 432.4 kB / 0.4888 GB, free: 1.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.1768, allocations: 189.2 kB / 0.489 GB, free: 1.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/0.1768, allocations: 8 kB / 0.489 GB, free: 1.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.177, allocations: 334 kB / 0.4893 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/0.1776, allocations: 245 kB / 0.4896 GB, free: 1.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007033/0.1783, allocations: 408.1 kB / 0.49 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/0.1789, allocations: 280.9 kB / 0.4902 GB, free: 384 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1789, allocations: 0 / 0.4902 GB, free: 384 kB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00268/0.1816, allocations: 1.154 MB / 0.4913 GB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002932/0.1819, allocations: 175.5 kB / 0.4915 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1819, allocations: 8 kB / 0.4915 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.1831, allocations: 363.1 kB / 0.4919 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005518/0.1837, allocations: 127.9 kB / 0.492 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00991/0.1936, allocations: 7.058 MB / 0.4989 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006855/0.1943, allocations: 111.4 kB / 0.499 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.1944, allocations: 16.08 kB / 0.499 GB, free: 6.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.978e-06/0.1944, allocations: 6.5 kB / 0.499 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/0.1958, allocations: 0.6822 MB / 0.4997 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1958, allocations: 0 / 0.4997 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/0.1963, allocations: 157.8 kB / 0.4998 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006858/0.197, allocations: 171.8 kB / 0.5 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/0.2011, allocations: 3.26 MB / 0.5032 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005522/0.2016, allocations: 75.41 kB / 0.5032 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.2017, allocations: 20 kB / 0.5033 GB, free: 2.133 MB / 382.1 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.0004498/0.2021, allocations: 289.1 kB / 0.5035 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.2023, allocations: 90.92 kB / 0.5036 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.2025, allocations: 99.16 kB / 0.5037 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2025, allocations: 8 kB / 0.5037 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.2025, allocations: 0 / 0.5037 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.2025, allocations: 7.984 kB / 0.5037 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.2039, allocations: 0.7388 MB / 0.5045 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.2039, allocations: 0 / 0.5045 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006359/0.2045, allocations: 127.8 kB / 0.5046 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.2045, allocations: 11.89 kB / 0.5046 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.2046, allocations: 8 kB / 0.5046 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2046, allocations: 4 kB / 0.5046 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2046, allocations: 0 / 0.5046 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.304/0.5086, allocations: 1.275 MB / 0.5058 GB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006121/0.5093, allocations: 209.8 kB / 0.5061 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.5096, allocations: 20.44 kB / 0.5061 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007916/0.5104, allocations: 57.92 kB / 0.5061 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.5106, allocations: 32.88 kB / 0.5062 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.203e-05/0.5107, allocations: 15.38 kB / 0.5062 GB, free: 38.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.5121, allocations: 479.2 kB / 0.5066 GB, free: 38.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5121, allocations: 0 / 0.5066 GB, free: 38.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002108/0.5142, allocations: 280.5 kB / 0.5069 GB, free: 38.62 MB / 382.1 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 0.0002615/0.5145, allocations: 112.8 kB / 0.507 GB, free: 38.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005057/0.5195, allocations: 2.021 MB / 0.509 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.5196, allocations: 1.094 kB / 0.509 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007109/0.5203, allocations: 305 kB / 0.5093 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.522, allocations: 203.5 kB / 0.5095 GB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.5262, allocations: 1.751 MB / 0.5112 GB, free: 36.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009507/0.5271, allocations: 0.98 MB / 0.5121 GB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000686/0.5278, allocations: 95.58 kB / 0.5122 GB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.528, allocations: 45.03 kB / 0.5123 GB, free: 36.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.753e-06/0.5281, allocations: 0 / 0.5123 GB, free: 36.27 MB / 382.1 MB Notification: Performance of Templates: time 0.02768/0.5557, allocations: 10.93 MB / 0.5229 GB, free: 33.49 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches