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.007505/0.007505, 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.002115/0.002115, allocations: 196.4 kB / 16.67 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002457/0.002457, allocations: 282.8 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.006/1.006, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002804/0.002804, allocations: 99.84 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1603, allocations: 86.98 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009044/0.1694, allocations: 6.717 MB / 0.7725 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3074/0.4768, allocations: 3.019 MB / 0.7754 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007067/0.4776, allocations: 26.75 kB / 0.7755 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.4802, allocations: 0.945 MB / 0.7764 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001338/0.4815, allocations: 0.5048 MB / 0.7769 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.4826, allocations: 433.7 kB / 0.7773 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001657/0.4843, allocations: 1.219 MB / 0.7785 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.4854, allocations: 0.6644 MB / 0.7791 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008245/0.4862, allocations: 483.5 kB / 0.7796 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006636/0.4869, allocations: 0.517 MB / 0.7801 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.487, allocations: 70.62 kB / 0.7802 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006715/0.4877, allocations: 377 kB / 0.7805 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002451/0.4879, allocations: 306.6 kB / 0.7808 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003788/0.4883, allocations: 445.5 kB / 0.7812 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.4894, allocations: 1.221 MB / 0.7824 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4894, allocations: 3.938 kB / 0.7824 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4894, allocations: 0 / 0.7824 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.4895, allocations: 4.75 kB / 0.7824 GB, free: 7.348 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.001706/0.4912, allocations: 1.185 MB / 0.7836 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4912, allocations: 13.56 kB / 0.7836 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.4914, allocations: 117.7 kB / 0.7837 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.4929, allocations: 240.1 kB / 0.7839 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008523/0.4938, allocations: 0.5957 MB / 0.7845 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.4938, allocations: 50.39 kB / 0.7846 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.547e-05/0.4939, allocations: 61.56 kB / 0.7846 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.4952, allocations: 1.09 MB / 0.7857 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.4953, allocations: 7.719 kB / 0.7857 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.499e-05/0.4953, allocations: 33.31 kB / 0.7857 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.4955, allocations: 82.48 kB / 0.7858 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009933/0.4965, allocations: 0.7508 MB / 0.7865 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004426/0.5009, allocations: 5.883 MB / 0.7923 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008974/0.5018, allocations: 0.5544 MB / 0.7928 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003875/0.5022, allocations: 328.1 kB / 0.7931 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.5023, allocations: 7.219 kB / 0.7932 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.5023, allocations: 36.58 kB / 0.7932 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.944e-06/0.5023, allocations: 0 / 0.7932 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003614/0.5059, allocations: 1.999 MB / 0.7951 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.506, allocations: 57.98 kB / 0.7952 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.5066, allocations: 0.5552 MB / 0.7957 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.5066, allocations: 32.08 kB / 0.7958 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.5069, allocations: 433 kB / 0.7962 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.507, allocations: 176.8 kB / 0.7964 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.5072, allocations: 135 kB / 0.7965 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002007/0.5074, allocations: 371.5 kB / 0.7968 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004332/0.5078, allocations: 278.1 kB / 0.7971 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.5085, allocations: 490.9 kB / 0.7976 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.5096, allocations: 0.8129 MB / 0.7984 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.5096, allocations: 1.875 kB / 0.7984 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001944/0.5116, allocations: 1.087 MB / 0.7994 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.5116, allocations: 8.875 kB / 0.7994 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.5116, allocations: 7.156 kB / 0.7994 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009086/0.5125, allocations: 283.6 kB / 0.7997 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.513, allocations: 125.3 kB / 0.7998 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007886/0.5209, allocations: 7.135 MB / 0.8068 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007454/0.5217, allocations: 37.27 kB / 0.8068 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.728e-05/0.5218, allocations: 35.39 kB / 0.8069 GB, free: 5.598 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.0004123/0.5222, allocations: 252.5 kB / 0.8071 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.5223, allocations: 76.53 kB / 0.8072 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.524, allocations: 0.891 MB / 0.8081 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.524, allocations: 4.5 kB / 0.8081 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.5241, allocations: 3.406 kB / 0.8081 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.5241, allocations: 3.766 kB / 0.8081 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.527, allocations: 1.728 MB / 0.8098 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.527, allocations: 2.938 kB / 0.8098 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000289/0.5273, allocations: 63.39 kB / 0.8098 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000802/0.5281, allocations: 272.6 kB / 0.8101 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.542e-05/0.5282, allocations: 8.188 kB / 0.8101 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007331/0.5355, allocations: 7.129 MB / 0.817 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.5355, allocations: 2.219 kB / 0.817 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.5373, allocations: 0.9939 MB / 0.818 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.5377, allocations: 198.2 kB / 0.8182 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.5378, allocations: 8.203 kB / 0.8182 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.5381, allocations: 34.41 kB / 0.8182 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.5383, allocations: 45.89 kB / 0.8183 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/0.5383, allocations: 11.22 kB / 0.8183 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000505/0.5388, allocations: 385.2 kB / 0.8187 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.51e-07/0.5388, allocations: 0 / 0.8187 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008782/0.5397, allocations: 224.6 kB / 0.8189 GB, free: 12.87 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.001982/0.5417, allocations: 1.548 MB / 0.8204 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002151/0.5439, allocations: 1.278 MB / 0.8216 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5439, allocations: 1.375 kB / 0.8216 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.5454, allocations: 0.8964 MB / 0.8225 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5466, allocations: 220.7 kB / 0.8227 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00913/0.5557, allocations: 6.381 MB / 0.829 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007363/0.5565, allocations: 1.007 MB / 0.8299 GB, free: 5.891 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004495/0.5569, allocations: 123.5 kB / 0.8301 GB, free: 5.832 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.5573, allocations: 249.8 kB / 0.8303 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of SimCode: time 4.11e-07/0.5573, allocations: 0 / 0.8303 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05667/0.614, allocations: 17.38 MB / 0.8473 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.17, allocations: 13.34 kB / 0.8473 GB, free: 12.4 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)