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.001478/0.001478, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2201/0.2201, allocations: 46.1 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 74 kB / 416.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1459, allocations: 62.44 MB / 479.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.00654/0.1526, allocations: 4.351 MB / 483.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.1556, allocations: 1.542 MB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005614/0.1562, allocations: 35.81 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.1567, allocations: 114.9 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.1571, allocations: 122.9 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.1584, allocations: 0.5444 MB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008934/0.1593, allocations: 0.949 MB / 486.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005732/0.1599, allocations: 427.1 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.1602, allocations: 310.2 kB / 487.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004619/0.1607, allocations: 369.6 kB / 488 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.164e-05/0.1608, allocations: 40 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.417e-05/0.1609, allocations: 40 kB / 488.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.161, allocations: 151.2 kB / 488.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003028/0.1613, allocations: 393.2 kB / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00078/0.1621, allocations: 0.9188 MB / 489.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1621, allocations: 0 / 489.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1622, allocations: 0 / 489.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1622, allocations: 0 / 489.5 MB, free: 11.43 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.002075/0.1643, allocations: 1.3 MB / 490.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1643, allocations: 8.031 kB / 490.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.1645, allocations: 111.6 kB / 491 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008646/0.1654, allocations: 0.6319 MB / 491.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.1654, allocations: 49.69 kB / 491.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.1655, allocations: 60.38 kB / 491.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.1669, allocations: 0.7699 MB / 492.5 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1669, allocations: 3.938 kB / 492.5 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.167, allocations: 28 kB / 492.5 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.167, allocations: 16 kB / 492.5 MB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.1682, allocations: 0.5461 MB / 493.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.1718, allocations: 2.721 MB / 495.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.1731, allocations: 0.6592 MB / 496.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005157/0.1737, allocations: 287.4 kB / 496.7 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.548e-05/0.1737, allocations: 15.98 kB / 496.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.1738, allocations: 42.5 kB / 496.8 MB, free: 3.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.245e-06/0.1738, allocations: 0 / 496.8 MB, free: 3.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001838/0.1756, allocations: 0.7966 MB / 497.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.1758, allocations: 346.1 kB / 497.9 MB, free: 2.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007591/0.1766, allocations: 0.6968 MB / 498.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.1766, allocations: 33.7 kB / 498.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.177, allocations: 436.4 kB / 499.1 MB, free: 1.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.1772, allocations: 185.3 kB / 499.3 MB, free: 1.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.1774, allocations: 110.1 kB / 499.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1776, allocations: 325.9 kB / 499.7 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005228/0.1781, allocations: 231 kB / 499.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.1787, allocations: 395.4 kB / 0.4886 GB, free: 180 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.1798, allocations: 0.5583 MB / 0.4891 GB, free: 15.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1799, allocations: 4 kB / 0.4891 GB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002745/0.1826, allocations: 1.039 MB / 0.4901 GB, free: 14.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.1826, allocations: 11.97 kB / 0.4901 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.1827, allocations: 4 kB / 0.4901 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.184, allocations: 319.1 kB / 0.4905 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005889/0.1846, allocations: 127.9 kB / 0.4906 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008525/0.1931, allocations: 6.772 MB / 0.4972 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006616/0.1938, allocations: 75.48 kB / 0.4973 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/0.1939, allocations: 24 kB / 0.4973 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007166/0.1946, allocations: 349.2 kB / 0.4976 GB, free: 6.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005182/0.1952, allocations: 355.6 kB / 0.498 GB, free: 5.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000829/0.196, allocations: 0.4923 MB / 0.4984 GB, free: 5.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.035e-06/0.196, allocations: 0 / 0.4984 GB, free: 5.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00162/0.1976, allocations: 0.7464 MB / 0.4992 GB, free: 4.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.1977, allocations: 6.656 kB / 0.4992 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1977, allocations: 4 kB / 0.4992 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005297/0.1982, allocations: 145.8 kB / 0.4993 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007172/0.1989, allocations: 172 kB / 0.4995 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/0.2022, allocations: 3.186 MB / 0.5026 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005804/0.2028, allocations: 75.62 kB / 0.5027 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.2029, allocations: 20 kB / 0.5027 GB, free: 0.7383 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.2031, allocations: 220.1 kB / 0.5029 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002398/0.2034, allocations: 90.88 kB / 0.503 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.2036, allocations: 103.1 kB / 0.5031 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.2036, allocations: 8 kB / 0.5031 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2036, allocations: 4 kB / 0.5031 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2036, allocations: 0 / 0.5031 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2409/0.4445, allocations: 0.7347 MB / 0.5038 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4445, allocations: 1.703 kB / 0.5038 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006392/0.4452, allocations: 107.2 kB / 0.5039 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.4452, allocations: 4.641 kB / 0.5039 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.4453, allocations: 11.48 kB / 0.5039 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.4453, allocations: 3.547 kB / 0.5039 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4453, allocations: 4.781 kB / 0.5039 GB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.4473, allocations: 1.2 MB / 0.5051 GB, free: 40 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.4476, allocations: 216 kB / 0.5053 GB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.4477, allocations: 16.09 kB / 0.5053 GB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000512/0.4482, allocations: 41.19 kB / 0.5054 GB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.4483, allocations: 37.7 kB / 0.5054 GB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.4484, allocations: 14 kB / 0.5054 GB, free: 39.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006595/0.449, allocations: 491 kB / 0.5059 GB, free: 39.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.449, allocations: 0 / 0.5059 GB, free: 39.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001098/0.4501, allocations: 278.3 kB / 0.5061 GB, free: 39.8 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001518/0.4503, allocations: 113.2 kB / 0.5063 GB, free: 39.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004135/0.4544, allocations: 1.867 MB / 0.5081 GB, free: 39.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.4545, allocations: 4.75 kB / 0.5081 GB, free: 39.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.4551, allocations: 282 kB / 0.5084 GB, free: 39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.4565, allocations: 217.9 kB / 0.5086 GB, free: 38.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.4593, allocations: 1.801 MB / 0.5103 GB, free: 37.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/0.4598, allocations: 0.983 MB / 0.5113 GB, free: 37.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004373/0.4603, allocations: 91.75 kB / 0.5114 GB, free: 37.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.4604, allocations: 51.98 kB / 0.5114 GB, free: 37.12 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4604, allocations: 0 / 0.5114 GB, free: 37.12 MB / 382.1 MB Notification: Performance of Templates: time 0.02292/0.4834, allocations: 11.45 MB / 0.5226 GB, free: 33.92 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