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.001849/0.001849, 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.002048/0.002048, allocations: 196.1 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.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002511/0.002511, allocations: 283 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.078/1.078, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002796/0.002796, allocations: 98.69 kB / 0.6066 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1464, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01389/0.1603, allocations: 10.89 MB / 0.7042 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01308/0.1734, allocations: 8.784 MB / 0.7128 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007769/0.1742, allocations: 63.56 kB / 0.7129 GB, free: 440 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004171/0.1784, allocations: 1.677 MB / 0.7145 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003549/0.182, allocations: 1.528 MB / 0.716 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.1835, allocations: 0.6777 MB / 0.7167 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002382/0.1859, allocations: 2.282 MB / 0.7189 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.1877, allocations: 1.383 MB / 0.7203 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.1889, allocations: 0.9848 MB / 0.7212 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.1902, allocations: 1.016 MB / 0.7222 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002214/0.1905, allocations: 147.9 kB / 0.7223 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.192, allocations: 0.7955 MB / 0.7231 GB, free: 5.895 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006053/0.1926, allocations: 0.5686 MB / 0.7237 GB, free: 5.324 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00094/0.1935, allocations: 0.8862 MB / 0.7245 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.1962, allocations: 2.543 MB / 0.727 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1962, allocations: 0 / 0.727 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1962, allocations: 0 / 0.727 GB, free: 1.883 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.775e-05/0.1962, allocations: 0 / 0.727 GB, free: 1.883 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.003225/0.1995, allocations: 2.024 MB / 0.729 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1995, allocations: 12.03 kB / 0.729 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002399/0.1998, allocations: 190.1 kB / 0.7292 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.2115, allocations: 2.05 MB / 0.7312 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.2134, allocations: 1.119 MB / 0.7323 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/0.2135, allocations: 90.67 kB / 0.7324 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.2137, allocations: 119.9 kB / 0.7325 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005567/0.2193, allocations: 2.478 MB / 0.7349 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.2193, allocations: 11.84 kB / 0.7349 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/0.2195, allocations: 51.98 kB / 0.735 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000367/0.2199, allocations: 138 kB / 0.7351 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00775/0.2276, allocations: 2.537 MB / 0.7376 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/0.2423, allocations: 10.07 MB / 0.7474 GB, free: 12.05 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006612/0.2489, allocations: 1.956 MB / 0.7493 GB, free: 10.07 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002891/0.2518, allocations: 0.9699 MB / 0.7503 GB, free: 9.094 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.2519, allocations: 4.438 kB / 0.7503 GB, free: 9.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.2519, allocations: 39 kB / 0.7503 GB, free: 9.043 MB / 0.545 GB Notification: Performance of pre-optimization done (n=53): time 2.154e-06/0.2519, allocations: 4 kB / 0.7503 GB, free: 9.039 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.03336/0.2853, allocations: 8.726 MB / 0.7588 GB, free: 260 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.2854, allocations: 64 kB / 0.7589 GB, free: 184 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2614/0.5468, allocations: 1.094 MB / 0.76 GB, free: 65.04 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001801/0.5471, allocations: 38.98 kB / 0.76 GB, free: 65.01 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004516/0.5475, allocations: 0.732 MB / 0.7607 GB, free: 64.91 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.5477, allocations: 287 kB / 0.761 GB, free: 64.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003814/0.5481, allocations: 196.7 kB / 0.7612 GB, free: 64.72 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.542e-05/0.5482, allocations: 344.3 kB / 0.7615 GB, free: 64.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003203/0.5514, allocations: 1.073 MB / 0.7626 GB, free: 64.13 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003186/0.5546, allocations: 1.304 MB / 0.7638 GB, free: 63.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005954/0.5606, allocations: 2.381 MB / 0.7662 GB, free: 62.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.5606, allocations: 5.25 kB / 0.7662 GB, free: 62.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008782/0.5694, allocations: 3.278 MB / 0.7694 GB, free: 61.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.5694, allocations: 8.562 kB / 0.7694 GB, free: 61.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.5694, allocations: 6.75 kB / 0.7694 GB, free: 61.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002776/0.5722, allocations: 0.7883 MB / 0.7701 GB, free: 61.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.5742, allocations: 419.2 kB / 0.7705 GB, free: 61.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/0.587, allocations: 15.94 MB / 0.7861 GB, free: 48.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.5893, allocations: 292.3 kB / 0.7864 GB, free: 48.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.5894, allocations: 51.61 kB / 0.7864 GB, free: 48.15 MB / 0.545 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.0006139/0.59, allocations: 395.5 kB / 0.7868 GB, free: 47.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.5903, allocations: 146.1 kB / 0.787 GB, free: 47.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008528/0.5988, allocations: 3.211 MB / 0.7901 GB, free: 46.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.5988, allocations: 7.656 kB / 0.7901 GB, free: 46.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.5988, allocations: 11.12 kB / 0.7901 GB, free: 46.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.5989, allocations: 5 kB / 0.7901 GB, free: 46.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.6091, allocations: 4.895 MB / 0.7949 GB, free: 44.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.6092, allocations: 2.812 kB / 0.7949 GB, free: 44.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/0.6108, allocations: 352 kB / 0.7952 GB, free: 44.33 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00218/0.613, allocations: 0.697 MB / 0.7959 GB, free: 43.95 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.698e-05/0.6131, allocations: 32.47 kB / 0.7959 GB, free: 43.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.6245, allocations: 15.55 MB / 0.8111 GB, free: 29.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6245, allocations: 6.406 kB / 0.8111 GB, free: 29.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007764/0.6323, allocations: 3.037 MB / 0.8141 GB, free: 28.01 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005896/0.6329, allocations: 395.2 kB / 0.8145 GB, free: 27.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.6331, allocations: 15.88 kB / 0.8145 GB, free: 27.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/0.6349, allocations: 293 kB / 0.8148 GB, free: 27.55 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.6352, allocations: 85.41 kB / 0.8148 GB, free: 27.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.087e-05/0.6353, allocations: 35.62 kB / 0.8149 GB, free: 27.49 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008707/0.6361, allocations: 0.7407 MB / 0.8156 GB, free: 27.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6362, allocations: 0 / 0.8156 GB, free: 27.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001372/0.6375, allocations: 431.5 kB / 0.816 GB, free: 27.04 MB / 0.545 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.007449/0.645, allocations: 3.612 MB / 0.8195 GB, free: 24.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007839/0.6528, allocations: 3.765 MB / 0.8232 GB, free: 22.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.6529, allocations: 0 / 0.8232 GB, free: 22.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004357/0.6572, allocations: 2.375 MB / 0.8255 GB, free: 20.71 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.6593, allocations: 0.5276 MB / 0.8261 GB, free: 20.44 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/0.6879, allocations: 16.54 MB / 0.8422 GB, free: 3.266 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.6886, allocations: 1.388 MB / 0.8436 GB, free: 1.844 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001462/0.6901, allocations: 380.8 kB / 0.8439 GB, free: 1.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006457/0.6907, allocations: 0.6046 MB / 0.8445 GB, free: 0.875 MB / 0.545 GB Notification: Performance of SimCode: time 7.82e-07/0.6907, allocations: 0 / 0.8445 GB, free: 0.875 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09712/0.7879, allocations: 41.27 MB / 0.8848 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/11.16, allocations: 10.45 kB / 0.8848 GB, free: 8.23 MB / 0.5919 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)