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.001448/0.001448, 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.001299/0.001299, allocations: 199.2 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.235/1.235, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001963/0.001963, allocations: 271.2 kB / 290.2 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9007/0.9007, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 88.61 kB / 0.5946 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1417, allocations: 86.99 MB / 0.6796 GB, free: 1.02 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007403/0.1491, allocations: 6.719 MB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004371/0.1535, allocations: 3.044 MB / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003838/0.1539, allocations: 23.81 kB / 0.6891 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.156, allocations: 0.886 MB / 0.69 GB, free: 6.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000994/0.157, allocations: 477.7 kB / 0.6904 GB, free: 5.852 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008724/0.1579, allocations: 393.9 kB / 0.6908 GB, free: 5.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.1592, allocations: 1.579 MB / 0.6924 GB, free: 3.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008476/0.1601, allocations: 0.6403 MB / 0.693 GB, free: 3.242 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.1605, allocations: 422.2 kB / 0.6934 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000537/0.1611, allocations: 0.5253 MB / 0.6939 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-05/0.1612, allocations: 48 kB / 0.6939 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000702/0.1619, allocations: 463.1 kB / 0.6944 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.1621, allocations: 279.2 kB / 0.6947 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003704/0.1625, allocations: 425.7 kB / 0.6951 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.1635, allocations: 1.203 MB / 0.6962 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1636, allocations: 0 / 0.6962 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.91e-07/0.1636, allocations: 0 / 0.6962 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.1636, allocations: 3.938 kB / 0.6962 GB, free: 15.9 MB / 0.4981 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.001699/0.1653, allocations: 1.172 MB / 0.6974 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1653, allocations: 12.03 kB / 0.6974 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.1655, allocations: 114.7 kB / 0.6975 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.1669, allocations: 239.6 kB / 0.6977 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007123/0.1676, allocations: 0.5414 MB / 0.6983 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.1677, allocations: 53.62 kB / 0.6983 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-05/0.1678, allocations: 72.25 kB / 0.6984 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.1691, allocations: 1.085 MB / 0.6994 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.1692, allocations: 7.938 kB / 0.6994 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.759e-05/0.1693, allocations: 28 kB / 0.6995 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/0.1694, allocations: 85.25 kB / 0.6996 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1705, allocations: 0.7504 MB / 0.7003 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005022/0.1755, allocations: 5.889 MB / 0.706 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.1765, allocations: 0.5516 MB / 0.7066 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004178/0.1769, allocations: 326 kB / 0.7069 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.177, allocations: 12.38 kB / 0.7069 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.177, allocations: 39 kB / 0.7069 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.833e-06/0.177, allocations: 0 / 0.7069 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.00362/0.1806, allocations: 1.978 MB / 0.7089 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.1807, allocations: 63.84 kB / 0.7089 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005606/0.1813, allocations: 0.5508 MB / 0.7095 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.1813, allocations: 33.7 kB / 0.7095 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.1815, allocations: 411 kB / 0.7099 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.1817, allocations: 177.5 kB / 0.7101 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.1819, allocations: 126.5 kB / 0.7102 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.182, allocations: 378.6 kB / 0.7105 GB, free: 452 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.1824, allocations: 273.8 kB / 0.7108 GB, free: 180 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005257/0.1829, allocations: 497 kB / 0.7113 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009488/0.1839, allocations: 0.8171 MB / 0.7121 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1839, allocations: 0 / 0.7121 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001684/0.1856, allocations: 1.087 MB / 0.7131 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1856, allocations: 8 kB / 0.7131 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.1856, allocations: 11.94 kB / 0.7132 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008193/0.1865, allocations: 279.4 kB / 0.7134 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.1869, allocations: 127.8 kB / 0.7135 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005722/0.1927, allocations: 6.591 MB / 0.72 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.1932, allocations: 39.97 kB / 0.72 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-05/0.1933, allocations: 31.98 kB / 0.72 GB, free: 5.945 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.0003386/0.1936, allocations: 258.8 kB / 0.7203 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1937, allocations: 71.16 kB / 0.7204 GB, free: 5.613 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.1953, allocations: 0.8923 MB / 0.7212 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1954, allocations: 4 kB / 0.7212 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1954, allocations: 4 kB / 0.7212 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1954, allocations: 0 / 0.7212 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.198, allocations: 1.728 MB / 0.7229 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1981, allocations: 0 / 0.7229 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.1983, allocations: 63.89 kB / 0.723 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007337/0.1991, allocations: 267.3 kB / 0.7232 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.1991, allocations: 12 kB / 0.7233 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005843/0.205, allocations: 6.583 MB / 0.7297 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.205, allocations: 4.125 kB / 0.7297 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.2065, allocations: 0.9835 MB / 0.7307 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.2068, allocations: 188.2 kB / 0.7308 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.297e-05/0.2069, allocations: 15.94 kB / 0.7308 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.2072, allocations: 36.09 kB / 0.7309 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.2074, allocations: 43.94 kB / 0.7309 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.2074, allocations: 16 kB / 0.7309 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004584/0.2079, allocations: 387.1 kB / 0.7313 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2079, allocations: 0 / 0.7313 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007549/0.2086, allocations: 220 kB / 0.7315 GB, free: 9.48 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.001698/0.2103, allocations: 1.552 MB / 0.733 GB, free: 7.867 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001872/0.2122, allocations: 1.268 MB / 0.7343 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2122, allocations: 4 kB / 0.7343 GB, free: 6.543 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.2134, allocations: 0.8897 MB / 0.7351 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009942/0.2144, allocations: 203.2 kB / 0.7353 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008278/0.2227, allocations: 6.806 MB / 0.742 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.2233, allocations: 1.013 MB / 0.743 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004322/0.2238, allocations: 130.1 kB / 0.7431 GB, free: 13.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.2241, allocations: 251.4 kB / 0.7433 GB, free: 12.86 MB / 0.545 GB Notification: Performance of SimCode: time 8.12e-07/0.2241, allocations: 0 / 0.7433 GB, free: 12.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.2528, allocations: 16.59 MB / 0.7595 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.253, allocations: 240.5 kB / 0.7598 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.25, allocations: 0 / 0.7598 GB, free: 12.3 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)