Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001441, 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.00165/0.00165, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.579/1.579, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05607/0.05607, 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.001288/0.001288, allocations: 71.83 kB / 339.9 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1195, allocations: 49.02 MB / 388.9 MB, free: 6.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003084/0.1227, allocations: 1.654 MB / 390.5 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006165/0.1233, allocations: 255.2 kB / 390.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.984e-05/0.1234, allocations: 4 kB / 390.8 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.838e-05/0.1234, allocations: 3.938 kB / 390.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.1236, allocations: 19.84 kB / 390.8 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.1238, allocations: 47.91 kB / 390.8 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000155/0.124, allocations: 103.7 kB / 390.9 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.1241, allocations: 17.44 kB / 391 MB, free: 4.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.862e-05/0.1242, allocations: 35.8 kB / 391 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.764e-05/0.1242, allocations: 55.69 kB / 391.1 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.1243, allocations: 4 kB / 391.1 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.104e-05/0.1243, allocations: 27.98 kB / 391.1 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.1244, allocations: 27.84 kB / 391.1 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.141e-05/0.1244, allocations: 47.72 kB / 391.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.1246, allocations: 111.6 kB / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1246, allocations: 0 / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1246, allocations: 0 / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1247, allocations: 0 / 391.3 MB, free: 4.297 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006493/0.1253, allocations: 426.7 kB / 391.7 MB, free: 3.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1254, allocations: 11.97 kB / 391.7 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.507e-05/0.1254, allocations: 16.75 kB / 391.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.1256, allocations: 212.7 kB / 391.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.1257, allocations: 8.375 kB / 391.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.1257, allocations: 8.375 kB / 391.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.1259, allocations: 86.2 kB / 392 MB, free: 3.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1259, allocations: 192 / 392 MB, free: 3.453 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.126, allocations: 3.938 kB / 392 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.126, allocations: 4 kB / 392 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.1261, allocations: 47.91 kB / 392.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.1267, allocations: 380.5 kB / 392.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.127, allocations: 102.6 kB / 392.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1271, allocations: 64.77 kB / 392.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1271, allocations: 8 kB / 392.6 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.1274, allocations: 99.34 kB / 392.7 MB, free: 2.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.1274, allocations: 0 / 392.7 MB, free: 2.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004464/0.1278, allocations: 185.4 kB / 392.9 MB, free: 2.496 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.1279, allocations: 55.41 kB / 393 MB, free: 2.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1281, allocations: 171.3 kB / 393.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.1281, allocations: 33.7 kB / 393.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.318e-05/0.1282, allocations: 108 kB / 393.3 MB, free: 2.102 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.1283, allocations: 43.58 kB / 393.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/0.1284, allocations: 37.7 kB / 393.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.1286, allocations: 330.8 kB / 393.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.62e-05/0.1287, allocations: 27.98 kB / 393.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.1288, allocations: 85.94 kB / 393.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.129, allocations: 121.9 kB / 393.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1291, allocations: 7.984 kB / 393.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002686/0.1293, allocations: 153.9 kB / 394 MB, free: 1.246 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1294, allocations: 8 kB / 394.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1294, allocations: 3.984 kB / 394.1 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1294, allocations: 4.188 kB / 394.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.1296, allocations: 35.92 kB / 394.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1296, allocations: 0 / 394.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.1296, allocations: 19.84 kB / 394.1 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.1297, allocations: 4 kB / 394.1 MB, free: 1.172 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,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 0.0001335/0.1298, allocations: 129.7 kB / 394.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.1298, allocations: 11.81 kB / 394.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.967e-05/0.1299, allocations: 21.52 kB / 394.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.1299, allocations: 4 kB / 394.3 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.1299, allocations: 4 kB / 394.3 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1299, allocations: 0 / 394.3 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005304/0.1305, allocations: 446.4 kB / 394.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1305, allocations: 0 / 394.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.086e-05/0.1306, allocations: 20 kB / 394.7 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1306, allocations: 0 / 394.7 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1306, allocations: 7.984 kB / 394.8 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1306, allocations: 4 kB / 394.8 MB, free: 484 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1306, allocations: 3.938 kB / 394.8 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/0.131, allocations: 295.2 kB / 395 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.1311, allocations: 89.03 kB / 395.1 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.1311, allocations: 3.938 kB / 395.1 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.447e-05/0.1312, allocations: 8 kB / 395.1 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.1313, allocations: 15.86 kB / 395.2 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.1313, allocations: 8.062 kB / 395.2 MB, free: 24 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.1315, allocations: 127.9 kB / 395.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1315, allocations: 0 / 395.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.1318, allocations: 28 kB / 395.3 MB, free: 15.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0001573/0.132, allocations: 103.2 kB / 395.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002649/0.1322, allocations: 108.1 kB / 395.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1322, allocations: 4.062 kB / 395.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1324, allocations: 43.98 kB / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.1327, allocations: 33.55 kB / 395.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008428/0.1336, allocations: 313.4 kB / 395.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1339, allocations: 0.7049 MB / 396.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.882e-05/0.1339, allocations: 21.41 kB / 396.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.134, allocations: 15.44 kB / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.134, allocations: 0 / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Templates: time 0.003893/0.1379, allocations: 1.281 MB / 397.9 MB, free: 13.2 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)