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.001288/0.001288, 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.001261/0.001261, allocations: 190.9 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.274/1.274, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 282.5 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9563/0.9563, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 88.58 kB / 0.5948 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1337, allocations: 86.98 MB / 0.6797 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007266/0.141, allocations: 6.078 MB / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004761/0.1458, allocations: 3.125 MB / 0.6887 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004622/0.1463, allocations: 23.81 kB / 0.6888 GB, free: 7.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.1484, allocations: 0.8826 MB / 0.6896 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009058/0.1493, allocations: 426.1 kB / 0.69 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009911/0.1503, allocations: 444.2 kB / 0.6904 GB, free: 5.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009492/0.1513, allocations: 1.096 MB / 0.6915 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008591/0.1521, allocations: 0.7091 MB / 0.6922 GB, free: 4.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004286/0.1526, allocations: 446.3 kB / 0.6926 GB, free: 3.711 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004975/0.1531, allocations: 494.1 kB / 0.6931 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.409e-05/0.1532, allocations: 56 kB / 0.6932 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006236/0.1538, allocations: 498.9 kB / 0.6936 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.1541, allocations: 287.2 kB / 0.6939 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003428/0.1544, allocations: 394 kB / 0.6943 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.1555, allocations: 1.203 MB / 0.6955 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1555, allocations: 0 / 0.6955 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1555, allocations: 0 / 0.6955 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1555, allocations: 4 kB / 0.6955 GB, free: 0.8047 MB / 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.001363/0.1569, allocations: 1.056 MB / 0.6965 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1569, allocations: 8.031 kB / 0.6965 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/0.1571, allocations: 118.7 kB / 0.6966 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.1585, allocations: 219.7 kB / 0.6968 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/0.1591, allocations: 0.5336 MB / 0.6973 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.1592, allocations: 45.67 kB / 0.6974 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.1593, allocations: 68.34 kB / 0.6975 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.1606, allocations: 1.026 MB / 0.6985 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.1606, allocations: 11.94 kB / 0.6985 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.092e-05/0.1607, allocations: 27.98 kB / 0.6985 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.144e-05/0.1608, allocations: 73.27 kB / 0.6986 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009622/0.1617, allocations: 0.6879 MB / 0.6992 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004377/0.1661, allocations: 5.756 MB / 0.7049 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00076/0.1669, allocations: 0.5949 MB / 0.7054 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007168/0.1676, allocations: 416.6 kB / 0.7058 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.1677, allocations: 7.984 kB / 0.7058 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.1677, allocations: 34.56 kB / 0.7059 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 1.523e-06/0.1677, allocations: 4 kB / 0.7059 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004103/0.1718, allocations: 2.053 MB / 0.7079 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.1718, allocations: 59.34 kB / 0.7079 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.1723, allocations: 454.8 kB / 0.7084 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.1723, allocations: 33.7 kB / 0.7084 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.1725, allocations: 391 kB / 0.7088 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.1726, allocations: 149.8 kB / 0.7089 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.1728, allocations: 106.2 kB / 0.709 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.1729, allocations: 362.8 kB / 0.7094 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.1733, allocations: 249.2 kB / 0.7096 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004503/0.1737, allocations: 461 kB / 0.71 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.1746, allocations: 0.748 MB / 0.7108 GB, free: 92 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1746, allocations: 4 kB / 0.7108 GB, free: 88 kB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001775/0.1764, allocations: 1.066 MB / 0.7118 GB, free: 15 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1764, allocations: 10.03 kB / 0.7118 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1764, allocations: 4 kB / 0.7118 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.1774, allocations: 339.2 kB / 0.7122 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.1777, allocations: 99.81 kB / 0.7123 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/0.1844, allocations: 7.521 MB / 0.7196 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.1847, allocations: 28.03 kB / 0.7196 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.1848, allocations: 31.98 kB / 0.7197 GB, free: 6.406 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.0003021/0.1851, allocations: 251.5 kB / 0.7199 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.1852, allocations: 55.34 kB / 0.7199 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.1869, allocations: 0.9158 MB / 0.7208 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1869, allocations: 7.938 kB / 0.7208 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1869, allocations: 4 kB / 0.7209 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.1869, allocations: 3.984 kB / 0.7209 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.1894, allocations: 1.705 MB / 0.7225 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1894, allocations: 192 / 0.7225 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.1896, allocations: 47.97 kB / 0.7226 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009156/0.1905, allocations: 327 kB / 0.7229 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.1906, allocations: 12 kB / 0.7229 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006487/0.1971, allocations: 7.517 MB / 0.7302 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1971, allocations: 3.938 kB / 0.7302 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.1986, allocations: 1.015 MB / 0.7312 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.1988, allocations: 172.4 kB / 0.7314 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.1989, allocations: 15.94 kB / 0.7314 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.1992, allocations: 23.97 kB / 0.7314 GB, free: 9.594 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.1993, allocations: 39.95 kB / 0.7315 GB, free: 9.555 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.1993, allocations: 8 kB / 0.7315 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002771/0.1996, allocations: 310.8 kB / 0.7318 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.974e-06/0.1996, allocations: 0 / 0.7318 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00065/0.2003, allocations: 204.2 kB / 0.732 GB, free: 9.047 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.001798/0.2021, allocations: 1.563 MB / 0.7335 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001692/0.2038, allocations: 1.246 MB / 0.7347 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.2038, allocations: 4.125 kB / 0.7347 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.2049, allocations: 0.858 MB / 0.7356 GB, free: 5.211 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009378/0.2058, allocations: 212 kB / 0.7358 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007438/0.2133, allocations: 6.234 MB / 0.7418 GB, free: 14.46 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.2138, allocations: 0.9881 MB / 0.7428 GB, free: 13.44 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002702/0.2141, allocations: 97.17 kB / 0.7429 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.2143, allocations: 227.4 kB / 0.7431 GB, free: 13.12 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.2143, allocations: 0 / 0.7431 GB, free: 13.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.846/2.06, allocations: 15.16 MB / 0.7579 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/2.06, allocations: 242.5 kB / 0.7582 GB, free: 14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/4.13, allocations: 3.875 kB / 0.7582 GB, free: 14 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)