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.001134/0.001134, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001147/0.001147, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.375/1.375, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.056/0.056, allocations: 10.73 MB / 280.2 MB, free: 10.68 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.001559/0.001559, allocations: 63.91 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09261, allocations: 49.01 MB / 389.1 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.00299/0.09564, allocations: 1.685 MB / 390.7 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006566/0.09632, allocations: 314.9 kB / 391 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.09642, allocations: 7.938 kB / 391.1 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.201e-05/0.09651, allocations: 7.922 kB / 391.1 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.09664, allocations: 7.875 kB / 391.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.09711, allocations: 91.84 kB / 391.2 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.0973, allocations: 123.7 kB / 391.3 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.09742, allocations: 29.53 kB / 391.3 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.822e-05/0.0975, allocations: 47.78 kB / 391.4 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.258e-05/0.09758, allocations: 63.62 kB / 391.4 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.09762, allocations: 19.94 kB / 391.4 MB, free: 4.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.249e-05/0.0977, allocations: 43.97 kB / 391.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.09775, allocations: 27.91 kB / 391.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.09782, allocations: 59.59 kB / 391.6 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.09801, allocations: 139.5 kB / 391.7 MB, free: 3.949 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.09803, allocations: 4 kB / 391.7 MB, free: 3.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09804, allocations: 0 / 391.7 MB, free: 3.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.09805, allocations: 0 / 391.7 MB, free: 3.945 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.0006893/0.09875, allocations: 458.4 kB / 392.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.09879, allocations: 15.83 kB / 392.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.09886, allocations: 20.75 kB / 392.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.09909, allocations: 227.9 kB / 392.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.09911, allocations: 4.375 kB / 392.4 MB, free: 3.148 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.09914, allocations: 12.36 kB / 392.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.0994, allocations: 134.4 kB / 392.6 MB, free: 2.984 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.09942, allocations: 192 / 392.6 MB, free: 2.984 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.09944, allocations: 11.88 kB / 392.6 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.09945, allocations: 4 kB / 392.6 MB, free: 2.969 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001353/0.09959, allocations: 47.97 kB / 392.6 MB, free: 2.922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.1002, allocations: 416.4 kB / 393 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.1005, allocations: 114.6 kB / 393.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1006, allocations: 60.84 kB / 393.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.1006, allocations: 0 / 393.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.1008, allocations: 115.3 kB / 393.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.1009, allocations: 0 / 393.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.000432/0.1013, allocations: 193.5 kB / 393.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.295e-05/0.1014, allocations: 162.2 kB / 393.7 MB, free: 1.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.1016, allocations: 190.2 kB / 393.8 MB, free: 1.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1016, allocations: 29.7 kB / 393.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.1017, allocations: 123.9 kB / 394 MB, free: 1.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.1017, allocations: 47.53 kB / 394 MB, free: 1.363 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.34e-05/0.1018, allocations: 37.7 kB / 394.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1019, allocations: 330.8 kB / 394.4 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.102, allocations: 39.92 kB / 394.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.1021, allocations: 122.5 kB / 394.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.1023, allocations: 125.9 kB / 394.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1023, allocations: 0 / 394.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002644/0.1026, allocations: 169.1 kB / 394.8 MB, free: 496 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1026, allocations: 8 kB / 394.9 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1026, allocations: 0 / 394.9 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1027, allocations: 4 kB / 394.9 MB, free: 484 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.1028, allocations: 35.86 kB / 394.9 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1028, allocations: 8.188 kB / 394.9 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.103, allocations: 19.83 kB / 394.9 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.103, allocations: 8 kB / 394.9 MB, free: 412 kB / 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 0.0001037/0.1031, allocations: 121.8 kB / 395 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.1032, allocations: 15.81 kB / 395.1 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.729e-05/0.1032, allocations: 25.45 kB / 395.1 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1032, allocations: 7.938 kB / 395.1 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1033, allocations: 8 kB / 395.1 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1033, allocations: 0 / 395.1 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.1038, allocations: 462.5 kB / 395.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1038, allocations: 3.984 kB / 395.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.1039, allocations: 23.88 kB / 395.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1039, allocations: 3.938 kB / 395.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.104, allocations: 7.984 kB / 395.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.104, allocations: 0 / 395.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.104, allocations: 4 kB / 395.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004498/0.1044, allocations: 319.2 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.1045, allocations: 88.98 kB / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.105e-05/0.1045, allocations: 0 / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.1047, allocations: 15.98 kB / 396 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.1048, allocations: 7.984 kB / 396 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1048, allocations: 8.062 kB / 396 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.1049, allocations: 148.2 kB / 396.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1049, allocations: 0 / 396.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002947/0.1052, allocations: 39.91 kB / 396.2 MB, free: 15.02 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.000163/0.1054, allocations: 123.2 kB / 396.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002822/0.1057, allocations: 116.8 kB / 396.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1057, allocations: 4.125 kB / 396.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.1058, allocations: 51.98 kB / 396.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.1062, allocations: 44.8 kB / 396.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007764/0.107, allocations: 355.4 kB / 396.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.1072, allocations: 0.7164 MB / 397.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.511e-05/0.1073, allocations: 21.48 kB / 397.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.74e-05/0.1073, allocations: 19.44 kB / 397.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1073, allocations: 0 / 397.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Templates: time 0.004832/0.1122, allocations: 1.837 MB / 399.5 MB, free: 11.69 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)