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.00116/0.00116, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.411/1.411, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0576/0.0576, allocations: 10.73 MB / 280.5 MB, free: 10.5 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.001526/0.001526, allocations: 75.83 kB / 340.5 MB, free: 23.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1012, allocations: 49.02 MB / 389.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003547/0.1049, allocations: 1.586 MB / 391.1 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008591/0.1058, allocations: 255.1 kB / 391.4 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1059, allocations: 0 / 391.4 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.969e-05/0.106, allocations: 11.86 kB / 391.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1061, allocations: 19.81 kB / 391.4 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.1066, allocations: 67.8 kB / 391.5 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.1069, allocations: 103.6 kB / 391.6 MB, free: 4.199 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.107, allocations: 25.42 kB / 391.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.98e-05/0.1071, allocations: 31.86 kB / 391.6 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.958e-05/0.1072, allocations: 67.62 kB / 391.7 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.1072, allocations: 8 kB / 391.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.1073, allocations: 31.98 kB / 391.7 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.559e-05/0.1074, allocations: 23.92 kB / 391.8 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.841e-05/0.1075, allocations: 47.66 kB / 391.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.1077, allocations: 107.6 kB / 391.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1077, allocations: 4 kB / 391.9 MB, free: 3.859 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1077, allocations: 0 / 391.9 MB, free: 3.859 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1077, allocations: 3.984 kB / 391.9 MB, free: 3.855 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.0007357/0.1085, allocations: 419.2 kB / 392.3 MB, free: 3.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1085, allocations: 15.89 kB / 392.4 MB, free: 3.379 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.1086, allocations: 12.75 kB / 392.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.1089, allocations: 224.6 kB / 392.6 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1089, allocations: 8.375 kB / 392.6 MB, free: 3.102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.1089, allocations: 4.375 kB / 392.6 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.1092, allocations: 94 kB / 392.7 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1092, allocations: 192 / 392.7 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.1092, allocations: 7.938 kB / 392.7 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1092, allocations: 4 kB / 392.7 MB, free: 2.992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.1093, allocations: 47.97 kB / 392.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.11, allocations: 376.5 kB / 393.1 MB, free: 2.527 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.1102, allocations: 110.6 kB / 393.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1103, allocations: 60.77 kB / 393.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1103, allocations: 0 / 393.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.1106, allocations: 99.36 kB / 393.4 MB, free: 2.238 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.784e-06/0.1106, allocations: 0 / 393.4 MB, free: 2.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.000415/0.111, allocations: 193.4 kB / 393.6 MB, free: 2.043 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.1111, allocations: 59.34 kB / 393.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.1113, allocations: 172.5 kB / 393.8 MB, free: 1.793 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1113, allocations: 29.7 kB / 393.8 MB, free: 1.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.442e-05/0.1114, allocations: 112 kB / 393.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.1114, allocations: 35.59 kB / 394 MB, free: 1.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.1115, allocations: 41.64 kB / 394 MB, free: 1.562 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1116, allocations: 334.8 kB / 394.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.691e-05/0.1117, allocations: 31.98 kB / 394.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.1118, allocations: 85.38 kB / 394.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.112, allocations: 121.9 kB / 394.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.112, allocations: 0 / 394.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002638/0.1123, allocations: 161.4 kB / 394.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1123, allocations: 4 kB / 394.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1123, allocations: 4 kB / 394.7 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1123, allocations: 4 kB / 394.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.1125, allocations: 31.92 kB / 394.8 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1125, allocations: 4 kB / 394.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.1126, allocations: 15.83 kB / 394.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1126, allocations: 8 kB / 394.8 MB, free: 0.7188 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.0001071/0.1127, allocations: 136.6 kB / 394.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1127, allocations: 15.81 kB / 394.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.1128, allocations: 17.52 kB / 395 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1128, allocations: 0 / 395 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1128, allocations: 0 / 395 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1128, allocations: 0 / 395 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004703/0.1133, allocations: 438.4 kB / 395.4 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1133, allocations: 0 / 395.4 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.706e-05/0.1134, allocations: 27.92 kB / 395.4 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1134, allocations: 4 kB / 395.4 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1134, allocations: 0 / 395.4 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.1134, allocations: 7.984 kB / 395.4 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.1134, allocations: 7.938 kB / 395.4 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/0.1139, allocations: 280.2 kB / 395.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.1139, allocations: 89.03 kB / 395.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.114, allocations: 12.06 kB / 395.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.114, allocations: 0 / 395.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.1141, allocations: 19.86 kB / 395.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.1141, allocations: 7.938 kB / 395.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.222e-05/0.1142, allocations: 124 kB / 396 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1142, allocations: 0 / 396 MB, free: 15.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.1145, allocations: 31.98 kB / 396 MB, free: 15.43 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.0001384/0.1146, allocations: 111.2 kB / 396.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.1149, allocations: 111.8 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1149, allocations: 3.938 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.115, allocations: 47.98 kB / 396.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.1153, allocations: 31.91 kB / 396.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007426/0.1161, allocations: 287.7 kB / 396.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.1164, allocations: 0.7123 MB / 397.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.362e-05/0.1165, allocations: 13.42 kB / 397.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.1165, allocations: 23.42 kB / 397.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1166, allocations: 0 / 397.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of Templates: time 0.004372/0.1209, allocations: 1.356 MB / 398.7 MB, free: 12.68 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)