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.0009796/0.0009797, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001006/0.001006, allocations: 189.8 kB / 16.14 MB, free: 6.707 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.218/1.218, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 294.8 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8904/0.8904, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001585, allocations: 91.33 kB / 0.5946 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.14, allocations: 86.98 MB / 0.6796 GB, free: 1.031 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006813/0.1469, allocations: 6.082 MB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004374/0.1513, allocations: 3.167 MB / 0.6886 GB, free: 7.766 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.1516, allocations: 27.81 kB / 0.6886 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.1536, allocations: 0.8747 MB / 0.6895 GB, free: 6.863 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008613/0.1545, allocations: 438 kB / 0.6899 GB, free: 6.434 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/0.1554, allocations: 431.1 kB / 0.6903 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.1565, allocations: 1.463 MB / 0.6917 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007973/0.1573, allocations: 0.6247 MB / 0.6923 GB, free: 3.918 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.1577, allocations: 394.3 kB / 0.6927 GB, free: 3.531 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004652/0.1582, allocations: 478.2 kB / 0.6932 GB, free: 3.062 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.1583, allocations: 44 kB / 0.6932 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008237/0.1591, allocations: 0.5886 MB / 0.6938 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.1594, allocations: 275.2 kB / 0.694 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003388/0.1597, allocations: 385.9 kB / 0.6944 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1608, allocations: 1.176 MB / 0.6956 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1608, allocations: 0 / 0.6956 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1608, allocations: 0 / 0.6956 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1608, allocations: 4 kB / 0.6956 GB, free: 0.5977 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.001442/0.1622, allocations: 1.054 MB / 0.6966 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1623, allocations: 8.031 kB / 0.6966 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.1624, allocations: 122.7 kB / 0.6967 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.1638, allocations: 215.7 kB / 0.6969 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.1645, allocations: 0.5414 MB / 0.6975 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1645, allocations: 41.69 kB / 0.6975 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.973e-05/0.1646, allocations: 64.36 kB / 0.6976 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.1659, allocations: 1.034 MB / 0.6986 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.1659, allocations: 11.94 kB / 0.6986 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.817e-05/0.166, allocations: 24 kB / 0.6986 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-05/0.1661, allocations: 77.2 kB / 0.6987 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009418/0.167, allocations: 0.6879 MB / 0.6993 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004492/0.1715, allocations: 5.756 MB / 0.705 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007666/0.1723, allocations: 0.5871 MB / 0.7055 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000714/0.173, allocations: 423.7 kB / 0.7059 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.1731, allocations: 7.938 kB / 0.7059 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1731, allocations: 34.56 kB / 0.706 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 1.974e-06/0.1731, allocations: 0 / 0.706 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004045/0.1772, allocations: 2.061 MB / 0.708 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.1772, allocations: 59.41 kB / 0.7081 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.1777, allocations: 458.7 kB / 0.7085 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.1777, allocations: 29.7 kB / 0.7085 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.1779, allocations: 391 kB / 0.7089 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.178, allocations: 149.8 kB / 0.709 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.1782, allocations: 106.2 kB / 0.7091 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1783, allocations: 366.8 kB / 0.7095 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003305/0.1787, allocations: 245.2 kB / 0.7097 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.1791, allocations: 465 kB / 0.7102 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008622/0.18, allocations: 0.7519 MB / 0.7109 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.18, allocations: 7.938 kB / 0.7109 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001771/0.1818, allocations: 1.058 MB / 0.7119 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1818, allocations: 8 kB / 0.7119 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1819, allocations: 4 kB / 0.7119 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.1829, allocations: 335.1 kB / 0.7123 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.1832, allocations: 99.81 kB / 0.7124 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006504/0.1897, allocations: 6.951 MB / 0.7192 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.1901, allocations: 24.03 kB / 0.7192 GB, free: 6.828 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.1901, allocations: 28 kB / 0.7192 GB, free: 6.801 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.0003117/0.1905, allocations: 251.5 kB / 0.7194 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-05/0.1906, allocations: 59.34 kB / 0.7195 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.1922, allocations: 0.9157 MB / 0.7204 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1922, allocations: 4 kB / 0.7204 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1922, allocations: 4 kB / 0.7204 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1922, allocations: 3.984 kB / 0.7204 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.1948, allocations: 1.708 MB / 0.7221 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1948, allocations: 0 / 0.7221 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1949, allocations: 52.03 kB / 0.7221 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009333/0.1959, allocations: 327.1 kB / 0.7224 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.1959, allocations: 8 kB / 0.7224 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006173/0.2021, allocations: 6.932 MB / 0.7292 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2021, allocations: 0 / 0.7292 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.2038, allocations: 1.023 MB / 0.7302 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.204, allocations: 168.4 kB / 0.7304 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.481e-05/0.2041, allocations: 11.94 kB / 0.7304 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.2043, allocations: 31.97 kB / 0.7304 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-05/0.2044, allocations: 47.81 kB / 0.7305 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.2045, allocations: 16 kB / 0.7305 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003086/0.2048, allocations: 302.9 kB / 0.7308 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2048, allocations: 0 / 0.7308 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007208/0.2055, allocations: 196 kB / 0.7309 GB, free: 10.04 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.001793/0.2073, allocations: 1.559 MB / 0.7325 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001792/0.2091, allocations: 1.203 MB / 0.7336 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.2091, allocations: 0 / 0.7336 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.2103, allocations: 0.8661 MB / 0.7345 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009542/0.2113, allocations: 188.4 kB / 0.7347 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007671/0.219, allocations: 6.232 MB / 0.7408 GB, free: 15.51 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.2196, allocations: 0.9959 MB / 0.7417 GB, free: 14.49 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003067/0.2199, allocations: 97.17 kB / 0.7418 GB, free: 14.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.2201, allocations: 231.3 kB / 0.742 GB, free: 14.16 MB / 0.545 GB Notification: Performance of SimCode: time 7.22e-07/0.2201, allocations: 0 / 0.742 GB, free: 14.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.2483, allocations: 14.71 MB / 0.7564 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.2485, allocations: 238.5 kB / 0.7566 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.169, allocations: 4 kB / 0.7566 GB, free: 15.46 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)