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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.007918/0.007918, allocations: 98.42 kB / 15.73 MB, free: 5.602 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.001907/0.001907, allocations: 196.1 kB / 16.68 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1578/0.1578, allocations: 11.18 MB / 301.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 63.83 kB / 417.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2342, allocations: 51.98 MB / 469.3 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002602/0.2369, allocations: 1.632 MB / 470.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006307/0.2375, allocations: 318.7 kB / 471.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-05/0.2376, allocations: 1.125 kB / 471.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.952e-05/0.2377, allocations: 12.75 kB / 471.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.2378, allocations: 20.95 kB / 471.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.2381, allocations: 84.52 kB / 471.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.2383, allocations: 135.2 kB / 471.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2384, allocations: 20.19 kB / 471.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.593e-05/0.2385, allocations: 55.34 kB / 471.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.312e-05/0.2386, allocations: 68.42 kB / 471.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.2386, allocations: 11.75 kB / 471.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.694e-05/0.2387, allocations: 40.17 kB / 471.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.653e-05/0.2388, allocations: 35.89 kB / 471.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.2388, allocations: 56.39 kB / 471.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.2391, allocations: 147.6 kB / 471.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2391, allocations: 0.8438 kB / 471.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2391, allocations: 0 / 471.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.2391, allocations: 0 / 471.9 MB, free: 15.04 MB / 350.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.0005717/0.2397, allocations: 459.8 kB / 472.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2397, allocations: 13.94 kB / 472.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.337e-05/0.2398, allocations: 40.66 kB / 472.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.2398, allocations: 16.56 kB / 472.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.24, allocations: 234.1 kB / 472.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.2401, allocations: 8 kB / 472.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.2401, allocations: 14.64 kB / 472.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.2403, allocations: 143 kB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2403, allocations: 3.938 kB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.2404, allocations: 3.938 kB / 472.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2404, allocations: 2.031 kB / 472.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.2405, allocations: 54.22 kB / 472.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.2411, allocations: 407.9 kB / 473.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.2413, allocations: 114.8 kB / 473.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.2414, allocations: 62 kB / 473.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.2415, allocations: 5.719 kB / 473.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.2417, allocations: 112.5 kB / 473.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.704e-06/0.2417, allocations: 0 / 473.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004112/0.2422, allocations: 201.3 kB / 473.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.2422, allocations: 165.7 kB / 474 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.2424, allocations: 182.9 kB / 474.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2424, allocations: 32.45 kB / 474.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.2424, allocations: 123.7 kB / 474.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.2425, allocations: 40.53 kB / 474.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.2425, allocations: 44.5 kB / 474.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.625e-05/0.2426, allocations: 328.1 kB / 474.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.284e-05/0.2427, allocations: 39.78 kB / 474.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.2428, allocations: 114.3 kB / 474.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.243, allocations: 136 kB / 475 MB, free: 12.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.243, allocations: 1.375 kB / 475 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002381/0.2432, allocations: 162.4 kB / 475.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2433, allocations: 5.312 kB / 475.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2433, allocations: 2.688 kB / 475.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.2433, allocations: 6.844 kB / 475.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.2434, allocations: 35.45 kB / 475.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.2435, allocations: 6.422 kB / 475.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.2436, allocations: 23.5 kB / 475.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.2436, allocations: 5.781 kB / 475.2 MB, free: 12.4 MB / 350.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.378e-05/0.2437, allocations: 136.7 kB / 475.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.2438, allocations: 16.19 kB / 475.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.2438, allocations: 17.44 kB / 475.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.2438, allocations: 13.47 kB / 475.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2438, allocations: 1.094 kB / 475.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2438, allocations: 0 / 475.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.2443, allocations: 468.3 kB / 475.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2443, allocations: 0 / 475.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2444, allocations: 23.23 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2444, allocations: 1.312 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2444, allocations: 1.531 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.2444, allocations: 5.562 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2444, allocations: 4 kB / 475.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003889/0.2448, allocations: 316.4 kB / 476.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.115e-05/0.2449, allocations: 94.52 kB / 476.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.2449, allocations: 9.547 kB / 476.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.2451, allocations: 5.281 kB / 476.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.2451, allocations: 9 kB / 476.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.2452, allocations: 15.64 kB / 476.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.54e-05/0.2452, allocations: 141.8 kB / 476.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2453, allocations: 0 / 476.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.2456, allocations: 36.12 kB / 476.5 MB, free: 11.33 MB / 350.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.0005468/0.2461, allocations: 0.878 MB / 477.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002446/0.2464, allocations: 106.4 kB / 477.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2464, allocations: 1.312 kB / 477.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.2465, allocations: 52.36 kB / 477.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.2468, allocations: 42.72 kB / 477.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.2488, allocations: 2.055 MB / 479.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.2489, allocations: 0.7163 MB / 480.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.954e-05/0.249, allocations: 16.2 kB / 480.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/0.2491, allocations: 45.92 kB / 480.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2491, allocations: 0 / 480.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.2755, allocations: 3.684 MB / 484.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.521, allocations: 8.891 kB / 484.1 MB, free: 6.215 MB / 350.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)