Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 132 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.001161/0.001161, allocations: 194 kB / 16.53 MB, free: 6.391 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, 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.8957/0.8957, allocations: 169.2 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 101.8 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1212, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006928/0.1282, allocations: 6.068 MB / 0.6862 GB, free: 10.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004298/0.1325, allocations: 3.139 MB / 0.6893 GB, free: 7.348 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.1329, allocations: 27.81 kB / 0.6893 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002097/0.135, allocations: 0.9342 MB / 0.6902 GB, free: 6.387 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009003/0.1359, allocations: 473.5 kB / 0.6907 GB, free: 5.922 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009351/0.1368, allocations: 478.8 kB / 0.6911 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.1379, allocations: 1.1 MB / 0.6922 GB, free: 4.352 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007696/0.1386, allocations: 0.6349 MB / 0.6928 GB, free: 3.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.1392, allocations: 434.4 kB / 0.6932 GB, free: 3.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.1397, allocations: 478.2 kB / 0.6937 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.522e-05/0.1398, allocations: 67.94 kB / 0.6938 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006851/0.1405, allocations: 475 kB / 0.6942 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.1407, allocations: 287.2 kB / 0.6945 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003481/0.1411, allocations: 402 kB / 0.6949 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.1421, allocations: 1.16 MB / 0.696 GB, free: 460 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1421, allocations: 4 kB / 0.696 GB, free: 456 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1422, allocations: 0 / 0.696 GB, free: 456 kB / 494.1 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.1422, allocations: 0 / 0.696 GB, free: 456 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.0014/0.1436, allocations: 1.052 MB / 0.697 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1436, allocations: 8.031 kB / 0.697 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.1437, allocations: 118.6 kB / 0.6972 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.1451, allocations: 227.6 kB / 0.6974 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006442/0.1458, allocations: 0.5298 MB / 0.6979 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.1458, allocations: 49.69 kB / 0.6979 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.72e-05/0.1459, allocations: 60.36 kB / 0.698 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1472, allocations: 1.033 MB / 0.699 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.1472, allocations: 4 kB / 0.699 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.1473, allocations: 31.98 kB / 0.699 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-05/0.1473, allocations: 65.27 kB / 0.6991 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.1484, allocations: 0.6996 MB / 0.6998 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/0.1533, allocations: 5.756 MB / 0.7054 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008356/0.1542, allocations: 0.6007 MB / 0.706 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007493/0.1549, allocations: 416.6 kB / 0.7064 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.155, allocations: 8 kB / 0.7064 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.155, allocations: 38.55 kB / 0.7064 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 2.495e-06/0.155, allocations: 0 / 0.7064 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004334/0.1594, allocations: 2.05 MB / 0.7084 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.1594, allocations: 55.41 kB / 0.7085 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004927/0.1599, allocations: 454.8 kB / 0.7089 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.16, allocations: 33.7 kB / 0.709 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.1602, allocations: 391 kB / 0.7093 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.1604, allocations: 149.8 kB / 0.7095 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.1605, allocations: 110.2 kB / 0.7096 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1607, allocations: 362.8 kB / 0.7099 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.1611, allocations: 245.2 kB / 0.7102 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/0.1615, allocations: 465 kB / 0.7106 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008506/0.1624, allocations: 0.7558 MB / 0.7113 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1624, allocations: 0 / 0.7113 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001703/0.1641, allocations: 1.057 MB / 0.7124 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1641, allocations: 12.81 kB / 0.7124 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1642, allocations: 12 kB / 0.7124 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009463/0.1651, allocations: 327.1 kB / 0.7127 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.1654, allocations: 95.83 kB / 0.7128 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006445/0.1719, allocations: 7.532 MB / 0.7202 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.1722, allocations: 28.03 kB / 0.7202 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.1723, allocations: 24 kB / 0.7202 GB, free: 6.047 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002704/0.1726, allocations: 252.2 kB / 0.7204 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.016e-05/0.1726, allocations: 55.34 kB / 0.7205 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.1742, allocations: 0.9158 MB / 0.7214 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1742, allocations: 8 kB / 0.7214 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1742, allocations: 7.938 kB / 0.7214 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1742, allocations: 3.984 kB / 0.7214 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.1766, allocations: 1.708 MB / 0.7231 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1766, allocations: 4 kB / 0.7231 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.1768, allocations: 39.91 kB / 0.7231 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008608/0.1776, allocations: 323.5 kB / 0.7234 GB, free: 2.617 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.1777, allocations: 16 kB / 0.7234 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006179/0.1839, allocations: 7.513 MB / 0.7308 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.1839, allocations: 4 kB / 0.7308 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.1854, allocations: 1.023 MB / 0.7318 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.1856, allocations: 172.4 kB / 0.732 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.607e-05/0.1856, allocations: 8 kB / 0.732 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.1859, allocations: 19.98 kB / 0.732 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.758e-05/0.186, allocations: 43.88 kB / 0.732 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.186, allocations: 12 kB / 0.732 GB, free: 9.184 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002821/0.1863, allocations: 314.8 kB / 0.7323 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1863, allocations: 0 / 0.7323 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006466/0.187, allocations: 192 kB / 0.7325 GB, free: 8.691 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.001701/0.1887, allocations: 1.563 MB / 0.734 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001702/0.1904, allocations: 1.258 MB / 0.7353 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1904, allocations: 0 / 0.7353 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.1915, allocations: 0.8543 MB / 0.7361 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008975/0.1924, allocations: 218.9 kB / 0.7363 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007087/0.1995, allocations: 5.949 MB / 0.7421 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005117/0.2, allocations: 0.9882 MB / 0.7431 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002698/0.2003, allocations: 101.2 kB / 0.7432 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002307/0.2005, allocations: 227.4 kB / 0.7434 GB, free: 13.04 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.2006, allocations: 0 / 0.7434 GB, free: 13.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.623/2.824, allocations: 15.19 MB / 0.7582 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/15.86, allocations: 10.02 kB / 0.7582 GB, free: 14.09 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)