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.001379/0.001379, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001577/0.001577, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.293/1.293, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 302.4 kB / 290.4 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.911/0.911, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 87.39 kB / 0.5948 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1362, allocations: 86.98 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.01067/0.1469, allocations: 6.726 MB / 0.6863 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004261/0.1512, allocations: 3.017 MB / 0.6893 GB, free: 7.199 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004865/0.1517, allocations: 23.81 kB / 0.6893 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.1539, allocations: 0.8935 MB / 0.6902 GB, free: 6.281 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.155, allocations: 469.7 kB / 0.6906 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008723/0.1559, allocations: 389.8 kB / 0.691 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1572, allocations: 1.224 MB / 0.6922 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009566/0.1581, allocations: 0.7365 MB / 0.6929 GB, free: 3.477 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006246/0.1588, allocations: 470.3 kB / 0.6933 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007/0.1595, allocations: 0.5331 MB / 0.6939 GB, free: 2.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.1596, allocations: 68 kB / 0.6939 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006235/0.1603, allocations: 387.2 kB / 0.6943 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.1606, allocations: 303.1 kB / 0.6946 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004939/0.1611, allocations: 449.7 kB / 0.695 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.1623, allocations: 1.226 MB / 0.6962 GB, free: 68 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1623, allocations: 0 / 0.6962 GB, free: 68 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1623, allocations: 4 kB / 0.6962 GB, free: 64 kB / 494.1 MB Notification: Performance of Transformations before backend: time 3.419e-05/0.1623, allocations: 0 / 0.6962 GB, free: 64 kB / 494.1 MB 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.001876/0.1642, allocations: 1.161 MB / 0.6973 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1642, allocations: 8.031 kB / 0.6974 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.1644, allocations: 130.6 kB / 0.6975 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.1659, allocations: 235.6 kB / 0.6977 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000741/0.1666, allocations: 0.5414 MB / 0.6982 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.1667, allocations: 53.67 kB / 0.6983 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.95e-05/0.1668, allocations: 68.27 kB / 0.6983 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.1682, allocations: 1.089 MB / 0.6994 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.1682, allocations: 7.938 kB / 0.6994 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.1683, allocations: 31.98 kB / 0.6994 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.1684, allocations: 85.25 kB / 0.6995 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.1695, allocations: 0.7543 MB / 0.7003 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004728/0.1743, allocations: 5.893 MB / 0.706 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008555/0.1751, allocations: 0.5555 MB / 0.7066 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.1755, allocations: 329.3 kB / 0.7069 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.1756, allocations: 4.438 kB / 0.7069 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.1756, allocations: 42.94 kB / 0.7069 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.553e-06/0.1756, allocations: 0 / 0.7069 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003377/0.179, allocations: 1.986 MB / 0.7089 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.179, allocations: 55.84 kB / 0.7089 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.1795, allocations: 0.5547 MB / 0.7095 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.1796, allocations: 33.7 kB / 0.7095 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.1798, allocations: 407 kB / 0.7099 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1799, allocations: 181.5 kB / 0.71 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.1801, allocations: 122.5 kB / 0.7102 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1803, allocations: 378.7 kB / 0.7105 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.1806, allocations: 273.8 kB / 0.7108 GB, free: 336 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.1811, allocations: 497 kB / 0.7113 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008926/0.182, allocations: 0.8054 MB / 0.712 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.182, allocations: 8 kB / 0.7121 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00162/0.1837, allocations: 1.091 MB / 0.7131 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1837, allocations: 10.19 kB / 0.7131 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1837, allocations: 8 kB / 0.7131 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007524/0.1845, allocations: 283.2 kB / 0.7134 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004481/0.1849, allocations: 123.8 kB / 0.7135 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.1906, allocations: 7.135 MB / 0.7205 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004615/0.1911, allocations: 43.95 kB / 0.7205 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.1912, allocations: 31.94 kB / 0.7206 GB, free: 5.531 MB / 0.5137 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.0002673/0.1914, allocations: 258.7 kB / 0.7208 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1916, allocations: 71.16 kB / 0.7209 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.193, allocations: 0.8925 MB / 0.7218 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.193, allocations: 4 kB / 0.7218 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.193, allocations: 4 kB / 0.7218 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.193, allocations: 3.984 kB / 0.7218 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/0.1952, allocations: 1.721 MB / 0.7234 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.1952, allocations: 3.938 kB / 0.7234 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.1955, allocations: 63.88 kB / 0.7235 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006701/0.1962, allocations: 271.2 kB / 0.7238 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.1962, allocations: 8 kB / 0.7238 GB, free: 2.113 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005578/0.2018, allocations: 7.123 MB / 0.7307 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.2018, allocations: 3.938 kB / 0.7307 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.2031, allocations: 0.9873 MB / 0.7317 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.2034, allocations: 192.3 kB / 0.7319 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.034e-05/0.2034, allocations: 19.84 kB / 0.7319 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003431/0.2038, allocations: 27.97 kB / 0.7319 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.265e-05/0.2039, allocations: 43.88 kB / 0.732 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.2039, allocations: 12 kB / 0.732 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003495/0.2043, allocations: 387.1 kB / 0.7324 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.463e-06/0.2043, allocations: 0 / 0.7324 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006562/0.2049, allocations: 227.9 kB / 0.7326 GB, free: 8.492 MB / 0.5294 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.001557/0.2065, allocations: 1.536 MB / 0.7341 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001776/0.2083, allocations: 1.338 MB / 0.7354 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2083, allocations: 0 / 0.7354 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2094, allocations: 0.8897 MB / 0.7362 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009073/0.2103, allocations: 220.6 kB / 0.7365 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007638/0.218, allocations: 6.808 MB / 0.7431 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005022/0.2185, allocations: 1.009 MB / 0.7441 GB, free: 12.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003651/0.2189, allocations: 126 kB / 0.7442 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.2192, allocations: 251.3 kB / 0.7444 GB, free: 11.8 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.2192, allocations: 3.938 kB / 0.7445 GB, free: 11.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9331/1.152, allocations: 17.1 MB / 0.7612 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003498/1.153, allocations: 243.3 kB / 0.7614 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/3.428, allocations: 6.562 kB / 0.7614 GB, free: 10.76 MB / 0.5606 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)