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.001658/0.001658, 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.002628/0.002628, allocations: 196 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 3.062/3.062, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1033/0.1033, allocations: 10.75 MB / 280.5 MB, free: 10.49 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.002726/0.002726, allocations: 67.91 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1991, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.009594/0.2087, allocations: 1.617 MB / 391.3 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2101, allocations: 326.9 kB / 391.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.2103, allocations: 0 / 391.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.5e-05/0.2104, allocations: 11.81 kB / 391.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.2106, allocations: 15.8 kB / 391.6 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006748/0.2113, allocations: 91.78 kB / 391.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.2117, allocations: 127.7 kB / 391.8 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.2119, allocations: 29.53 kB / 391.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.212, allocations: 55.66 kB / 391.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.2122, allocations: 63.69 kB / 392 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.2123, allocations: 8 kB / 392 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.2124, allocations: 51.97 kB / 392 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.516e-05/0.2125, allocations: 31.84 kB / 392.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.2126, allocations: 59.59 kB / 392.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.213, allocations: 135.8 kB / 392.3 MB, free: 3.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.213, allocations: 4 kB / 392.3 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.213, allocations: 0 / 392.3 MB, free: 3.516 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.213, allocations: 0 / 392.3 MB, free: 3.516 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.001087/0.2141, allocations: 454.7 kB / 392.7 MB, free: 3.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.928e-05/0.2142, allocations: 19.89 kB / 392.7 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.02e-05/0.2143, allocations: 34.75 kB / 392.8 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.2145, allocations: 16.75 kB / 392.8 MB, free: 2.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.2149, allocations: 235.9 kB / 393 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.2149, allocations: 8.359 kB / 393 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.377e-05/0.215, allocations: 8.375 kB / 393 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004572/0.2155, allocations: 138.3 kB / 393.2 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2155, allocations: 3.938 kB / 393.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.2155, allocations: 7.922 kB / 393.2 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2156, allocations: 4 kB / 393.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/0.2159, allocations: 51.97 kB / 393.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.217, allocations: 404.5 kB / 393.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004486/0.2175, allocations: 118.6 kB / 393.7 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.2177, allocations: 60.84 kB / 393.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.2177, allocations: 7.938 kB / 393.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.2181, allocations: 107.3 kB / 393.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 3.336e-06/0.2181, allocations: 4 kB / 393.9 MB, free: 1.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006743/0.2188, allocations: 193.4 kB / 394.1 MB, free: 1.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.2189, allocations: 162.2 kB / 394.3 MB, free: 1.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.2192, allocations: 190.2 kB / 394.5 MB, free: 1.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.2192, allocations: 29.7 kB / 394.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.2194, allocations: 124 kB / 394.6 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.2194, allocations: 43.44 kB / 394.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.2195, allocations: 45.7 kB / 394.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2197, allocations: 330.7 kB / 395 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.2198, allocations: 39.97 kB / 395.1 MB, free: 476 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.2201, allocations: 109.4 kB / 395.2 MB, free: 332 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.2204, allocations: 133.9 kB / 395.3 MB, free: 176 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2204, allocations: 0 / 395.3 MB, free: 176 kB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004379/0.2209, allocations: 161.3 kB / 395.4 MB, free: 8 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.2209, allocations: 8 kB / 395.5 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2209, allocations: 0 / 395.5 MB, free: 0 / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.021e-05/0.221, allocations: 7.984 kB / 395.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2212, allocations: 31.88 kB / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.2212, allocations: 4.188 kB / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004481/0.2257, allocations: 23.83 kB / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.723e-05/0.2259, allocations: 8 kB / 395.5 MB, free: 15.93 MB / 302.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.0003875/0.2263, allocations: 128.6 kB / 395.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.2265, allocations: 19.8 kB / 395.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.2266, allocations: 21.53 kB / 395.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.2266, allocations: 7.938 kB / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.2267, allocations: 4 kB / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.2267, allocations: 0 / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.2279, allocations: 466.3 kB / 396.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2279, allocations: 0 / 396.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.2281, allocations: 23.92 kB / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.2282, allocations: 0 / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.2282, allocations: 4.047 kB / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2282, allocations: 0 / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.2282, allocations: 7.984 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008091/0.2291, allocations: 319.2 kB / 396.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.2292, allocations: 92.89 kB / 396.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.2293, allocations: 3.938 kB / 396.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.2295, allocations: 15.98 kB / 396.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/0.2296, allocations: 7.984 kB / 396.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.2297, allocations: 16.06 kB / 396.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.2299, allocations: 144.2 kB / 396.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.2299, allocations: 0 / 396.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005415/0.2305, allocations: 32 kB / 396.8 MB, free: 14.55 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.00135/0.2318, allocations: 0.8847 MB / 397.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004728/0.2323, allocations: 115.6 kB / 397.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.2323, allocations: 0 / 397.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.2326, allocations: 55.97 kB / 397.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.2333, allocations: 29.81 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.2374, allocations: 2.057 MB / 400 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.2379, allocations: 0.7125 MB / 400.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001426/0.2381, allocations: 21.55 kB / 400.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2382, allocations: 39.42 kB / 400.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of SimCode: time 1.333e-06/0.2382, allocations: 0 / 400.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/0.3976, allocations: 3.628 MB / 404.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/15.97, allocations: 20.05 kB / 404.4 MB, free: 6.875 MB / 302.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)