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: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005297/0.005297, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001201/0.001201, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.453/1.453, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06017/0.06017, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.00148/0.00148, allocations: 68.45 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2549, allocations: 49.02 MB / 439.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002513/0.2574, allocations: 1.635 MB / 441 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006233/0.2581, allocations: 310.8 kB / 441.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.878e-05/0.2581, allocations: 5.031 kB / 441.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.2582, allocations: 9.141 kB / 441.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.2583, allocations: 24.94 kB / 441.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.2587, allocations: 91.58 kB / 441.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002382/0.2589, allocations: 129.8 kB / 441.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2591, allocations: 26.55 kB / 441.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.109e-05/0.2591, allocations: 47.11 kB / 441.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.925e-05/0.2592, allocations: 68.45 kB / 441.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.2593, allocations: 11 kB / 441.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.941e-05/0.2594, allocations: 41.58 kB / 441.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.413e-05/0.2594, allocations: 36.16 kB / 441.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.123e-05/0.2595, allocations: 59.97 kB / 441.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.2597, allocations: 142.4 kB / 442 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2597, allocations: 4.656 kB / 442 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2597, allocations: 0 / 442 MB, free: 3.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.2597, allocations: 5.312 kB / 442 MB, free: 3.379 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005278/0.2602, allocations: 451.3 kB / 442.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2603, allocations: 13.14 kB / 442.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.2603, allocations: 43.45 kB / 442.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.636e-05/0.2604, allocations: 21.81 kB / 442.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.2605, allocations: 229.6 kB / 442.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.2606, allocations: 13.38 kB / 442.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.2606, allocations: 6.219 kB / 442.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.2608, allocations: 135 kB / 442.9 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2608, allocations: 3.938 kB / 442.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.2609, allocations: 2.938 kB / 442.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2609, allocations: 5.141 kB / 442.9 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.261, allocations: 58.56 kB / 442.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005493/0.2616, allocations: 407.4 kB / 443.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.2618, allocations: 109.6 kB / 443.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2619, allocations: 70.44 kB / 443.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.2619, allocations: 2.531 kB / 443.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.2622, allocations: 104.5 kB / 443.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.2622, allocations: 0 / 443.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000419/0.2626, allocations: 197.5 kB / 443.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.2627, allocations: 165.6 kB / 444 MB, free: 1.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.2629, allocations: 194.4 kB / 444.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2629, allocations: 32.89 kB / 444.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.263, allocations: 116 kB / 444.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.263, allocations: 40.42 kB / 444.4 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/0.2631, allocations: 44.41 kB / 444.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.539e-05/0.2631, allocations: 331.7 kB / 444.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.525e-05/0.2632, allocations: 33.95 kB / 444.8 MB, free: 1.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.2633, allocations: 114.4 kB / 444.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.2635, allocations: 137.3 kB / 445 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2635, allocations: 0 / 445 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002512/0.2638, allocations: 166.4 kB / 445.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.2638, allocations: 9.906 kB / 445.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2638, allocations: 1.594 kB / 445.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.2638, allocations: 7.672 kB / 445.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.264, allocations: 31.72 kB / 445.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.264, allocations: 2.812 kB / 445.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.2642, allocations: 25.92 kB / 445.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.2642, allocations: 5.562 kB / 445.2 MB, free: 0.7773 MB / 318.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 8.374e-05/0.2643, allocations: 136.5 kB / 445.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.2643, allocations: 17.09 kB / 445.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.2643, allocations: 19.83 kB / 445.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2643, allocations: 5.188 kB / 445.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2644, allocations: 1.188 kB / 445.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2644, allocations: 0.7031 kB / 445.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004439/0.2648, allocations: 466.1 kB / 445.9 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2648, allocations: 4 kB / 445.9 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.2649, allocations: 30.52 kB / 445.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.265, allocations: 1.219 kB / 445.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.265, allocations: 2.422 kB / 445.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.265, allocations: 2.297 kB / 445.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.265, allocations: 0 / 445.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.2654, allocations: 312.8 kB / 446.2 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.947e-05/0.2655, allocations: 94.88 kB / 446.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.2655, allocations: 8.344 kB / 446.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.2657, allocations: 11.47 kB / 446.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.2657, allocations: 15.31 kB / 446.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.2658, allocations: 5.609 kB / 446.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.2659, allocations: 140.3 kB / 446.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2659, allocations: 3.938 kB / 446.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.2662, allocations: 37.48 kB / 446.5 MB, free: 15.81 MB / 334.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.0007489/0.2669, allocations: 0.8685 MB / 447.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.2672, allocations: 118.6 kB / 447.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2672, allocations: 1.156 kB / 447.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.2674, allocations: 55.27 kB / 447.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.2677, allocations: 39.86 kB / 447.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.2702, allocations: 2.06 MB / 449.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2705, allocations: 0.7199 MB / 450.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.907e-05/0.2706, allocations: 24.88 kB / 450.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.185e-05/0.2707, allocations: 42.28 kB / 450.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2707, allocations: 0 / 450.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.2949, allocations: 3.692 MB / 454.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.64/7.934, allocations: 4.859 kB / 454.2 MB, free: 11.01 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe 2>&1)