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.008441/0.008441, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001865/0.001866, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002184/0.002184, allocations: 286.6 kB / 290.8 MB, free: 1.77 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9766/0.9766, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 100.4 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1898, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009664/0.1995, allocations: 6.729 MB / 0.7725 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4349/0.6345, allocations: 3.014 MB / 0.7754 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007041/0.6352, allocations: 24.38 kB / 0.7755 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002428/0.6377, allocations: 0.9487 MB / 0.7764 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.639, allocations: 0.5208 MB / 0.7769 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.6402, allocations: 428 kB / 0.7773 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001743/0.6419, allocations: 1.231 MB / 0.7785 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.643, allocations: 0.6596 MB / 0.7791 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007221/0.6437, allocations: 479.2 kB / 0.7796 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006337/0.6444, allocations: 0.5205 MB / 0.7801 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.6445, allocations: 67.09 kB / 0.7802 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007921/0.6453, allocations: 374.5 kB / 0.7805 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002933/0.6456, allocations: 311.8 kB / 0.7808 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004326/0.6461, allocations: 450.4 kB / 0.7813 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.6473, allocations: 1.212 MB / 0.7824 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.6474, allocations: 0.7188 kB / 0.7824 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6474, allocations: 0 / 0.7824 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.406e-05/0.6474, allocations: 0.6875 kB / 0.7824 GB, free: 7.344 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.001939/0.6493, allocations: 1.166 MB / 0.7836 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.6494, allocations: 9.375 kB / 0.7836 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.6496, allocations: 119.3 kB / 0.7837 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.6511, allocations: 242.9 kB / 0.7839 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009918/0.6521, allocations: 0.593 MB / 0.7845 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.263e-05/0.6522, allocations: 46.91 kB / 0.7846 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.6523, allocations: 67.64 kB / 0.7846 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.6538, allocations: 1.083 MB / 0.7857 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.6539, allocations: 20.03 kB / 0.7857 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/0.654, allocations: 32.78 kB / 0.7857 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001535/0.6541, allocations: 83.41 kB / 0.7858 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.6553, allocations: 0.7499 MB / 0.7865 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005411/0.6607, allocations: 5.862 MB / 0.7923 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009846/0.6617, allocations: 0.5539 MB / 0.7928 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.6621, allocations: 326.6 kB / 0.7931 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.6622, allocations: 12.12 kB / 0.7931 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.6622, allocations: 38.67 kB / 0.7932 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.984e-06/0.6622, allocations: 0 / 0.7932 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003812/0.6661, allocations: 1.991 MB / 0.7951 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.6661, allocations: 61.38 kB / 0.7952 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.6667, allocations: 0.5533 MB / 0.7957 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/0.6668, allocations: 36.14 kB / 0.7957 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002465/0.667, allocations: 415.1 kB / 0.7961 GB, free: 14 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.6672, allocations: 171 kB / 0.7963 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.6674, allocations: 126.5 kB / 0.7964 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6675, allocations: 378.7 kB / 0.7968 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004077/0.6679, allocations: 276.5 kB / 0.797 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.6685, allocations: 491.4 kB / 0.7975 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.6696, allocations: 0.8074 MB / 0.7983 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.6696, allocations: 3.562 kB / 0.7983 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002133/0.6717, allocations: 1.086 MB / 0.7994 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.6718, allocations: 9.094 kB / 0.7994 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.6718, allocations: 6.844 kB / 0.7994 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009576/0.6728, allocations: 285.1 kB / 0.7997 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.6733, allocations: 124.5 kB / 0.7998 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007606/0.6809, allocations: 7.136 MB / 0.8067 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008218/0.6818, allocations: 39.92 kB / 0.8068 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.6819, allocations: 27.66 kB / 0.8068 GB, free: 5.668 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.0005333/0.6824, allocations: 256.3 kB / 0.8071 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.6826, allocations: 71.41 kB / 0.8071 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.6845, allocations: 0.8877 MB / 0.808 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.6845, allocations: 5.375 kB / 0.808 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.6845, allocations: 4.078 kB / 0.808 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.6845, allocations: 2.156 kB / 0.808 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.6875, allocations: 1.73 MB / 0.8097 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.6875, allocations: 2.953 kB / 0.8097 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.6878, allocations: 64.33 kB / 0.8098 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008066/0.6886, allocations: 264.7 kB / 0.81 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.6887, allocations: 12.22 kB / 0.81 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006418/0.6951, allocations: 7.129 MB / 0.817 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6951, allocations: 3.516 kB / 0.817 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.6968, allocations: 0.9828 MB / 0.8179 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003349/0.6971, allocations: 188.8 kB / 0.8181 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.6972, allocations: 13.27 kB / 0.8181 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/0.6976, allocations: 29.86 kB / 0.8182 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.6977, allocations: 44.81 kB / 0.8182 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.53e-05/0.6978, allocations: 15.98 kB / 0.8182 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004741/0.6982, allocations: 389.7 kB / 0.8186 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6982, allocations: 0 / 0.8186 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008467/0.6991, allocations: 221.2 kB / 0.8188 GB, free: 12.96 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.001771/0.7009, allocations: 1.549 MB / 0.8203 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001952/0.7028, allocations: 1.274 MB / 0.8216 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7029, allocations: 1.25 kB / 0.8216 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.7041, allocations: 0.9003 MB / 0.8224 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009907/0.7051, allocations: 218.3 kB / 0.8226 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0084/0.7135, allocations: 6.347 MB / 0.8288 GB, free: 6.809 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.7141, allocations: 1.007 MB / 0.8298 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004298/0.7146, allocations: 123.9 kB / 0.8299 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.7149, allocations: 253.1 kB / 0.8302 GB, free: 5.758 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/0.7149, allocations: 0 / 0.8302 GB, free: 5.758 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04481/0.7597, allocations: 17.38 MB / 0.8472 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/11.06, allocations: 13.03 kB / 0.8472 GB, free: 12.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)