Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.004731/0.004731, allocations: 101 kB / 15.73 MB, free: 6.059 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.001341/0.001341, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.388/1.388, 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.0025/0.0025, allocations: 292.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.181/1.181, allocations: 178.5 MB / 0.5074 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 99.84 kB / 0.6943 GB, free: 15.12 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.4017, allocations: 89.12 MB / 0.7813 GB, free: 1.121 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01324/0.415, allocations: 10.9 MB / 0.792 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01384/0.4288, allocations: 8.798 MB / 0.8006 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.43, allocations: 53.75 kB / 0.8006 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004349/0.4344, allocations: 1.669 MB / 0.8023 GB, free: 416 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004345/0.4388, allocations: 1.539 MB / 0.8038 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.4405, allocations: 0.6743 MB / 0.8044 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00275/0.4433, allocations: 2.291 MB / 0.8067 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.4451, allocations: 1.369 MB / 0.808 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.4466, allocations: 0.9916 MB / 0.809 GB, free: 12 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.4481, allocations: 1.02 MB / 0.81 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002264/0.4483, allocations: 136 kB / 0.8101 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.45, allocations: 0.8071 MB / 0.8109 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005806/0.4506, allocations: 0.5648 MB / 0.8114 GB, free: 9.781 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009513/0.4516, allocations: 0.8822 MB / 0.8123 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003019/0.4546, allocations: 2.58 MB / 0.8148 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4546, allocations: 4 kB / 0.8148 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4546, allocations: 0 / 0.8148 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.195e-05/0.4546, allocations: 0 / 0.8148 GB, free: 6.301 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003333/0.458, allocations: 2.07 MB / 0.8168 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.458, allocations: 12.03 kB / 0.8168 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002407/0.4583, allocations: 194.1 kB / 0.817 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01187/0.4701, allocations: 2.051 MB / 0.819 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.4727, allocations: 1.221 MB / 0.8202 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.651e-05/0.4728, allocations: 94.62 kB / 0.8203 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002281/0.473, allocations: 115.9 kB / 0.8204 GB, free: 432 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005936/0.4789, allocations: 2.474 MB / 0.8228 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.137e-05/0.479, allocations: 15.89 kB / 0.8229 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.4792, allocations: 51.98 kB / 0.8229 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003742/0.4795, allocations: 134.1 kB / 0.823 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007815/0.4874, allocations: 2.545 MB / 0.8255 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01411/0.5015, allocations: 10.04 MB / 0.8353 GB, free: 344 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006762/0.5083, allocations: 1.952 MB / 0.8372 GB, free: 14.36 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.5113, allocations: 0.9815 MB / 0.8382 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.5114, allocations: 4.438 kB / 0.8382 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.5114, allocations: 39 kB / 0.8382 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=53): time 2.494e-06/0.5114, allocations: 0 / 0.8382 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.03296/0.5444, allocations: 8.744 MB / 0.8468 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.5445, allocations: 64 kB / 0.8468 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.546, allocations: 1.101 MB / 0.8479 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.1e-05/0.5461, allocations: 41.7 kB / 0.8479 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006183/0.5467, allocations: 0.7513 MB / 0.8487 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002761/0.547, allocations: 293.5 kB / 0.849 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004162/0.5474, allocations: 198.5 kB / 0.8491 GB, free: 2.043 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5476, allocations: 345.9 kB / 0.8495 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003201/0.5508, allocations: 1.075 MB / 0.8505 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003379/0.5542, allocations: 1.301 MB / 0.8518 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00654/0.5607, allocations: 2.39 MB / 0.8541 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5607, allocations: 0 / 0.8541 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009545/0.5703, allocations: 3.285 MB / 0.8573 GB, free: 9.418 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.5703, allocations: 8 kB / 0.8573 GB, free: 9.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.5703, allocations: 11.94 kB / 0.8574 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002898/0.5732, allocations: 0.7834 MB / 0.8581 GB, free: 8.59 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/0.5752, allocations: 415.3 kB / 0.8585 GB, free: 8.184 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01771/0.593, allocations: 15.93 MB / 0.8741 GB, free: 7.133 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/0.5953, allocations: 291.5 kB / 0.8744 GB, free: 6.848 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.5955, allocations: 56.03 kB / 0.8744 GB, free: 6.793 MB / 0.6387 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,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.0007818/0.5963, allocations: 399.1 kB / 0.8748 GB, free: 6.395 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003446/0.5966, allocations: 143.1 kB / 0.8749 GB, free: 6.254 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009619/0.6062, allocations: 3.21 MB / 0.8781 GB, free: 3.004 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.6063, allocations: 8.188 kB / 0.8781 GB, free: 2.996 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.336e-05/0.6063, allocations: 8 kB / 0.8781 GB, free: 2.988 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.6063, allocations: 11.91 kB / 0.8781 GB, free: 2.977 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.6184, allocations: 4.902 MB / 0.8829 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.6185, allocations: 4 kB / 0.8829 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.6202, allocations: 355.3 kB / 0.8832 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.6228, allocations: 0.69 MB / 0.8839 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.6229, allocations: 31.97 kB / 0.8839 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/0.64, allocations: 15.55 MB / 0.8991 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.64, allocations: 64 / 0.8991 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008958/0.649, allocations: 3.056 MB / 0.9021 GB, free: 9.043 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007639/0.6498, allocations: 388 kB / 0.9025 GB, free: 8.645 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002858/0.6501, allocations: 19.98 kB / 0.9025 GB, free: 8.625 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/0.6522, allocations: 295.5 kB / 0.9028 GB, free: 8.336 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.6524, allocations: 76.48 kB / 0.9028 GB, free: 8.262 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.6526, allocations: 39.97 kB / 0.9029 GB, free: 8.223 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00112/0.6537, allocations: 0.7405 MB / 0.9036 GB, free: 7.48 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6537, allocations: 0 / 0.9036 GB, free: 7.48 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001498/0.6552, allocations: 432 kB / 0.904 GB, free: 7.059 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009117/0.6643, allocations: 3.628 MB / 0.9075 GB, free: 3.344 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.009096/0.6734, allocations: 3.633 MB / 0.9111 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6734, allocations: 4.125 kB / 0.9111 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.005326/0.6788, allocations: 2.371 MB / 0.9134 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.681, allocations: 0.5253 MB / 0.9139 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03609/0.7171, allocations: 15.88 MB / 0.9294 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.7184, allocations: 1.388 MB / 0.9308 GB, free: 10.89 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001344/0.7198, allocations: 375.8 kB / 0.9311 GB, free: 10.52 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009106/0.7207, allocations: 0.5969 MB / 0.9317 GB, free: 9.926 MB / 0.7012 GB Notification: Performance of SimCode: time 6.22e-07/0.7207, allocations: 0 / 0.9317 GB, free: 9.926 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09406/0.8148, allocations: 41.55 MB / 0.9723 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.79, allocations: 21.17 kB / 0.9723 GB, free: 0.9766 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)