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.001072/0.001072, allocations: 104.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 209.7 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2044/0.2044, allocations: 46.1 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 73.86 kB / 417.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1159, allocations: 62.44 MB / 479.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005368/0.1213, allocations: 4.347 MB / 484.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.1243, allocations: 1.542 MB / 485.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006617/0.125, allocations: 35.81 kB / 485.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004092/0.1254, allocations: 114.9 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004289/0.1259, allocations: 126.9 kB / 486.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.1273, allocations: 0.5296 MB / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1284, allocations: 0.9529 MB / 487.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006429/0.1291, allocations: 427.1 kB / 488 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003956/0.1295, allocations: 310.3 kB / 488.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.1299, allocations: 361.6 kB / 488.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.791e-05/0.13, allocations: 43.94 kB / 488.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.479e-05/0.1301, allocations: 40 kB / 488.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.1302, allocations: 155.2 kB / 488.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.1306, allocations: 389.2 kB / 489.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006903/0.1313, allocations: 0.7293 MB / 490 MB, free: 11.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1313, allocations: 0 / 490 MB, free: 11.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1313, allocations: 0 / 490 MB, free: 11.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.1313, allocations: 0 / 490 MB, free: 11.63 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.002094/0.1334, allocations: 1.284 MB / 491.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1335, allocations: 12.03 kB / 491.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.1337, allocations: 111.6 kB / 491.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008453/0.1345, allocations: 0.6242 MB / 492 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.1346, allocations: 49.62 kB / 492.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.1347, allocations: 72.36 kB / 492.1 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.136, allocations: 0.7773 MB / 492.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.1361, allocations: 0 / 492.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.375e-05/0.1361, allocations: 28 kB / 492.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.1362, allocations: 19.98 kB / 493 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1373, allocations: 0.5422 MB / 493.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003655/0.141, allocations: 2.725 MB / 496.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.1424, allocations: 0.6665 MB / 496.9 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005392/0.1429, allocations: 283.2 kB / 497.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.423e-05/0.143, allocations: 12 kB / 497.2 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.143, allocations: 46.55 kB / 497.2 MB, free: 4.078 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.456e-06/0.143, allocations: 0 / 497.2 MB, free: 4.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.0019/0.145, allocations: 0.7965 MB / 498 MB, free: 3.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.1451, allocations: 338.1 kB / 498.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008768/0.146, allocations: 0.7007 MB / 499.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.558e-05/0.1461, allocations: 37.7 kB / 499.1 MB, free: 2.109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003787/0.1465, allocations: 436.4 kB / 499.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.1466, allocations: 189.3 kB / 499.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.1468, allocations: 106.2 kB / 499.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.147, allocations: 329.9 kB / 0.4884 GB, free: 1.055 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/0.1475, allocations: 234.9 kB / 0.4886 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/0.1482, allocations: 387.5 kB / 0.489 GB, free: 392 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1492, allocations: 0.555 MB / 0.4895 GB, free: 15.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1493, allocations: 4 kB / 0.4895 GB, free: 15.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002797/0.1521, allocations: 1.042 MB / 0.4906 GB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.1521, allocations: 8.031 kB / 0.4906 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.1521, allocations: 7.938 kB / 0.4906 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.1533, allocations: 315.1 kB / 0.4909 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.1539, allocations: 131.8 kB / 0.491 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/0.1624, allocations: 6.78 MB / 0.4976 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.1631, allocations: 71.5 kB / 0.4977 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.006e-05/0.1632, allocations: 23.98 kB / 0.4977 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007026/0.1639, allocations: 345.2 kB / 0.498 GB, free: 6.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000524/0.1644, allocations: 355.5 kB / 0.4984 GB, free: 6.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008486/0.1653, allocations: 0.4962 MB / 0.4989 GB, free: 5.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.1653, allocations: 4 kB / 0.4989 GB, free: 5.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001635/0.1669, allocations: 0.7387 MB / 0.4996 GB, free: 4.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.167, allocations: 8 kB / 0.4996 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.167, allocations: 4 kB / 0.4996 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005355/0.1675, allocations: 141.8 kB / 0.4997 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007554/0.1683, allocations: 175.8 kB / 0.4999 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.1718, allocations: 3.186 MB / 0.503 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006461/0.1725, allocations: 75.62 kB / 0.5031 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.1726, allocations: 20 kB / 0.5031 GB, free: 0.9414 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.0002697/0.1729, allocations: 220 kB / 0.5033 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.1731, allocations: 90.88 kB / 0.5034 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001985/0.1733, allocations: 99.16 kB / 0.5035 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1733, allocations: 11.98 kB / 0.5035 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1734, allocations: 0 / 0.5035 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1734, allocations: 4 kB / 0.5035 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1957/0.3691, allocations: 0.7299 MB / 0.5042 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.3692, allocations: 4.672 kB / 0.5042 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007663/0.3699, allocations: 108.3 kB / 0.5043 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.37, allocations: 3.344 kB / 0.5043 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.134e-05/0.3701, allocations: 11.39 kB / 0.5044 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.3701, allocations: 3.281 kB / 0.5044 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3701, allocations: 3.562 kB / 0.5044 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.3723, allocations: 1.202 MB / 0.5055 GB, free: 40.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000349/0.3727, allocations: 213.9 kB / 0.5057 GB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3728, allocations: 12.86 kB / 0.5058 GB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005839/0.3734, allocations: 47.05 kB / 0.5058 GB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3735, allocations: 38.38 kB / 0.5058 GB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.3736, allocations: 14.44 kB / 0.5058 GB, free: 39.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007949/0.3744, allocations: 489.8 kB / 0.5063 GB, free: 39.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3744, allocations: 0 / 0.5063 GB, free: 39.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00126/0.3757, allocations: 282.4 kB / 0.5066 GB, free: 39.88 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.0001527/0.3758, allocations: 107.5 kB / 0.5067 GB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004053/0.3799, allocations: 1.861 MB / 0.5085 GB, free: 39.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3799, allocations: 0 / 0.5085 GB, free: 39.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006118/0.3805, allocations: 281.2 kB / 0.5088 GB, free: 39.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.3821, allocations: 218 kB / 0.509 GB, free: 39.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.385, allocations: 1.839 MB / 0.5108 GB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005645/0.3856, allocations: 0.9809 MB / 0.5117 GB, free: 37.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.3858, allocations: 49.11 kB / 0.5118 GB, free: 37.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.704e-06/0.3858, allocations: 0 / 0.5118 GB, free: 37.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02117/0.407, allocations: 17.11 MB / 0.5285 GB, free: 30.58 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches