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: "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 100 kB / 17.63 MB, free: 5.523 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.001748/0.001748, allocations: 192.1 kB / 18.56 MB, free: 4.602 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.39/1.39, allocations: 222.9 MB / 242.3 MB, free: 15.27 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.2247/0.2247, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 65.78 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1292, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006246/0.1354, allocations: 4.364 MB / 473.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004058/0.1395, allocations: 1.562 MB / 475.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.1409, allocations: 35.81 kB / 475.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007685/0.1417, allocations: 154.3 kB / 475.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.1429, allocations: 170.2 kB / 475.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001912/0.1448, allocations: 0.5819 MB / 476.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.1466, allocations: 1.027 MB / 477.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009466/0.1476, allocations: 435.1 kB / 477.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006208/0.1482, allocations: 366.3 kB / 478 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004205/0.1486, allocations: 385.7 kB / 478.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.1488, allocations: 88 kB / 478.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.1489, allocations: 88 kB / 478.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.1491, allocations: 203.1 kB / 478.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.1494, allocations: 441.2 kB / 479.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009972/0.1505, allocations: 0.9811 MB / 480.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1505, allocations: 0 / 480.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1505, allocations: 0 / 480.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.1505, allocations: 3.984 kB / 480.2 MB, free: 3.402 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.002112/0.1526, allocations: 1.296 MB / 481.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.1527, allocations: 12.03 kB / 481.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.1528, allocations: 102.7 kB / 481.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.153, allocations: 115.6 kB / 481.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.1538, allocations: 0.6241 MB / 482.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.424e-05/0.1539, allocations: 45.69 kB / 482.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.154, allocations: 64.38 kB / 482.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.1552, allocations: 0.7429 MB / 483.2 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.1553, allocations: 4 kB / 483.2 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.1553, allocations: 20 kB / 483.2 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.1554, allocations: 16 kB / 483.2 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1565, allocations: 0.5464 MB / 483.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003385/0.1599, allocations: 2.714 MB / 486.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.1613, allocations: 0.6748 MB / 487.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000538/0.1618, allocations: 287.3 kB / 487.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.443e-05/0.1619, allocations: 4 kB / 487.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.1619, allocations: 42.56 kB / 487.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.244e-06/0.1619, allocations: 3.938 kB / 487.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001844/0.1638, allocations: 0.7957 MB / 488.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/0.1639, allocations: 247.2 kB / 488.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007867/0.1647, allocations: 0.6967 MB / 489.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.1648, allocations: 41.64 kB / 489.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.1651, allocations: 432.4 kB / 489.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.1653, allocations: 177.4 kB / 489.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.1655, allocations: 110.1 kB / 490 MB, free: 9.223 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1656, allocations: 330 kB / 490.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/0.1661, allocations: 227 kB / 490.5 MB, free: 8.672 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006166/0.1668, allocations: 364 kB / 490.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.1679, allocations: 0.5551 MB / 491.4 MB, free: 7.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1679, allocations: 3.938 kB / 491.4 MB, free: 7.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002652/0.1705, allocations: 1.049 MB / 492.5 MB, free: 6.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1706, allocations: 4 kB / 492.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1706, allocations: 4 kB / 492.5 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.1718, allocations: 319.2 kB / 492.8 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005451/0.1724, allocations: 127.8 kB / 492.9 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00927/0.1816, allocations: 7.259 MB / 0.4884 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.1823, allocations: 79.34 kB / 0.4885 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.1824, allocations: 28.05 kB / 0.4885 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007006/0.1831, allocations: 345.1 kB / 0.4889 GB, free: 13.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004945/0.1836, allocations: 326.6 kB / 0.4892 GB, free: 13.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008672/0.1845, allocations: 0.5014 MB / 0.4897 GB, free: 12.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.275e-06/0.1845, allocations: 0 / 0.4897 GB, free: 12.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001623/0.1861, allocations: 0.7391 MB / 0.4904 GB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.1861, allocations: 4 kB / 0.4904 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1861, allocations: 4 kB / 0.4904 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005153/0.1867, allocations: 142 kB / 0.4905 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/0.1874, allocations: 183.8 kB / 0.4907 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004138/0.1916, allocations: 3.423 MB / 0.4941 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005266/0.1921, allocations: 71.5 kB / 0.4941 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.1922, allocations: 16 kB / 0.4941 GB, free: 8.098 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.0003007/0.1925, allocations: 216.1 kB / 0.4943 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000312/0.1928, allocations: 90.88 kB / 0.4944 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002445/0.193, allocations: 99.14 kB / 0.4945 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1931, allocations: 4 kB / 0.4945 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1931, allocations: 8 kB / 0.4945 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1931, allocations: 0 / 0.4945 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.1944, allocations: 0.735 MB / 0.4953 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.1945, allocations: 0 / 0.4953 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/0.195, allocations: 115.8 kB / 0.4954 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.195, allocations: 3.938 kB / 0.4954 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.1951, allocations: 12 kB / 0.4954 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1951, allocations: 4 kB / 0.4954 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1951, allocations: 4 kB / 0.4954 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.1972, allocations: 1.209 MB / 0.4966 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.1976, allocations: 215.8 kB / 0.4968 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.1977, allocations: 8 kB / 0.4968 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.1982, allocations: 43.95 kB / 0.4968 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1983, allocations: 35.89 kB / 0.4969 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.1984, allocations: 16 kB / 0.4969 GB, free: 5.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008492/0.1992, allocations: 487 kB / 0.4973 GB, free: 4.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1992, allocations: 0 / 0.4973 GB, free: 4.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001196/0.2004, allocations: 279.1 kB / 0.4976 GB, free: 4.457 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.002363/0.2028, allocations: 1.766 MB / 0.4993 GB, free: 2.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/0.2072, allocations: 1.897 MB / 0.5012 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.2072, allocations: 0 / 0.5012 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005928/0.2078, allocations: 283.1 kB / 0.5015 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.2094, allocations: 244.8 kB / 0.5017 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2581/0.4675, allocations: 7.554 MB / 0.5091 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006716/0.4682, allocations: 0.9841 MB / 0.51 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000564/0.4688, allocations: 88.72 kB / 0.5101 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004126/0.4692, allocations: 324.1 kB / 0.5104 GB, free: 44.4 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4692, allocations: 0 / 0.5104 GB, free: 44.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0503/0.5195, allocations: 20.06 MB / 0.53 GB, free: 34.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.8, allocations: 3.938 kB / 0.53 GB, free: 34.04 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.csv","/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_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches