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.00108/0.00108, 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.001057/0.001057, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 275 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9305/0.9305, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 104 kB / 0.5954 GB, free: 27.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.137, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01193/0.1489, allocations: 10.9 MB / 0.6909 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.1607, allocations: 8.788 MB / 0.6995 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008955/0.1617, allocations: 51.69 kB / 0.6996 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003818/0.1655, allocations: 1.687 MB / 0.7012 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003522/0.1691, allocations: 1.522 MB / 0.7027 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1705, allocations: 0.6702 MB / 0.7034 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002202/0.1727, allocations: 2.286 MB / 0.7056 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.1743, allocations: 1.376 MB / 0.7069 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.1754, allocations: 0.9848 MB / 0.7079 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.1766, allocations: 1.023 MB / 0.7089 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.1768, allocations: 136 kB / 0.709 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.1783, allocations: 0.7954 MB / 0.7098 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005075/0.1788, allocations: 0.5764 MB / 0.7104 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007875/0.1796, allocations: 0.8823 MB / 0.7112 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.1819, allocations: 2.543 MB / 0.7137 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1819, allocations: 4 kB / 0.7137 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.866e-06/0.1819, allocations: 3.984 kB / 0.7137 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.077e-05/0.1819, allocations: 0 / 0.7137 GB, free: 14.25 MB / 0.5137 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.002944/0.1849, allocations: 2.014 MB / 0.7157 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1849, allocations: 11.97 kB / 0.7157 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002078/0.1851, allocations: 190.1 kB / 0.7159 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01111/0.1962, allocations: 2.054 MB / 0.7179 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.198, allocations: 1.119 MB / 0.719 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/0.1981, allocations: 86.69 kB / 0.7191 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.1983, allocations: 119.9 kB / 0.7192 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005179/0.2035, allocations: 2.482 MB / 0.7216 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.2036, allocations: 7.906 kB / 0.7216 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.2037, allocations: 55.98 kB / 0.7217 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003424/0.2041, allocations: 134 kB / 0.7218 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007186/0.2113, allocations: 2.541 MB / 0.7243 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0127/0.224, allocations: 10.07 MB / 0.7341 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006278/0.2303, allocations: 1.941 MB / 0.736 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002792/0.2331, allocations: 0.9777 MB / 0.737 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.2331, allocations: 4.438 kB / 0.737 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.2332, allocations: 50.92 kB / 0.737 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=53): time 2.194e-06/0.2332, allocations: 0 / 0.737 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of matching and sorting (n=81): time 0.03158/0.2648, allocations: 8.707 MB / 0.7455 GB, free: 12.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.2649, allocations: 68 kB / 0.7456 GB, free: 12.55 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.2664, allocations: 1.097 MB / 0.7467 GB, free: 11.44 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.2665, allocations: 37.7 kB / 0.7467 GB, free: 11.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005189/0.267, allocations: 0.7379 MB / 0.7474 GB, free: 10.65 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.2673, allocations: 283.9 kB / 0.7477 GB, free: 10.37 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003923/0.2677, allocations: 198.4 kB / 0.7479 GB, free: 10.17 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.2679, allocations: 345.9 kB / 0.7482 GB, free: 9.828 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003/0.2709, allocations: 1.071 MB / 0.7492 GB, free: 8.758 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00313/0.274, allocations: 1.309 MB / 0.7505 GB, free: 7.355 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006085/0.2801, allocations: 2.378 MB / 0.7528 GB, free: 4.883 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2801, allocations: 0 / 0.7528 GB, free: 4.883 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008837/0.289, allocations: 3.288 MB / 0.7561 GB, free: 1.555 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.289, allocations: 8 kB / 0.7561 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.289, allocations: 4 kB / 0.7561 GB, free: 1.543 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002718/0.2917, allocations: 0.7955 MB / 0.7568 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.2937, allocations: 411.2 kB / 0.7572 GB, free: 328 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.265/0.5587, allocations: 15.92 MB / 0.7728 GB, free: 87.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.561, allocations: 290.1 kB / 0.7731 GB, free: 87.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.5611, allocations: 57.38 kB / 0.7731 GB, free: 87.46 MB / 0.5606 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.0006307/0.5618, allocations: 399.8 kB / 0.7735 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.562, allocations: 140.7 kB / 0.7736 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008743/0.5708, allocations: 3.209 MB / 0.7768 GB, free: 87.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.5708, allocations: 11.09 kB / 0.7768 GB, free: 87.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5708, allocations: 7.312 kB / 0.7768 GB, free: 87.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.5708, allocations: 8.031 kB / 0.7768 GB, free: 87.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.5812, allocations: 4.894 MB / 0.7816 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.5812, allocations: 2.891 kB / 0.7816 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/0.5828, allocations: 356 kB / 0.7819 GB, free: 85.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002163/0.585, allocations: 0.7056 MB / 0.7826 GB, free: 85.64 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.307e-05/0.5851, allocations: 31.88 kB / 0.7826 GB, free: 85.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.5963, allocations: 15.54 MB / 0.7978 GB, free: 72.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.5963, allocations: 7.031 kB / 0.7978 GB, free: 72.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0073/0.6036, allocations: 3.035 MB / 0.8008 GB, free: 71.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.6042, allocations: 388.9 kB / 0.8012 GB, free: 71.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.6044, allocations: 22.78 kB / 0.8012 GB, free: 71.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/0.6061, allocations: 289.7 kB / 0.8014 GB, free: 71.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.6064, allocations: 86.56 kB / 0.8015 GB, free: 71.42 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.695e-05/0.6065, allocations: 39.86 kB / 0.8016 GB, free: 71.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000836/0.6073, allocations: 0.7388 MB / 0.8023 GB, free: 71.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6073, allocations: 4.75 kB / 0.8023 GB, free: 71.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001306/0.6086, allocations: 430.3 kB / 0.8027 GB, free: 71.08 MB / 0.5606 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.00796/0.6166, allocations: 3.624 MB / 0.8062 GB, free: 69.47 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008032/0.6246, allocations: 3.757 MB / 0.8099 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.6246, allocations: 5.031 kB / 0.8099 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004461/0.6291, allocations: 2.368 MB / 0.8122 GB, free: 65.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.6312, allocations: 0.5243 MB / 0.8127 GB, free: 65.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02845/0.6597, allocations: 16.55 MB / 0.8289 GB, free: 54.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006463/0.6604, allocations: 1.384 MB / 0.8303 GB, free: 52.95 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001445/0.6618, allocations: 380.8 kB / 0.8306 GB, free: 52.58 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006236/0.6624, allocations: 0.5969 MB / 0.8312 GB, free: 51.98 MB / 0.5606 GB Notification: Performance of SimCode: time 1.243e-06/0.6624, allocations: 0 / 0.8312 GB, free: 51.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06962/0.7321, allocations: 41.27 MB / 0.8715 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.392/10.12, allocations: 5.562 kB / 0.8715 GB, free: 11.36 MB / 0.5606 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)