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.007498/0.007498, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002046/0.002046, allocations: 195.9 kB / 16.68 MB, free: 5.934 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 299.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.158/1.158, allocations: 178.5 MB / 0.5074 GB, free: 12.67 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00298/0.00298, allocations: 107.8 kB / 0.6943 GB, free: 15.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3795, allocations: 89.11 MB / 0.7813 GB, free: 1.18 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008058/0.3876, allocations: 6.74 MB / 0.7879 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004748/0.3923, allocations: 3.029 MB / 0.7909 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003185/0.3927, allocations: 27.12 kB / 0.7909 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002319/0.395, allocations: 0.9554 MB / 0.7918 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.396, allocations: 0.4955 MB / 0.7923 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009241/0.397, allocations: 428.5 kB / 0.7927 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001198/0.3982, allocations: 1.222 MB / 0.7939 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008543/0.3991, allocations: 0.6574 MB / 0.7946 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000555/0.3996, allocations: 478.2 kB / 0.795 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000642/0.4003, allocations: 0.5199 MB / 0.7955 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.883e-05/0.4004, allocations: 67.44 kB / 0.7956 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006681/0.4011, allocations: 372.2 kB / 0.7959 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000297/0.4014, allocations: 308 kB / 0.7962 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.4018, allocations: 453.2 kB / 0.7967 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.4031, allocations: 1.222 MB / 0.7979 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4031, allocations: 0 / 0.7979 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.093e-06/0.4031, allocations: 0 / 0.7979 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.573e-05/0.4031, allocations: 0 / 0.7979 GB, free: 4.953 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.001802/0.4049, allocations: 1.182 MB / 0.799 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.405, allocations: 13.56 kB / 0.799 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.4051, allocations: 126 kB / 0.7991 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0015/0.4066, allocations: 235.5 kB / 0.7994 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008668/0.4075, allocations: 0.5947 MB / 0.8 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.4076, allocations: 50.42 kB / 0.8 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.793e-05/0.4077, allocations: 66.98 kB / 0.8001 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.4092, allocations: 1.086 MB / 0.8011 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.4092, allocations: 7.031 kB / 0.8011 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-05/0.4093, allocations: 30.89 kB / 0.8012 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.4095, allocations: 87.81 kB / 0.8012 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.4107, allocations: 0.7496 MB / 0.802 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.4161, allocations: 5.886 MB / 0.8077 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009861/0.4171, allocations: 0.5574 MB / 0.8083 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000454/0.4176, allocations: 332.4 kB / 0.8086 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.4176, allocations: 5.656 kB / 0.8086 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.4177, allocations: 38.84 kB / 0.8086 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.934e-06/0.4177, allocations: 0 / 0.8086 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003964/0.4217, allocations: 2.004 MB / 0.8106 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.4217, allocations: 55.84 kB / 0.8106 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006228/0.4223, allocations: 0.5548 MB / 0.8112 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.4224, allocations: 33.7 kB / 0.8112 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002927/0.4227, allocations: 424 kB / 0.8116 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.4228, allocations: 178.5 kB / 0.8118 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.4231, allocations: 138.5 kB / 0.8119 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4232, allocations: 370.7 kB / 0.8123 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.4237, allocations: 277.8 kB / 0.8125 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005888/0.4243, allocations: 496.9 kB / 0.813 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.4254, allocations: 0.8093 MB / 0.8138 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4254, allocations: 4 kB / 0.8138 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001857/0.4272, allocations: 1.083 MB / 0.8149 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4273, allocations: 11.98 kB / 0.8149 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4273, allocations: 8 kB / 0.8149 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008455/0.4281, allocations: 284 kB / 0.8152 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.4286, allocations: 131.7 kB / 0.8153 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/0.4356, allocations: 7.13 MB / 0.8222 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.4361, allocations: 39.95 kB / 0.8223 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.4362, allocations: 32 kB / 0.8223 GB, free: 13.18 MB / 0.5919 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.0003269/0.4365, allocations: 253.6 kB / 0.8226 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.4366, allocations: 75.53 kB / 0.8226 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001679/0.4383, allocations: 0.8964 MB / 0.8235 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.4384, allocations: 4 kB / 0.8235 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.4384, allocations: 8 kB / 0.8235 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4384, allocations: 0 / 0.8235 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.441, allocations: 1.725 MB / 0.8252 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.441, allocations: 0 / 0.8252 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002732/0.4413, allocations: 63.89 kB / 0.8253 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007564/0.4421, allocations: 271.4 kB / 0.8255 GB, free: 9.762 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.4421, allocations: 4 kB / 0.8255 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006951/0.4491, allocations: 7.126 MB / 0.8325 GB, free: 2.07 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4491, allocations: 0 / 0.8325 GB, free: 2.07 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.4507, allocations: 0.9917 MB / 0.8334 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.451, allocations: 196.6 kB / 0.8336 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.4511, allocations: 11.94 kB / 0.8336 GB, free: 0.8125 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.4515, allocations: 31.97 kB / 0.8337 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.4516, allocations: 48.02 kB / 0.8337 GB, free: 0.7344 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.4516, allocations: 20.12 kB / 0.8337 GB, free: 0.7148 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004493/0.4521, allocations: 383.1 kB / 0.8341 GB, free: 356 kB / 0.5919 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4521, allocations: 0 / 0.8341 GB, free: 356 kB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007853/0.4529, allocations: 224 kB / 0.8343 GB, free: 132 kB / 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.001931/0.4548, allocations: 1.548 MB / 0.8358 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002032/0.4569, allocations: 1.272 MB / 0.8371 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4569, allocations: 0 / 0.8371 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.4582, allocations: 0.9009 MB / 0.838 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.4592, allocations: 221 kB / 0.8382 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00868/0.4679, allocations: 6.382 MB / 0.8444 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006588/0.4686, allocations: 1.009 MB / 0.8454 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003594/0.469, allocations: 126 kB / 0.8455 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003296/0.4693, allocations: 247.4 kB / 0.8457 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/0.4693, allocations: 4 kB / 0.8457 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05339/0.5227, allocations: 17.38 MB / 0.8627 GB, free: 2.836 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.99, allocations: 9.906 kB / 0.8627 GB, free: 2.832 MB / 0.6231 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)