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.001392/0.001392, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.09 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001427, allocations: 72.55 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1404, allocations: 62.45 MB / 480.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006288/0.1467, allocations: 4.355 MB / 485 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003653/0.1504, allocations: 1.578 MB / 486.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.1517, allocations: 39.81 kB / 486.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006569/0.1523, allocations: 154.3 kB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009665/0.1534, allocations: 162.3 kB / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.155, allocations: 0.599 MB / 487.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.1565, allocations: 1.012 MB / 488.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000679/0.1572, allocations: 435.1 kB / 489 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004594/0.1577, allocations: 362.3 kB / 489.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.1581, allocations: 385.7 kB / 489.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.1582, allocations: 91.94 kB / 489.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.1583, allocations: 84 kB / 489.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.1585, allocations: 203.2 kB / 490.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.1589, allocations: 437.2 kB / 490.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009186/0.1598, allocations: 0.9695 MB / 491.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1598, allocations: 8 kB / 491.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1598, allocations: 0 / 491.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1598, allocations: 3.938 kB / 491.5 MB, free: 10.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.00203/0.1619, allocations: 1.292 MB / 492.8 MB, free: 9.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.1619, allocations: 8.031 kB / 492.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1621, allocations: 111.6 kB / 492.9 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007753/0.1629, allocations: 0.6203 MB / 493.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.801e-05/0.1629, allocations: 49.69 kB / 493.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-05/0.163, allocations: 64.31 kB / 493.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1643, allocations: 0.7738 MB / 494.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1643, allocations: 3.938 kB / 494.4 MB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.855e-05/0.1644, allocations: 28 kB / 494.5 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.1644, allocations: 16 kB / 494.5 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.1655, allocations: 0.5462 MB / 495 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00337/0.1689, allocations: 2.733 MB / 497.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.1703, allocations: 0.6702 MB / 498.4 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000519/0.1708, allocations: 287.4 kB / 498.7 MB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.1708, allocations: 7.938 kB / 498.7 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.1709, allocations: 38.56 kB / 498.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.745e-06/0.1709, allocations: 0 / 498.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001841/0.1727, allocations: 0.8008 MB / 499.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001668/0.1729, allocations: 346.1 kB / 499.9 MB, free: 1.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008582/0.1738, allocations: 0.6929 MB / 0.4889 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.297e-05/0.1739, allocations: 37.7 kB / 0.4889 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.1742, allocations: 440.4 kB / 0.4893 GB, free: 476 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.1744, allocations: 181.3 kB / 0.4895 GB, free: 292 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.1746, allocations: 110.1 kB / 0.4896 GB, free: 176 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1747, allocations: 333.9 kB / 0.4899 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/0.1753, allocations: 231 kB / 0.4901 GB, free: 15.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006183/0.1759, allocations: 399 kB / 0.4905 GB, free: 15.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.177, allocations: 0.5542 MB / 0.491 GB, free: 14.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.177, allocations: 4 kB / 0.491 GB, free: 14.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00271/0.1797, allocations: 1.033 MB / 0.4921 GB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.1797, allocations: 14.48 kB / 0.4921 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1798, allocations: 4 kB / 0.4921 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.181, allocations: 319.4 kB / 0.4924 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.1816, allocations: 127.9 kB / 0.4925 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008969/0.1905, allocations: 7.268 MB / 0.4996 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006664/0.1913, allocations: 87.5 kB / 0.4997 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.37e-05/0.1914, allocations: 16 kB / 0.4997 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007043/0.1921, allocations: 349.2 kB / 0.5 GB, free: 4.773 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005303/0.1926, allocations: 351.5 kB / 0.5004 GB, free: 4.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008342/0.1935, allocations: 0.4966 MB / 0.5009 GB, free: 3.836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.585e-06/0.1935, allocations: 0 / 0.5009 GB, free: 3.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001621/0.1951, allocations: 0.7433 MB / 0.5016 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1952, allocations: 12 kB / 0.5016 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1952, allocations: 3.938 kB / 0.5016 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005013/0.1957, allocations: 149.5 kB / 0.5017 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.1964, allocations: 167.8 kB / 0.5019 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2591/0.4555, allocations: 3.42 MB / 0.5052 GB, free: 38.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006819/0.4562, allocations: 68.89 kB / 0.5053 GB, free: 38.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.4562, allocations: 19.66 kB / 0.5053 GB, free: 38.9 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.0002338/0.4565, allocations: 217.5 kB / 0.5055 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.4567, allocations: 94.72 kB / 0.5056 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002051/0.4569, allocations: 96.92 kB / 0.5057 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.4569, allocations: 6.25 kB / 0.5057 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4569, allocations: 1.75 kB / 0.5057 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.4569, allocations: 5.266 kB / 0.5057 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.458, allocations: 0.7352 MB / 0.5064 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.458, allocations: 1.375 kB / 0.5064 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005507/0.4586, allocations: 110.2 kB / 0.5065 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.4586, allocations: 3.094 kB / 0.5065 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.4586, allocations: 13.17 kB / 0.5066 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.4586, allocations: 8.875 kB / 0.5066 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4586, allocations: 0 / 0.5066 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4605, allocations: 1.205 MB / 0.5077 GB, free: 38.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.4607, allocations: 214.2 kB / 0.508 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.4608, allocations: 15.23 kB / 0.508 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004831/0.4613, allocations: 45.33 kB / 0.508 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4614, allocations: 35.16 kB / 0.508 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.4615, allocations: 13.52 kB / 0.5081 GB, free: 38.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006409/0.4621, allocations: 488.2 kB / 0.5085 GB, free: 37.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4621, allocations: 3.062 kB / 0.5085 GB, free: 37.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001078/0.4632, allocations: 278.3 kB / 0.5088 GB, free: 37.95 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.0001365/0.4633, allocations: 110.2 kB / 0.5089 GB, free: 37.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004023/0.4674, allocations: 1.899 MB / 0.5107 GB, free: 37.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.4674, allocations: 6.781 kB / 0.5108 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005818/0.468, allocations: 275 kB / 0.511 GB, free: 37.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4694, allocations: 233.8 kB / 0.5112 GB, free: 37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.472, allocations: 1.544 MB / 0.5127 GB, free: 36.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.4725, allocations: 0.9853 MB / 0.5137 GB, free: 35.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.4726, allocations: 53.3 kB / 0.5138 GB, free: 35.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4726, allocations: 0 / 0.5138 GB, free: 35.46 MB / 382.1 MB Notification: Performance of Templates: time 0.02367/0.4963, allocations: 17.1 MB / 0.5305 GB, free: 28.62 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