Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001486/0.001486, allocations: 192.3 kB / 16.13 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.1 MB / 222 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05466/0.05466, allocations: 10.74 MB / 280.1 MB, free: 10.72 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002412/0.002412, allocations: 63.91 kB / 339.8 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1248, allocations: 49.02 MB / 388.9 MB, free: 6.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002757/0.1275, allocations: 1.693 MB / 390.6 MB, free: 5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006096/0.1282, allocations: 323 kB / 390.9 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.1282, allocations: 3.938 kB / 390.9 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.006e-05/0.1283, allocations: 7.875 kB / 390.9 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.1284, allocations: 11.92 kB / 390.9 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.1287, allocations: 79.88 kB / 391 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.1289, allocations: 115.7 kB / 391.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.129, allocations: 21.56 kB / 391.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.237e-05/0.1291, allocations: 51.7 kB / 391.2 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.893e-05/0.1292, allocations: 63.62 kB / 391.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.1292, allocations: 8 kB / 391.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.1293, allocations: 39.91 kB / 391.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.538e-05/0.1293, allocations: 27.91 kB / 391.3 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.413e-05/0.1294, allocations: 59.59 kB / 391.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.1296, allocations: 127.6 kB / 391.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1296, allocations: 0 / 391.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1296, allocations: 0 / 391.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1296, allocations: 0 / 391.5 MB, free: 4.078 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005966/0.1302, allocations: 462.5 kB / 391.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.1302, allocations: 12.02 kB / 391.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.252e-05/0.1303, allocations: 20.69 kB / 392 MB, free: 3.547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.1305, allocations: 231.8 kB / 392.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1305, allocations: 8.375 kB / 392.2 MB, free: 3.273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.1305, allocations: 8.375 kB / 392.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.1308, allocations: 138.4 kB / 392.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.1308, allocations: 192 / 392.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.1308, allocations: 11.94 kB / 392.3 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1308, allocations: 0 / 392.3 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.131, allocations: 55.91 kB / 392.4 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005827/0.1316, allocations: 412.5 kB / 392.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.1318, allocations: 110.6 kB / 392.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.1319, allocations: 60.83 kB / 393 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1319, allocations: 0 / 393 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/0.1321, allocations: 115.4 kB / 393.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1322, allocations: 0 / 393.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004088/0.1326, allocations: 205.4 kB / 393.3 MB, free: 2.078 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.37e-05/0.1327, allocations: 158.2 kB / 393.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.1328, allocations: 186.1 kB / 393.6 MB, free: 1.695 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1329, allocations: 33.7 kB / 393.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/0.1329, allocations: 123.9 kB / 393.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.133, allocations: 47.52 kB / 393.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.133, allocations: 41.7 kB / 393.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1331, allocations: 334.8 kB / 394.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.611e-05/0.1332, allocations: 31.98 kB / 394.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.1334, allocations: 117.3 kB / 394.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.1335, allocations: 129.7 kB / 394.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1336, allocations: 0 / 394.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002431/0.1338, allocations: 165.3 kB / 394.6 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1338, allocations: 7.938 kB / 394.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1338, allocations: 7.984 kB / 394.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1339, allocations: 0 / 394.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.134, allocations: 40.11 kB / 394.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.134, allocations: 4 kB / 394.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.1342, allocations: 15.89 kB / 394.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1342, allocations: 11.98 kB / 394.7 MB, free: 0.5234 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,ll_dig_TU.y,$PRE.ll_dig_TU.y,ll_dig_FE.y,$PRE.ll_dig_FE.y,ll_dig_BE.y,$PRE.ll_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 9.69e-05/0.1343, allocations: 137.8 kB / 394.8 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.1343, allocations: 15.81 kB / 394.9 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.899e-05/0.1344, allocations: 17.53 kB / 394.9 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.1344, allocations: 7.938 kB / 394.9 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1344, allocations: 0 / 394.9 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1344, allocations: 3.984 kB / 394.9 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.1349, allocations: 462.4 kB / 395.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1349, allocations: 0 / 395.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.135, allocations: 19.98 kB / 395.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.135, allocations: 3.938 kB / 395.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.1351, allocations: 11.94 kB / 395.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1351, allocations: 4 kB / 395.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1351, allocations: 0 / 395.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.1355, allocations: 315.8 kB / 395.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.1355, allocations: 92.97 kB / 395.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.1356, allocations: 8 kB / 395.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.1358, allocations: 7.984 kB / 395.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.1358, allocations: 12.06 kB / 395.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.1358, allocations: 7.984 kB / 395.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1359, allocations: 140.3 kB / 396 MB, free: 15.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1359, allocations: 3.938 kB / 396 MB, free: 15.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.1362, allocations: 47.89 kB / 396 MB, free: 15.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (ll.dy) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,ll_dig_BE.y,ll_dig_FE.y,ll_dig_TU.y) * Number of discrete states: 6 (ll_dig_TU.u,ll_dig_TU.y,ll_dig_FE.u,ll_dig_FE.y,ll_dig_BE.u,ll_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001235/0.1363, allocations: 107.2 kB / 396.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002459/0.1366, allocations: 124 kB / 396.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1366, allocations: 0 / 396.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.1367, allocations: 55.91 kB / 396.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.137, allocations: 35.86 kB / 396.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000702/0.1377, allocations: 337.5 kB / 396.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.138, allocations: 0.7167 MB / 397.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.006e-05/0.1381, allocations: 21.48 kB / 397.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.1381, allocations: 19.44 kB / 397.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1381, allocations: 4 kB / 397.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Templates: time 0.004137/0.1423, allocations: 1.752 MB / 399.2 MB, free: 11.91 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe 2>&1)