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.001442, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001785/0.001786, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.468/1.468, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05837/0.05837, allocations: 10.73 MB / 281.3 MB, free: 1.289 MB / 222.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.001383/0.001383, allocations: 67.23 kB / 391.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07767/0.07906, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002133/0.08124, allocations: 1.584 MB / 442.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004545/0.08171, allocations: 255.1 kB / 442.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.389e-05/0.08177, allocations: 0 / 442.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.968e-05/0.08181, allocations: 7.875 kB / 442.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.671e-05/0.08191, allocations: 23.78 kB / 442.4 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.08216, allocations: 67.81 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.08231, allocations: 99.75 kB / 442.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.08243, allocations: 17.44 kB / 442.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.932e-05/0.08247, allocations: 47.72 kB / 442.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.044e-05/0.08254, allocations: 47.77 kB / 442.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.08256, allocations: 8 kB / 442.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.273e-05/0.08263, allocations: 31.92 kB / 442.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.08266, allocations: 39.84 kB / 442.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.639e-05/0.0827, allocations: 47.66 kB / 442.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.08283, allocations: 115.6 kB / 442.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.08284, allocations: 3.938 kB / 442.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08285, allocations: 0 / 442.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.08286, allocations: 0 / 442.9 MB, free: 1.422 MB / 318.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.0004448/0.08331, allocations: 422.9 kB / 443.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.08335, allocations: 11.89 kB / 443.3 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.08339, allocations: 16.84 kB / 443.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.08354, allocations: 212 kB / 443.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.08356, allocations: 8.375 kB / 443.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.08359, allocations: 8.281 kB / 443.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.08376, allocations: 93.38 kB / 443.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.08378, allocations: 4.188 kB / 443.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.0838, allocations: 7.938 kB / 443.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.0838, allocations: 0 / 443.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.08392, allocations: 47.97 kB / 443.7 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005081/0.08444, allocations: 384.5 kB / 444.1 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.08465, allocations: 98.64 kB / 444.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.08478, allocations: 56.83 kB / 444.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.0848, allocations: 4 kB / 444.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.08501, allocations: 110 kB / 444.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.452e-06/0.08502, allocations: 0 / 444.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004034/0.08543, allocations: 181.5 kB / 444.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.08548, allocations: 55.41 kB / 444.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.08564, allocations: 171.2 kB / 444.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.08567, allocations: 33.7 kB / 444.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.08576, allocations: 112.1 kB / 444.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.0858, allocations: 43.44 kB / 444.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.143e-05/0.08585, allocations: 37.7 kB / 445 MB, free: 15.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.08598, allocations: 330.8 kB / 445.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.481e-05/0.08606, allocations: 27.98 kB / 445.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.08618, allocations: 89.19 kB / 445.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.08636, allocations: 121.9 kB / 445.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.08637, allocations: 3.938 kB / 445.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002524/0.08663, allocations: 168.9 kB / 445.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.08665, allocations: 7.938 kB / 445.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.08667, allocations: 7.984 kB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.08668, allocations: 3.984 kB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.08682, allocations: 28.19 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.08684, allocations: 7.922 kB / 445.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.726e-05/0.08691, allocations: 15.91 kB / 445.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.08693, allocations: 4 kB / 445.8 MB, free: 14.29 MB / 334.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.0001019/0.08703, allocations: 131.8 kB / 445.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.08706, allocations: 7.906 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.08711, allocations: 21.52 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.08712, allocations: 7.984 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.08713, allocations: 4 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.08714, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/0.08761, allocations: 438.3 kB / 446.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.08762, allocations: 4 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.144e-05/0.08772, allocations: 12 kB / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.08773, allocations: 0 / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.08775, allocations: 7.984 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.08776, allocations: 0 / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.08777, allocations: 7.875 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003861/0.08816, allocations: 291.4 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.08822, allocations: 92.94 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.08825, allocations: 0 / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8e-05/0.08833, allocations: 12 kB / 446.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.149e-05/0.0884, allocations: 11.92 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.08843, allocations: 4 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.501e-05/0.08853, allocations: 124 kB / 446.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08854, allocations: 0 / 446.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000266/0.08881, allocations: 31.98 kB / 447 MB, free: 13 MB / 334.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.0001317/0.08895, allocations: 115.2 kB / 447.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002325/0.08919, allocations: 99.89 kB / 447.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.0892, allocations: 384 / 447.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.08931, allocations: 55.8 kB / 447.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.08965, allocations: 37.55 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006851/0.09034, allocations: 313.2 kB / 447.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.09062, allocations: 0.7124 MB / 448.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.09066, allocations: 15.44 kB / 448.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09067, allocations: 0 / 448.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of Templates: time 0.003384/0.09406, allocations: 1.667 MB / 450 MB, free: 9.93 MB / 334.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)