Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 104.1 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 190 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241.8 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2595/0.2595, allocations: 44.17 MB / 336.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 62.88 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1365, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.00585/0.1424, allocations: 4.363 MB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003027/0.1454, allocations: 1.511 MB / 474.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005312/0.146, allocations: 31.81 kB / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.1464, allocations: 110.9 kB / 474.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004305/0.1469, allocations: 134.8 kB / 474.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.1481, allocations: 0.529 MB / 475.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.1491, allocations: 0.9604 MB / 476.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000595/0.1497, allocations: 427.1 kB / 476.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.1501, allocations: 314.2 kB / 476.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.1504, allocations: 365.6 kB / 477.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-05/0.1505, allocations: 40 kB / 477.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.1506, allocations: 44 kB / 477.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.1508, allocations: 151.2 kB / 477.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003919/0.1512, allocations: 401.2 kB / 477.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008587/0.152, allocations: 0.9187 MB / 478.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1521, allocations: 0 / 478.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1521, allocations: 0 / 478.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.1521, allocations: 0 / 478.8 MB, free: 4.523 MB / 350.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.002077/0.1542, allocations: 1.288 MB / 480.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1542, allocations: 12.02 kB / 480.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.1544, allocations: 115.5 kB / 480.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009191/0.1553, allocations: 0.6203 MB / 480.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.1554, allocations: 49.69 kB / 480.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.1555, allocations: 68.36 kB / 480.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.1568, allocations: 0.743 MB / 481.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1568, allocations: 0 / 481.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.257e-05/0.1569, allocations: 28 kB / 481.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.1569, allocations: 16 kB / 481.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1582, allocations: 0.5386 MB / 482.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.1617, allocations: 2.718 MB / 485 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.1632, allocations: 0.6826 MB / 485.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/0.1638, allocations: 283.2 kB / 485.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-05/0.1638, allocations: 4 kB / 485.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.1639, allocations: 42.5 kB / 486 MB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.534e-06/0.1639, allocations: 0 / 486 MB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001885/0.1658, allocations: 0.792 MB / 486.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.1659, allocations: 247.2 kB / 487 MB, free: 11.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008594/0.1668, allocations: 0.6968 MB / 487.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.196e-05/0.1669, allocations: 37.69 kB / 487.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/0.1673, allocations: 432.5 kB / 488.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1675, allocations: 185.3 kB / 488.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.1677, allocations: 110.1 kB / 488.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1679, allocations: 326 kB / 488.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005604/0.1684, allocations: 231 kB / 489 MB, free: 9.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006719/0.1691, allocations: 364.1 kB / 489.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.1702, allocations: 0.5592 MB / 489.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/0.1703, allocations: 4 kB / 489.9 MB, free: 8.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002766/0.173, allocations: 1.045 MB / 490.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.1731, allocations: 14.28 kB / 491 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.1731, allocations: 4 kB / 491 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.1744, allocations: 315.4 kB / 491.3 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005667/0.1749, allocations: 127.8 kB / 491.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008475/0.1834, allocations: 6.751 MB / 498.1 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000665/0.1841, allocations: 87.33 kB / 498.2 MB, free: 0 / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.1842, allocations: 24.11 kB / 498.3 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000679/0.1849, allocations: 353 kB / 498.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004915/0.1854, allocations: 328.1 kB / 498.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000793/0.1862, allocations: 0.4891 MB / 499.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/0.1862, allocations: 4 kB / 499.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001544/0.1878, allocations: 0.7388 MB / 0.4884 GB, free: 13.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.1878, allocations: 8 kB / 0.4884 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1878, allocations: 0 / 0.4884 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.1883, allocations: 146 kB / 0.4886 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007057/0.189, allocations: 171.8 kB / 0.4887 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.1925, allocations: 3.198 MB / 0.4919 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005514/0.1931, allocations: 67.72 kB / 0.4919 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.1931, allocations: 16 kB / 0.4919 GB, free: 10.11 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.0002883/0.1934, allocations: 218.9 kB / 0.4922 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.1936, allocations: 94.81 kB / 0.4922 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002116/0.1938, allocations: 95.16 kB / 0.4923 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.1938, allocations: 4 kB / 0.4923 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-05/0.1939, allocations: 11.98 kB / 0.4923 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1939, allocations: 0 / 0.4923 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.195, allocations: 0.7311 MB / 0.4931 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.195, allocations: 3.984 kB / 0.4931 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.1955, allocations: 115.8 kB / 0.4932 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1955, allocations: 0 / 0.4932 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.1956, allocations: 15.94 kB / 0.4932 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.1956, allocations: 4 kB / 0.4932 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1956, allocations: 0 / 0.4932 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.1975, allocations: 1.209 MB / 0.4944 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.1978, allocations: 215.9 kB / 0.4946 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/0.1979, allocations: 15.94 kB / 0.4946 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.1984, allocations: 39.95 kB / 0.4946 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.1985, allocations: 35.89 kB / 0.4947 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/0.1985, allocations: 16 kB / 0.4947 GB, free: 7.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006254/0.1992, allocations: 483 kB / 0.4951 GB, free: 6.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1992, allocations: 0 / 0.4951 GB, free: 6.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001081/0.2003, allocations: 283 kB / 0.4954 GB, free: 6.465 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.0001473/0.2004, allocations: 115.7 kB / 0.4955 GB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004236/0.2047, allocations: 1.857 MB / 0.4973 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.2047, allocations: 0 / 0.4973 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005933/0.2053, allocations: 286.2 kB / 0.4976 GB, free: 4.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.207, allocations: 226.2 kB / 0.4978 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.2102, allocations: 1.823 MB / 0.4996 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.2108, allocations: 0.9889 MB / 0.5006 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004097/0.2112, allocations: 89.34 kB / 0.5007 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.2114, allocations: 51.44 kB / 0.5007 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.2114, allocations: 0 / 0.5007 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of Templates: time 0.2466/0.458, allocations: 11.43 MB / 0.5119 GB, free: 45.45 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches