Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.004422/0.004426, allocations: 95.3 kB / 15.73 MB, free: 6.484 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.001141/0.001141, allocations: 191.1 kB / 16.67 MB, free: 6.391 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.2/1.2, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002014/0.002014, allocations: 282.7 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8665/0.8665, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 100.3 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1342, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007244/0.1415, allocations: 6.733 MB / 0.7725 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.2684/0.4099, allocations: 3.011 MB / 0.7754 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005008/0.4105, allocations: 27.16 kB / 0.7755 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.4125, allocations: 0.9448 MB / 0.7764 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009054/0.4134, allocations: 0.5252 MB / 0.7769 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.4143, allocations: 431.9 kB / 0.7773 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009633/0.4152, allocations: 1.226 MB / 0.7785 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007376/0.416, allocations: 0.6635 MB / 0.7791 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.4164, allocations: 479 kB / 0.7796 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.4169, allocations: 0.526 MB / 0.7801 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.127e-05/0.417, allocations: 71.25 kB / 0.7802 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005092/0.4175, allocations: 377.4 kB / 0.7805 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.4178, allocations: 303.2 kB / 0.7808 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003247/0.4181, allocations: 451.1 kB / 0.7813 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009267/0.419, allocations: 1.216 MB / 0.7825 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.419, allocations: 0 / 0.7825 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.419, allocations: 0.9062 kB / 0.7825 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.526e-05/0.4191, allocations: 0.8438 kB / 0.7825 GB, free: 7.324 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001568/0.4206, allocations: 1.191 MB / 0.7836 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.4207, allocations: 9.219 kB / 0.7836 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.4208, allocations: 124.7 kB / 0.7837 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.4222, allocations: 242 kB / 0.784 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000809/0.4231, allocations: 0.5892 MB / 0.7846 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.4231, allocations: 57.03 kB / 0.7846 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.5e-05/0.4232, allocations: 59.88 kB / 0.7847 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.4244, allocations: 1.09 MB / 0.7857 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.4244, allocations: 6.984 kB / 0.7857 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.415e-05/0.4245, allocations: 29.77 kB / 0.7858 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.4246, allocations: 83.72 kB / 0.7858 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009161/0.4255, allocations: 0.7488 MB / 0.7866 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003929/0.4295, allocations: 5.883 MB / 0.7923 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008102/0.4303, allocations: 0.5546 MB / 0.7929 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.4307, allocations: 332.2 kB / 0.7932 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.4307, allocations: 8.688 kB / 0.7932 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.4307, allocations: 38.97 kB / 0.7932 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.483e-06/0.4307, allocations: 0 / 0.7932 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003211/0.4339, allocations: 2.002 MB / 0.7952 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.434, allocations: 55.41 kB / 0.7952 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.4345, allocations: 0.5478 MB / 0.7958 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.4345, allocations: 31.86 kB / 0.7958 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.4347, allocations: 429.7 kB / 0.7962 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.4348, allocations: 177.4 kB / 0.7964 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.4349, allocations: 128.3 kB / 0.7965 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4351, allocations: 384.4 kB / 0.7969 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.4354, allocations: 272.4 kB / 0.7971 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.4359, allocations: 491.9 kB / 0.7976 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009193/0.4369, allocations: 0.8113 MB / 0.7984 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.4369, allocations: 2.5 kB / 0.7984 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001727/0.4386, allocations: 1.088 MB / 0.7994 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.4386, allocations: 7.5 kB / 0.7995 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.4386, allocations: 7.312 kB / 0.7995 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008/0.4394, allocations: 286.7 kB / 0.7997 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.4399, allocations: 125.5 kB / 0.7999 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006209/0.4461, allocations: 7.139 MB / 0.8068 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.4466, allocations: 36.19 kB / 0.8069 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.4467, allocations: 32.03 kB / 0.8069 GB, free: 5.566 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002767/0.447, allocations: 260.3 kB / 0.8071 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.4471, allocations: 76.03 kB / 0.8072 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.4485, allocations: 0.8915 MB / 0.8081 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.4486, allocations: 4.281 kB / 0.8081 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4486, allocations: 4.219 kB / 0.8081 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.4486, allocations: 2.766 kB / 0.8081 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.4511, allocations: 1.724 MB / 0.8098 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4511, allocations: 3.25 kB / 0.8098 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.4514, allocations: 63.39 kB / 0.8098 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006922/0.4521, allocations: 270.7 kB / 0.8101 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.4521, allocations: 12.41 kB / 0.8101 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006022/0.4581, allocations: 7.132 MB / 0.8171 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4581, allocations: 2.969 kB / 0.8171 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.4596, allocations: 0.9871 MB / 0.818 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.4598, allocations: 192.9 kB / 0.8182 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.748e-05/0.4599, allocations: 9.219 kB / 0.8182 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.4603, allocations: 34.69 kB / 0.8183 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.4604, allocations: 44.81 kB / 0.8183 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/0.4605, allocations: 20.14 kB / 0.8183 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003993/0.4609, allocations: 381.5 kB / 0.8187 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4609, allocations: 0 / 0.8187 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006693/0.4615, allocations: 224 kB / 0.8189 GB, free: 12.84 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001633/0.4632, allocations: 1.545 MB / 0.8204 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001805/0.465, allocations: 1.276 MB / 0.8217 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.465, allocations: 5.219 kB / 0.8217 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.4662, allocations: 0.9016 MB / 0.8226 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.4672, allocations: 217.3 kB / 0.8228 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007856/0.4751, allocations: 6.383 MB / 0.829 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.4756, allocations: 1.006 MB / 0.83 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003485/0.476, allocations: 127.8 kB / 0.8301 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.4763, allocations: 249.5 kB / 0.8303 GB, free: 5.598 MB / 0.5919 GB Notification: Performance of SimCode: time 2.41e-07/0.4763, allocations: 0 / 0.8303 GB, free: 5.598 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04381/0.5201, allocations: 17.38 MB / 0.8473 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.286/9.806, allocations: 13.19 kB / 0.8473 GB, free: 12.38 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)